Flaky test: IngestionSmokeTest.test_streamLogs_ofCancelledTask (docker tests)
Los mantenedores suelen responder en 2 días
Ya se ha fusionado un pull request relacionado.
- #20549 de @rishi-rana — fusionado
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 84/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- docker, java
- Área
- devops, testing-qa
Línea de trabajo
Comienza en IngestionSmokeTest.java alrededor de la línea 398 e inspecciona la llamada a waitForResult para test_streamLogs_ofCancelledTask. Ejecuta ConsulDiscoveryPlainDockerTest o el objetivo docker-tests y, a continuación, ajusta la condición de espera como se describe para que el log transmitido contenga "Running task[%s] for [%d] millis" y la prueba pase de forma fiable.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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: recurred after #20549
Subject: IngestionSmokeTest.test_streamLogs_ofCancelledTask, seen via ConsulDiscoveryPlainDockerTest and KubernetesClusterDockerTest (embedded-tests, docker-tests)
Failures: 2 · First seen: 2026-09-25 · Last seen: 2026-11-03
Root cause
The test reads the cancelled task's log through the embedded Overlord's TaskLogStreamer binding. The first failure (Consul variant) was a race with the Indexer writing its log file, fixed by #20549, which now polls until the log contains Running task[%s] for [%d] millis. On 2026-11-03 the KubernetesClusterDockerTest variant failed that poll: the stream stayed empty for the whole default 10 s waitForResult timeout (IngestionSmokeTest.java:454). In that subclass the embedded Overlord is deliberately not the leader (the k3s pod Overlord is), so its task runner does not know the task. It can only serve the log from deep storage, which has the log only after the MiddleManager in k3s uploads it once the cancelled peon has exited, and that can take longer than 10 s. The failing commit (#20826, a brotli version bump) does not touch this code, and the docker-tests job passed on the neighbouring master commits.
Suggested fix
Fetch the log from the leader Overlord (cluster.callApi().onLeaderOverlord(...), i.e. the /druid/indexer/v1/task/{id}/log API) rather than the local TaskLogStreamer binding, or give this wait a longer timeout (e.g. .withTimeoutMillis(60_000), matching the subclass's 60 s useDefaultTimeoutForLatchableEmitter).
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-25 | 53e814e87c (#20425) | docker-tests |
job 108039867472 | streamed task log was empty; single attempt (no surefire retries) | #20428 |
| 2026-11-03 | 0bce210c62 (#20826) | docker-tests / Run Docker tests |
job 126014185494 | KubernetesClusterDockerTest: ISE: Condition not met after [10,110] ms. Final object was [] (log stream stayed empty); 1 attempt, no surefire retries |
- Lenguaje dominante
- Java
- Estrellas
- 14.1k
- Forks
- 3.8k
- Merge medio
- 2 d 2 h
- PR fusionados (30 d)
- 210
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/druid
-
Area - Web Console Bug
Dificultad 2/5 Menos de una hora Aptitud para principiantes 80/100
apache/druid#20605 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Flaky test: KinesisFaultToleranceTest.test_supervisorRecovers_afterSuspendResume_withEmptyShardsPosiblemente ocupada @OjashKush la tomó hoy. AbiertoContributions Welcome Flaky test
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/druid#20433 · 5 comentarios ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apache/druid#19634 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Uncategorized problem report
Dificultad 1/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
Druid 39 release notesAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 20/100
Los mantenedores suelen responder en 2 días
Todos los issues de apache/druid
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
vert-x3/vertx-mail-client#268 ·
-
Startup can freeze while MigLayout's component wrapper runs its static initializer on the EDTAbiertodesktop edt not responding
Dificultad 1/5 1-3 horas Aptitud para principiantes 86/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
physical
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
antonyrag/ragleap-core#1339 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
apache/doris-kafka-connector#110 ·