Skip to content

Flaky test: EmbeddedDartQueryCancellationTest.test_cancelDartQuery_cancelsWorkOrderRetries #20683

Closed

Description

@FrankChen021

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: Resolved by #20825
Subject: EmbeddedDartQueryCancellationTest.test_cancelDartQuery_cancelsWorkOrderRetries (embedded-tests, unit tests / unit tests(main) (25, E*,G*,F*))
Failures: 5 · First seen: 2026-10-21 · Last seen: 2026-11-03

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. None of the failing commits touches this code (#20648 changes OpenTelemetry emitter packaging, #20675 bumps Vert.x, #20771 bumps fastutil, #20822 changes EmptyCursorHolder#canVectorize), and the same job passed on the neighbouring master commits.

Suggested fix

#20825 (merged 2026-11-05) removed EmbeddedDartQueryCancellationTest and its HistoricalBlackhole port swap, so this failure mode no longer exists on master. If a replacement test blackholes the Historical, use a Jetty handler or servlet filter instead of rebinding the connector port.

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 96431fe (#20648) unit tests / unit tests(main) (25, E*,G*,F*) / test-jdk25-[E*,G*,F*] 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
2026-10-24 d79e41b (#20675) unit tests / unit tests(main) (25, E*,G*,F*) / test-jdk25-[E*,G*,F*] job 120744720175 Same IOException: Failed to bind to 0.0.0.0/0.0.0.0:8083 (BindException: Address already in use) in HistoricalBlackhole.close() (line 190, via line 103); 1/1 attempt
2026-10-30 d2c0150 (#20771) unit tests / unit tests(main) (25, E*,G*,F*) / test-jdk25-[E*,G*,F*] job 123898798197 Same IOException: Failed to bind to 0.0.0.0/0.0.0.0:8083 (BindException: Address already in use) in HistoricalBlackhole.close() (line 190, via line 103); 1/1 attempt
2026-11-01 83f76f2 (#20729) unit tests / unit tests(main) (25, E*,G*,F*) / test-jdk25-[E*,G*,F*] job 124730457096 Same IOException: Failed to bind to 0.0.0.0/0.0.0.0:8083 (BindException: Address already in use) in HistoricalBlackhole.close() (line 190, via line 103); 1/1 attempt
2026-11-03 df71642 (#20822) unit tests / unit tests(main) (25, E*,G*,F*) / test-jdk25-[E*,G*,F*] job 125749531362 Same IOException: Failed to bind to 0.0.0.0/0.0.0.0:8083 (BindException: Address already in use) in HistoricalBlackhole.close() (line 190, via line 103); 1/1 attempt

Activity

  1. FrankChen021 commented on Oct 25, 2026

    @FrankChen021
    MemberAuthor

    Failed again on 2026-10-24: d79e41b (#20675) job 120744720175, same BindException on port 8083 when HistoricalBlackhole.close() restarts the connector.

  2. Nimish2098 commented on Oct 26, 2026

    @Nimish2098
    Contributor

    Hi! I recently worked on a similar test and lifecycle fix in PR . Would it be alright if I take a look at this issue and try to put up a fix?

  3. FrankChen021 commented on Oct 27, 2026

    @FrankChen021
    MemberAuthor

    @Nimish2098 sure. I assigned this one to you. Thank you.

  4. FrankChen021 commented on Oct 31, 2026

    @FrankChen021
    MemberAuthor

    Failed again on 2026-10-30: d2c0150 (#20771) job 123898798197, same BindException on port 8083 when HistoricalBlackhole.close() restarts the connector (1/1 attempt).

  5. FrankChen021 commented on Nov 2, 2026

    @FrankChen021
    MemberAuthor

    Failed again on 2026-11-01: 83f76f2 (#20729) job 124730457096, same BindException: Address already in use on port 8083 in HistoricalBlackhole.close().

  6. FrankChen021 commented on Nov 4, 2026

    @FrankChen021
    MemberAuthor

    Failed again on 2026-11-03: df71642 (#20822) job 125749531362, same BindException: Address already in use on port 8083 in HistoricalBlackhole.close() (1/1 attempt).

  7. Nimish2098 commented on Nov 11, 2026

    @Nimish2098
    Contributor

    Hey, it looks like this test/code was removed in #20825 . Should we close this flaky test issue as obsolete?

  8. FrankChen021 commented on Nov 12, 2026

    @FrankChen021
    MemberAuthor

    Resolved by #20825; no failures on master since 2026-11-05. (#20825 removed the test and its HistoricalBlackhole helper.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions