Repository navigation
fix: make Hudi snapshot sync idempotent for already-synced source commit - #993
Open
csarushan1729 wants to merge 4 commits into
Open
csarushan1729 wants to merge 4 commits into
csarushan1729 wants to merge 4 commits into
Conversation
csarushan1729
force-pushed
the
fix/hudi-idempotent-snapshot-sync-962
branch
from
October 28, 2026 09:36
05a29b1 to
a8aff22
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #962
What is the purpose of the pull request
A Hudi snapshot (FULL) sync currently fails when the source commit has already been synchronized to the target.
HudiConversionTarget derives the Hudi instant from the source commit time. On a repeated FULL sync with an unchanged source, it tries to create the same replace-commit again, which results in:
HoodieIOException: Failed to create immutable file .../.replacecommit.inflight
Caused by: FileAlreadyExistsException
This PR makes the commit path idempotent so that repeating a FULL sync of an unchanged source succeeds safely.
Brief change log
Verify this pull request
This change is covered by existing unit tests in TestHudiConversionTarget. The new logic only adds an early return when the instant is already completed, so the normal commit path continues to be exercised by current tests.