Skip to content

Flaky test: AutoCompactionTest.testAutoCompactionPreservesCreateBitmapIndexInDimensionSchema #20749

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 #20608
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 not reached within the 300 s latchable-emitter timeout. The likely cause is the lost wakeup in SegmentLoadDropHandler.processBatch() described in #20608: if a load finishes between its status being read as PENDING and the batch future being registered, the cluster's only Historical stops loading until druid.coordinator.loadqueuepeon.http.hostTimeout (5 minutes) expires, which is exactly this test's wait. The failing commit (#20728) only touches HistoricalCloningTest, and the same test passed on the previous master commit (434de02).

Suggested fix

#20608 (merged 2026-10-31) re-checks request statuses under the waitingFutures lock before registering the batch future (it targets the same stall in KafkaClusterMetricsTest, #20603). If the test still times out after that, make waitForAllSegmentsToBeAvailable first wait for the Coordinator to report the segments loaded, so the failure shows whether the Historical or the Broker stalled.

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 b2ca05f (#20728) unit tests / unit tests(main) (25, M*,A*,V*,W*) / test-jdk25-[M*,A*,V*,W*] 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; likely the SegmentLoadDropHandler lost wakeup (#20608)

Activity

  1. FrankChen021 commented on Nov 7, 2026

    @FrankChen021
    MemberAuthor

    Resolved by #20608; no failures on master since 2026-10-31.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions