Flaky test: KinesisFaultToleranceTest.test_supervisorRecovers_afterSuspendResume_withEmptyShards
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: KinesisFaultToleranceTest.test_supervisorRecovers_afterSuspendResume_withEmptyShards (embedded-tests, unit tests (25, K*,U*,Z*,Y*,X*))
Failures: 1 · First seen: 2026-09-23 · Last seen: 2026-09-23
Root cause
StreamIndexTestBase.verifyRowCount gates on waitForAllSegmentsToBeAvailable, which counts Broker schema-refresh metrics. That count can be reached before the handed-off segments are queryable, and the suspend has already dropped the realtime segments, so COUNT(*) returned 2001 instead of 3000.
Suggested fix
Switch verifyRowCount to EmbeddedClusterApis.waitForAllSegmentsToBeQueryable (added in #20319), or poll COUNT(*) until it matches.
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-23 | a379ea849f (#20397) | unit tests (25, K*,U*,Z*,Y*,X*) |
job 107010233701 | COUNT(*) 2001 vs expected 3000; 1/1 attempt |
#20414 |
Source: apache/druid