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

オープン
#41,528 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@ahmedabu98 がすでに取り組んでいます。

2026年11月20日 から。

  • #41529 @ahmedabu98 による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go, java

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Java
スター
8.7k
フォーク
4.8k
平均マージ
3日 16時間
マージ済み PR(30日)
445

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/beam のほかの issue

apache/beam の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。