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

Đang mở
#41,528 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@ahmedabu98 đang làm issue này rồi.

Từ ngày 20/11/2026.

  • #41529 của @ahmedabu98 — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go, java

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Java
Star
8.7k
Fork
4.8k
Merge trung bình
3 ngày 16 giờ
Pull request đã merge (30 ngày)
445

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/beam

Tất cả issue của apache/beam

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.