Flaky test: IngestionDockerTest.test_runIndexTask_andKillData
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 #20291
Subject: IngestionDockerTest.test_runIndexTask_andKillData (embedded-tests, docker-tests)
Failures: 1 · First seen: 2026-09-10 · Last seen: 2026-09-10
Root cause
After the kill task, the test waits 240 s for a single segment/schemaCache/dataSource/removed event from the Broker, so one missed or late emission fails the test. The test's sys.segments check was already moved to polling in #19416; this metric wait was not.
Suggested fix
#20291 (merged 2026-09-26) emits segment/schemaCache/dataSource/removed from the Broker's last-segment callback, so the metric no longer depends on a background refresh. Close after 7 days with no recurrence; if it recurs, poll the Broker schema or sys.segments instead of waiting for one metric event.
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 | 8d9545ea58 (#20247) | docker-tests |
job 102752252468 | timed out after 240 s waiting for segment/schemaCache/dataSource/removed |
#20312 |
Source: apache/druid