FrankChen021 opened a new issue, #20644:
URL: https://github.com/apache/druid/issues/20644

   _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:** 
`HistoricalCloningTest.test_cloneHistoricals_inTurboMode_duringCoordinatorLeaderSwitch`
 (embedded-tests, `unit tests / unit tests(main) (25, H*,D*,T*,O*) / 
test-jdk25-[H*,D*,T*,O*]`)
   **Failures:** 1 · **First seen:** 2026-10-19 · **Last seen:** 2026-10-19
   
   ### Root cause
   
   The test starts two coordinators (`coordinator1` and `coordinator2`) at the 
same time but assumes `coordinator1` wins the leader election: it waits for 
`segment/loadQueue/success` on `coordinator1.latchableEmitter()` (line 89) and 
later stops `coordinator1` to "switch" leaders. Only the leader runs the 
`HistoricalManagementDuties` that emit this metric, so when `coordinator2` wins 
the election, the wait times out after 10 s (`ISE: Timed out waiting for event 
after [10,000]ms`). The failing commit only bumps the pac4j version, and the 
same job passed on the PR's pre-merge run and on the next master commit 
(38a1533456).
   
   ### Suggested fix
   
   Make leadership deterministic: either add `coordinator2` to the cluster only 
after `coordinator1` has completed a duty run (the same way `historical2` is 
added later), or find the current leader via 
`bindings().coordinatorLeaderSelector().isLeader()` (as `HighAvailabilityTest` 
does) and wait on and stop that coordinator.
   
   ### 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-19 | e46661bb70 (#20624) | `unit tests / unit tests(main) (25, 
H*,D*,T*,O*) / test-jdk25-[H*,D*,T*,O*]` | [job 
117848164805](https://github.com/apache/druid/actions/runs/39185900060/job/117848164805)
 | 10 s wait for `segment/loadQueue/success` on `coordinator1` timed out at 
line 89; 1 attempt (no surefire 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]

Reply via email to