FrankChen021 opened a new issue, #20683: URL: https://github.com/apache/druid/issues/20683
_This issue was generated automatically by Claude Code (Anthropic's AI coding agent) running a scheduled CI-triage routine on behalf of @FrankChen021. Analysis and suggested fixes are AI-produced; please verify before acting on them._ **Status:** Open: no fix PR **Subject:** `EmbeddedDartQueryCancellationTest.test_cancelDartQuery_cancelsWorkOrderRetries` (embedded-tests, `unit tests / unit tests(main) (25, E*,G*,F*)`) **Failures:** 1 · **First seen:** 2026-10-21 · **Last seen:** 2026-10-21 ### Root cause The test's `HistoricalBlackhole` stops the Historical's Jetty connector, binds a plain `ServerSocket` on the same fixed port (8083) to swallow `/workOrder` requests, and in `close()` closes that socket and calls `connector.start()` to rebind 8083. The rebind failed with `BindException: Address already in use` (line 190, via line 103): the port is released and re-acquired with no retry, and `close()` calls `executor.shutdownNow()` without waiting for the accept thread, so anything still holding 0.0.0.0:8083 at that instant fails the test. The commit (#20648) only changes the OpenTelemetry emitter packaging, and the same job passed on the neighbouring master commits. ### Suggested fix Avoid swapping the port: blackhole `/workOrder` and `/stop` with a Jetty handler or servlet filter on the Historical instead of stopping its connector. Failing that, await the accept thread's termination in `close()` and retry `connector.start()` with a short backoff on `BindException`. ### Occurrences Failed push-triggered master jobs only. The daily triage routine adds one row per new failed job. | Date | Commit | Job | Failure log | Detail | Reported in | |---|---|---|---|---|---| | 2026-10-21 | 96431fe6c4 (#20648) | `unit tests / unit tests(main) (25, E*,G*,F*) / test-jdk25-[E*,G*,F*]` | [job 119289424393](https://github.com/apache/druid/actions/runs/39619665915/job/119289424393) | `IOException: Failed to bind to 0.0.0.0/0.0.0.0:8083` (`BindException: Address already in use`) when `HistoricalBlackhole.close()` restarts the connector; 1/1 attempt | | -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
