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

Aberta
#41,528 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 2 dias

@ahmedabu98 já está trabalhando nisso.

Desde 20/11/2026.

  • #41529 de @ahmedabu98 — aberto

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
go, java

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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
Linguagem predominante
Java
Estrelas
8.7k
Forks
4.8k
Merge médio
3d 16h
PRs com merge (30d)
445

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de apache/beam

Todas as issues de apache/beam

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.