JingsongLi opened a new pull request, #9269:
URL: https://github.com/apache/paimon/pull/9269

   ## What changed
   
   - Stop automatically aborting commit messages when `CommitConflictError` 
propagates from a table commit.
   - Preserve prepared data and index files for callback, hash-index, 
bucket-plan, and retry conflict paths.
   - Update regression tests to make orphan-file preservation the explicit 
safety contract.
   
   ## Why
   
   Commit callbacks run after the snapshot is successfully committed. If a 
callback performs a nested commit and propagates `CommitConflictError`, the 
outer table commit cannot safely distinguish that post-commit failure from a 
pre-snapshot conflict. Automatically aborting in that situation can delete 
files referenced by a committed snapshot.
   
   This change prefers possible orphan files over any risk of deleting 
committed data. Explicit `abort()` calls and cleanup before commit starts 
remain unchanged.
   
   ## Validation
   
   - `139 passed, 13 subtests passed` across commit callback, dynamic bucket, 
file store commit, table commit, table write, and REST snapshot commit tests.
   - `py_compile` passed for all changed Python files.
   - `git diff --check` passed.
   


-- 
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]

Reply via email to