nevzheng opened a new pull request, #12266:
URL: https://github.com/apache/gravitino/pull/12266

   ### What changes were proposed in this pull request?
   
   This is Stack 30, PR 5 of 8.
   
   - Fence completion using J1's current heartbeat token.
   - In one transaction, verify the exact J1/D1/table linkage, mark J1 
`SUCCEEDED`, remove table-owned relations and the retained table root, and 
consume D1.
   - Require exactly one retained root and one D1 deletion; roll back on 
mismatch.
   - Protect a linked terminal job from pruning while D1 still references it.
   - Preserve the V1 `markSucceeded` path.
   
   After this PR, successful cleanup consumes only the exact retained 
generation.
   
   ### Why are the changes needed?
   
   A stale worker or later same-name generation must never satisfy 
finalization. A relational failure after external cleanup must leave a 
replayable job.
   
   Part of #12258.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No new API. A fully consumed generation returns the ordinary metadata `404`.
   
   ### How was this patch tested?
   
   Test coverage is included for exact relation cleanup, wrong-job and 
wrong-table rejection, row-count rollback, atomic success, terminal receipt 
retention, and V1 completion.
   
   No post-rebase local test run was performed; CI validation is pending.
   


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