Skip to content

feat: MSQ: Log full stack trace when "debug" is set.#19361

Merged
gianm merged 1 commit intoapache:masterfrom
gianm:msq-log-worker-debug
Apr 21, 2026
Merged

feat: MSQ: Log full stack trace when "debug" is set.#19361
gianm merged 1 commit intoapache:masterfrom
gianm:msq-log-worker-debug

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Apr 21, 2026

Typically controllers and workers only log the full stack trace for unknown faults and for DruidExceptions that have a non-USER persona. The rationale is to avoid log spam. However, sometimes it is useful to see them. This patch changes things so the full stack traces are logged when the "debug" flag is set in the context.

Test contexts are also updated such that the full stack trace is always logged in tests.

Finally, this patch also calls "wasDeserialized()" on the DruidException builder when re-creating DruidExceptions on the controller. This avoids having a stack trace assigned that isn't useful.

Typically controllers and workers only log the full stack trace for
unknown faults and for DruidExceptions that have a non-USER persona.
The rationale is to avoid log spam. However, sometimes it is useful
to see them. This patch changes things so the full stack traces are
logged when the "debug" flag is set in the context.

Test contexts are also updated such that the full stack trace is always
logged in tests.

Finally, this patch also calls "wasDeserialized()" on the DruidException
builder when re-creating DruidExceptions on the controller. This avoids
having a stack trace assigned that isn't useful.
@github-actions github-actions Bot added Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Apr 21, 2026
@gianm gianm merged commit 94a7555 into apache:master Apr 21, 2026
88 of 90 checks passed
@gianm gianm deleted the msq-log-worker-debug branch April 21, 2026 17:12
@github-actions github-actions Bot added this to the 38.0.0 milestone Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants