You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "FrankChen021 (via GitHub)" <gi...@apache.org> on 2026/09/26 11:15:10 UTC
[I] Flaky test: SeekableStreamSupervisorStateTest.testSupervisorStopTaskGroupEarly (druid)
FrankChen021 opened a new issue, #20429:
URL: https://github.com/apache/druid/issues/20429
_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:** `SeekableStreamSupervisorStateTest.testSupervisorStopTaskGroupEarly` (indexing-service, `unit tests (25, S*)`)
**Failures:** 2 · **First seen:** 2026-09-10 · **Last seen:** 2026-09-15
### Root cause
Race: the test treats `getNoticesQueueSize() == 0` as "handoff notice handled". The notice thread `poll()`s the notice before calling `handle()`, so the queue can be empty before `handoffEarly` is set. `runInternal()` then never calls `TaskQueue.shutdown("id1", ...)`, and EasyMock reports `expected: 1, actual: 0`. Under load it fails all 4 surefire attempts.
### Suggested fix
In `TestSeekableStreamSupervisor`, override `emitNoticeProcessTime` to count down a `CountDownLatch` for `handoff_task_group_notice`. Replace the `while (getNoticesQueueSize() > 0) sleep` loop with `latch.await(timeout)`.
### 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-09-10 | 1f68c5e168 (#19818) | `unit tests (25, S*)` | [job 102763954928](https://github.com/apache/druid/actions/runs/34443744711/job/102763954928) | EasyMock `TaskQueue.shutdown` expected 1, actual 0; 4/4 attempts | #20312 |
| 2026-09-15 | 76ddcf297e (#20307) | `unit tests (25, S*)` | [job 104262934243](https://github.com/apache/druid/actions/runs/34932320184/job/104262934243) | same; 4/4 attempts | #20360 |
--
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: commits-unsubscribe@druid.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
Re: [I] Flaky test: SeekableStreamSupervisorStateTest.testSupervisorStopTaskGroupEarly (druid)
Posted by "FrankChen021 (via GitHub)" <gi...@apache.org>.
FrankChen021 closed issue #20429: Flaky test: SeekableStreamSupervisorStateTest.testSupervisorStopTaskGroupEarly
URL: https://github.com/apache/druid/issues/20429
--
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: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org