FrankChen021 opened a new issue, #20749: URL: https://github.com/apache/druid/issues/20749
_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:** `AutoCompactionTest.testAutoCompactionPreservesCreateBitmapIndexInDimensionSchema` (embedded-tests, `unit tests / unit tests(main) (25, M*,A*,V*,W*) / test-jdk25-[M*,A*,V*,W*]`) **Failures:** 1 · **First seen:** 2026-10-26 · **Last seen:** 2026-10-26 ### Root cause The test fails in its very first step: after the initial `index` task succeeds, `CompactionTestBase.runTask` calls `EmbeddedClusterApis.waitForAllSegmentsToBeAvailable`, which waits for the Broker's `segment/schemaCache/refresh/count` for the datasource to reach the number of used segments (4). That sum was never reached within the 300 s latchable-emitter timeout, so the 4 segments were not all loaded on the single Historical and refreshed in the Broker schema cache in time. `AutoCompactionTest` shares one cluster across its 31 test cases, and earlier cases leave compaction supervisors, compaction tasks and segment unloads running in the background, which can delay segment assignment or the Broker's schema refresh. The failing commit (#20728) only touches `HistoricalCloningTest`, and the same test passed on the previous master commit (434de02b20). ### Suggested fix Fail fast with a useful message: before waiting on the Broker metric, wait for the Coordinator to report the segments as loaded (e.g. `segment/loadQueue/success` or `sys.segments` `is_available`), and log which of the two stages stalled. If the stall comes from leftover work of a previous case, suspend or delete all compaction supervisors and wait for running tasks to finish in a `@AfterEach`. ### 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-26 | b2ca05f502 (#20728) | `unit tests / unit tests(main) (25, M*,A*,V*,W*) / test-jdk25-[M*,A*,V*,W*]` | [job 121618423123](https://github.com/apache/druid/actions/runs/40336227184/job/121618423123) | `[1]` (first compaction engine): `ISE: Timed out waiting for event after [300,000]ms` in `waitForAllSegmentsToBeAvailable` (`AutoCompactionTest.java:510` → `CompactionTestBase.runTask:79`); 1 attempt, no rerun | | -- 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]
