Skip to content

Flaky test: IngestionSmokeTest.test_runIndexTask_andKillData (KubernetesClusterDockerTest) #20909

Open

Description

@FrankChen021

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: Fix PR #20962 open
Subject: IngestionSmokeTest.test_runIndexTask_andKillData in KubernetesClusterDockerTest (embedded-tests, docker-tests / Run Docker tests)
Failures: 1 · First seen: 2026-11-13 · Last seen: 2026-11-13

Root cause

After marking the 10 segments unused, the test calls waitForNextBrokerCacheSync() and then expects sys.segments to be empty (IngestionSmokeTest.java:248), but sys.segments still listed all 10 segments as published and active (is_published=1, is_available=0). KubernetesClusterDockerTest runs two Brokers: the K3s Broker polls Coordinator segment metadata every 1 s and the in-JVM EmbeddedBroker (added for its client bindings) every 100 ms (druid.sql.planner.metadataSegmentPollPeriod). Both emit segment/metadataCache/sync/time as druid/broker, so the wait can be satisfied by one Broker while the SQL query is answered from the other's stale MetadataSegmentView. #20806 only changes deep-storage pushers and killers, which this check runs before; the same job passed on the neighbouring master commits a48de36 and 2b71ffb. This differs from #20431, which was a missed segment/schemaCache/dataSource/removed metric in IngestionDockerTest.

Suggested fix

Make waitForNextBrokerCacheSync() wait for a sync event that started after the wait from every Broker (matched by host), so whichever Broker answers the sys.segments query has already dropped the unused segments. Fix PR: #20962 (open) does this.

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-11-13 6ef0603 (#20806) docker-tests / Run Docker tests job 131728977438 sys.segments still returned all 10 segments (is_published=1) after the Broker sync wait, at IngestionSmokeTest.java:248; 1 attempt, no retry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions