druid icon indicating copy to clipboard operation
druid copied to clipboard

Flaky test: IndexParallelTaskTest.test_runIndexTask_andReindexIntoAnotherDatasource

Open FrankChen021 opened this issue 1 month ago • 2 comments

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: IndexParallelTaskTest.test_runIndexTask_andReindexIntoAnotherDatasource with SingleDimensionPartitionsSpec (embedded-tests, unit tests (25, I*,L*,J*)) Failures: 2 · First seen: 2026-10-31 · Last seen: 2026-10-31

Root cause

The first index_parallel task in the test (IndexParallelTaskTest.java:134) did not emit task/run/time within LatchableEmitter's default 10 s wait in EmbeddedClusterApis.waitForTaskToFinish. With SingleDimensionPartitionsSpec (parameter [3]) the supervisor task runs three sequential phases (dimension distribution, range-partitioned segment generation, merge), each spawning sub-tasks on the Indexer, so it is the slowest variant and has the least headroom on a loaded runner. Both failures came from commits merged within 5 minutes of each other, whose CI runs overlapped; 317feddae9, merged between them, passed the same job, and neither commit touches batch indexing.

Suggested fix

Give runTask in IndexParallelTaskTest a longer wait for multi-phase tasks (for example, an EmbeddedClusterApis.runTask overload that takes a timeout, used with ~60 s for range and hash partitioning) instead of the 10 s default.

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-31 5abae39110 (#20781) unit tests / unit tests(main) (25, I*,L*,J*) / test-jdk25-[I*,L*,J*] job 124378508194 [3] (SingleDimensionPartitionsSpec): Timed out waiting for event after [10,000]ms waiting for the first task to finish; 1 attempt, no retry
2026-10-31 36d8e07aad (#20299) unit tests / unit tests(main) (25, I*,L*,J*) / test-jdk25-[I*,L*,J*] job 124379850631 [3] (SingleDimensionPartitionsSpec): same 10 s timeout on the first task; 1 attempt, no retry

FrankChen021 avatar Nov 01 '26 02:11 FrankChen021

Can i be assigned? I would like to look into this.

PrakarshSrivastav avatar Nov 01 '26 18:11 PrakarshSrivastav

@PrakarshSrivastav Assigned. Thank you for taking this one.

FrankChen021 avatar Nov 02 '26 03:11 FrankChen021