Skip to content

DartWorkerContext: Return the correct workerId().#17280

Merged
gianm merged 1 commit intoapache:masterfrom
gianm:dart-workerid-correct
Oct 8, 2024
Merged

DartWorkerContext: Return the correct workerId().#17280
gianm merged 1 commit intoapache:masterfrom
gianm:dart-workerid-correct

Conversation

@gianm
Copy link
Contributor

@gianm gianm commented Oct 8, 2024

Prior to this patch, the workerId() method did not actually return the worker ID. It returned some other string that had similar information, but was different. This caused the /druid/dart-worker/workers API to return an internal server error. The API is useful for debugging, although it is not used during actual queries.

Prior to this patch, the workerId() method did not actually return
the worker ID. It returned some other string that had similar information,
but was different.

This caused the /druid/dart-worker/workers API, to return an internal
server error. The API is useful for debugging, although it is not used
during actual queries.
@gianm gianm added the Bug label Oct 8, 2024
@github-actions github-actions bot added Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Oct 8, 2024
@cryptoe cryptoe modified the milestone: 31.0.0 Oct 8, 2024
@gianm
Copy link
Contributor Author

gianm commented Oct 8, 2024

The CI failures are code coverage related. I am going to merge this anyway, since the class in question is kind of annoying to unit test. (It's a "context" object that takes a bunch of injected inputs and passes them through.)

@gianm gianm merged commit baa16f3 into apache:master Oct 8, 2024
@gianm gianm deleted the dart-workerid-correct branch October 8, 2024 16:52
@gianm gianm added this to the 31.0.0 milestone Oct 8, 2024
AmatyaAvadhanula pushed a commit to AmatyaAvadhanula/druid that referenced this pull request Oct 9, 2024
Prior to this patch, the workerId() method did not actually return
the worker ID. It returned some other string that had similar information,
but was different.

This caused the /druid/dart-worker/workers API, to return an internal
server error. The API is useful for debugging, although it is not used
during actual queries.
abhishekagarwal87 pushed a commit that referenced this pull request Oct 9, 2024
Prior to this patch, the workerId() method did not actually return
the worker ID. It returned some other string that had similar information,
but was different.

This caused the /druid/dart-worker/workers API, to return an internal
server error. The API is useful for debugging, although it is not used
during actual queries.

Co-authored-by: Gian Merlino <gianmerlino@gmail.com>
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 Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants