Flink: Streaming accepts a start-snapshot-id that is not on the streamed branch

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

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

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

2026年11月29日 から。

  • #19196 @jiwen624 による — オープン

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
java

調査の方向性

Read ContinuousSplitPlannerImpl.startSnapshot and the incremental snapshot discovery path for Flink streaming. Trace how the streamed ref's head and snapshot ancestry are checked at startup, then find the related tests for INCREMENTAL_FROM_SNAPSHOT_ID. Done means startup rejects a start snapshot outside the streamed ref's ancestry with an error naming the snapshot and branch; an open pull request is already linked.

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

説明

bug
Apache Iceberg version

None

Query engine

Flink

Please describe the bug 🐞

With starting-strategy=INCREMENTAL_FROM_SNAPSHOT_ID, ContinuousSplitPlannerImpl.startSnapshot only checks that start-snapshot-id exists in the table, not that it is in the history of the streamed branch (or main). Raised in https://github.com/apache/iceberg/pull/19099#discussion_r4728049051 from @timothyw553

main:  F ── M1 ── M2
        \
b1:      B1

Stream b1:

  • start-snapshot-id = M1 (parent F is on b1): startup succeeds and the job streams b1 from F, so the configured start snapshot is ignored without an error.
  • start-snapshot-id = M2 (parent M1 is not on b1): startup succeeds, and the first incremental discovery fails with Starting snapshot (exclusive) <M1> is not a parent ancestor of end snapshot <B1>.

The same applies when streaming main with a snapshot that is only on a branch.

Proposal: reject a start snapshot that is not an ancestor of the streamed ref's head at startup, with an error naming the snapshot and the branch.

Willingness to contribute
  • I can contribute a fix for this bug independently
  • I would be willing to contribute a fix for this bug with guidance from the Iceberg community
  • I cannot contribute a fix for this bug at this time
主要言語
Java
スター
9.5k
フォーク
3.7k
平均マージ
2日 2時間
マージ済み PR(30日)
170

環境構築

はじめの一歩

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

apache/iceberg のほかの issue

apache/iceberg の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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