jiwen624 opened a new pull request, #19099:
URL: https://github.com/apache/iceberg/pull/19099

   Once a branch and main point to different snapshots, `IcebergSource` 
streaming from the branch starts from main's snapshot. The symptoms depend on 
`starting-strategy`:
   
   - `INCREMENTAL_FROM_LATEST_SNAPSHOT` (default) and 
`INCREMENTAL_FROM_LATEST_SNAPSHOT_EXCLUSIVE`: silently re-emit branch commits 
from before the start point.
   - `INCREMENTAL_FROM_SNAPSHOT_TIMESTAMP`: fails to start, or re-emits older 
commits once main moves.
   - `INCREMENTAL_FROM_EARLIEST_SNAPSHOT`: fails with an ancestry error once 
main's older snapshots are expired.
   - `TABLE_SCAN_THEN_INCREMENTAL`, once main has a newer commit: emits rows 
not in the branch and skips the branch's own rows. If a checkpoint completes 
first, those rows can reach the sink, and restoring that position fails 
ancestry validation on every restart, with an error that never mentions the bad 
rows.
   
   This change resolves the start snapshot from the branch and fails fast when 
the branch does not exist (previously it idled, or read main). Jobs already 
restored from an affected checkpoint must restart without state. Flink 2.3; 
backports to follow.
   
   **Repro**: create branch `b1` and commit to it, then stream `b1` with the 
default starting strategy. Before: the existing `b1` commits are emitted again. 
After: only the branch's latest snapshot and later commits.
   
   **Test plan**: four `TestContinuousSplitPlannerImpl` tests 
(latest-exclusive, timestamp, earliest after main expiration, missing branch), 
each failing on main and passing 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]

Reply via email to