[Bug][Prism]: SDF split residual advances watermark past split primary's output (late data)

Aperta
#41,528 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@ahmedabu98 ci sta già lavorando.

Dal 20/11/2026.

  • #41529 di @ahmedabu98 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go, java

Direzione di ricerca

Start with engine/elementmanager.go and stage.go, where the issue identifies the watermark handling for in-progress bundles and split residuals. Reproduce the late-data case with Prism SDF splitting enabled, then compare it with --experiments=prism_disable_sdf_split. Done means the original bundle's output cannot arrive behind an advanced stage watermark; account for the linked open pull request before taking this on.

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

Descrizione

bug P1 prism
What happened?

When a splittable DoFn's bundle runs slowly, Prism splits it in two. If the split-off half finishes first with a later watermark, Prism advances the whole stage's watermark to it, even though the original half is still running. The original half's output then arrives after the watermark has passed it, so a windowed GroupByKey downstream treats it as late data.

Seen: Iceberg CDC streaming read replaying snapshot committed before pipeline start. Residual's empty poll sets watermark to now - poll interval. Snapshot's rows reach sink's commit-window GBK as LATE pane → dead_letter.

  • Prism v2.78.0: lost in 5/15 starts
  • --experiments=prism_disable_sdf_split: 0/15
  • Java DirectRunner: 0/20

Code:

  • engine/elementmanager.go: stageState.estimatedOutput single value, overwritten per bundle, overrides output watermark, ignores in-progress bundles
  • stage.go: split residuals' output watermarks dropped

Workaround: --experiments=prism_disable_sdf_split.

Issue Priority

Priority: 1 (data loss / total loss of function)

Issue Components
  • Component: Prism Runner
Lingua principale
Java
Stelle
8.7k
Fork
4.8k
Merge medio
3g 16h
PR unite (30g)
445

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/beam

Tutte le issue di apache/beam

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.