jiwen624 opened a new pull request, #19196: URL: https://github.com/apache/iceberg/pull/19196
With `INCREMENTAL_FROM_SNAPSHOT_ID`, the streaming source only checks that start-snapshot-id exists in the table, not that it is in the history of the streamed branch. Depending on where the snapshot sits, the job either starts from an unrelated point without an error, or fails at the first discovery with an ancestry or "empty table" error. This PR rejects such a start snapshot at startup, including when the streamed branch has no snapshot yet. A job that starts before its branch exists now fails at startup instead of waiting. Note: this fix would make some jobs that run accidentally today fail at startup - this behavior change needs reviewer/committer's judgement. Closes https://github.com/apache/iceberg/issues/19171 Repro: main: F ── M1, b1: F ── B1. Stream b1 with start-snapshot-id = M1. Before: starts after F and streams B1 with no error. After: `Start snapshot id <M1> is not in the history of branch b1`. Test plan: three TestContinuousSplitPlannerImpl tests: a main snapshot whose parent is on the branch, one whose parent is not, and a missing branch. Each fails on main and passes with the fix. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
