jiwen624 opened a new issue, #19171: URL: https://github.com/apache/iceberg/issues/19171
### 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 - [x] 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 -- 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]
