Skip to content

MSQ: Include stageId, workerNumber in processing thread names.#17324

Merged
gianm merged 2 commits intoapache:masterfrom
gianm:msq-more-descriptive-thread-names
Oct 11, 2024
Merged

MSQ: Include stageId, workerNumber in processing thread names.#17324
gianm merged 2 commits intoapache:masterfrom
gianm:msq-more-descriptive-thread-names

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Oct 10, 2024

Helps identify which query was running in a thread dump.

Helps identify which query was running in a thread dump.
@github-actions github-actions Bot added Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Oct 10, 2024
private static String cancellationIdFor(final StageId stageId, final int workerNumber)
{
return StringUtils.format("%s_%s", stageId, workerNumber);
return StringUtils.format("dart-worker[%s_%s]", stageId, workerNumber);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this useful for non-Dart workers too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, this should say msq-worker, not dart-worker, since this isn't Dart specific code. Updated.

@gianm gianm merged commit b287b21 into apache:master Oct 11, 2024
@gianm gianm deleted the msq-more-descriptive-thread-names branch October 11, 2024 15:37
@adarshsanjeev adarshsanjeev added this to the 32.0.0 milestone Jan 16, 2025
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.

3 participants