Skip to content

Conversation

@aiborodin
Copy link
Contributor

@aiborodin aiborodin commented Oct 30, 2025

Fix the race condition in #14425 by validating that all new parent snapshots, fetched by the table refresh in SnapshotProducer.apply(), have a committed checkpoint id strictly lower than the checkpoint id of the currently staged committable. Abort the commit to prevent duplication otherwise.

@aiborodin
Copy link
Contributor Author

@pvary Could you please take a look?

@aiborodin aiborodin force-pushed the fix-duplicated-commit-in-iceberg-sinks branch 3 times, most recently from 6d5ae0d to 65462d6 Compare November 2, 2025 05:02
Change-Id: I3b97982e3dcc180bc82c36f97f335d873fbbde57
@aiborodin aiborodin force-pushed the fix-duplicated-commit-in-iceberg-sinks branch from 65462d6 to 890a2d7 Compare November 2, 2025 06:32
@aiborodin
Copy link
Contributor Author

@pvary @mrcnc I added unit and integration tests reproducing the issue in #14425. I would appreciate it if someone could take a look.

@aiborodin
Copy link
Contributor Author

@pvary @mrcnc I pushed an alternative solution in #14484, which extends BaseRowDelta and BaseReplacePartitions operations in Flink packages instead of adding API methods to RowDelta and ReplacePartitions.

Please let me know which solution you think works best.

@aiborodin
Copy link
Contributor Author

aiborodin commented Nov 6, 2025

The new PR is raised.

@aiborodin aiborodin closed this Nov 6, 2025
@aiborodin aiborodin changed the title Fix commit duplication in DynamicIcebergSink Fix commit duplication in DynamicIcebergSink (old) Nov 6, 2025
@aiborodin aiborodin changed the title Fix commit duplication in DynamicIcebergSink (old) Old: Fix commit duplication in DynamicIcebergSink Nov 6, 2025
@aiborodin aiborodin changed the title Old: Fix commit duplication in DynamicIcebergSink Outdated: Fix commit duplication in DynamicIcebergSink Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant