Flaky test: KinesisFaultToleranceTest.test_supervisorRecovers_afterSuspendResume_withEmptyShards

Aperta Adatta ai principianti
#20,433 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
databases, testing

Direzione di ricerca

Inizia da KinesisFaultToleranceTest.test_supervisorRecovers_afterSuspendResume_withEmptyShards e segui StreamIndexTestBase.verifyRowCount. Leggi l’implementazione esistente di EmbeddedClusterApis.waitForAllSegmentsToBeQueryable aggiunta in #20319, quindi esegui il test embedded interessato. Il lavoro è completato quando lo scenario suspend/resume restituisce costantemente il conteggio previsto di 3000 in CI.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Contributions Welcome Flaky test

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: 3 · First seen: 2026-09-23 · Last seen: 2026-10-14

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
2026-10-08 51b66c7819 (#20516) unit tests / unit tests(main) (25, K*,U*,Z*,Y*,X*) / test-jdk25-[K*,U*,Z*,Y*,X*] job 113291222476 COUNT(*) 2001 vs expected 3000 in verifyAndTearDown; 1/1 attempt
2026-10-14 afe71f5381 (#20577) unit tests / unit tests(main) (25, K*,U*,Z*,Y*,X*) / test-jdk25-[K*,U*,Z*,Y*,X*] job 115925729106 COUNT(*) 2001 vs expected 3000 in verifyAndTearDown; 1/1 attempt (run attempt 1)
Lingua principale
Java
Stelle
14.1k
Fork
3.8k
Merge medio
2g 1h
PR unite (30g)
225

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/druid

Tutte le issue di apache/druid

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.