Skip to content

MSQ: Add workerDesc to WorkerStats.#19171

Merged
gianm merged 1 commit into
apache:masterfrom
gianm:msq-workerdesc
Mar 18, 2026
Merged

MSQ: Add workerDesc to WorkerStats.#19171
gianm merged 1 commit into
apache:masterfrom
gianm:msq-workerdesc

Conversation

@gianm

@gianm gianm commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

The existing field workerId is designed for MSQ itself to uniquely identify a worker. The new field workerDesc is for users (and the web console) to more easily identify where a worker is running. Its javadoc specs it as either a task ID or a host:port.

This patch also updates the web console to use workerDesc, if available, to show the task (with link to the tasks view) or show the server. This replaces some older, more brittle logic that was constructing a task ID from the query ID and worker number. The approach in this patch better handles task relaunches, in which case the worker number -> task ID mapping changes.

The existing field workerId is designed for MSQ itself to uniquely
identify a worker. The new field workerDesc is for users (and the web
console) to more easily identify where a worker is running. Its javadoc
specs it as either a task ID or a host:port.

This patch also updates the web console to use workerDesc, if available,
to show the task (with link to the tasks view) or show the server. This
replaces some older, more brittle logic that was constructing a task ID
from the query ID and worker number. The approach in this patch better
handles task relaunches, in which case the worker number -> task ID
mapping changes.
@github-actions github-actions Bot added Area - Batch Ingestion Area - Web Console Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Mar 17, 2026

@capistrant capistrant left a comment

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.

I'm not a knower of typescript so I just ran locally to functionally review a dart query's tooltip of host:port. Looks to spec with what you describe!

image

@gianm

gianm commented Mar 18, 2026

Copy link
Copy Markdown
Contributor Author

I'm not a knower of typescript either 🤫

@gianm
gianm merged commit a7dae26 into apache:master Mar 18, 2026
37 checks passed
@gianm
gianm deleted the msq-workerdesc branch March 18, 2026 16:12
@github-actions github-actions Bot added this to the 37.0.0 milestone Mar 18, 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 Area - Web Console

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants