yuqi1129 opened a new issue, #13002:
URL: https://github.com/apache/gravitino/issues/13002

   ### Describe the subtask
   
   OwnerMetaService resolves IDs before setOwner/batchSetOwners writes the 
relation. A different node can delete the owner principal and finish cleanup 
before the assignment inserts its row. Single and batch assignment races with 
User deletion reproduce on H2, MySQL, and PostgreSQL. The existing 
metadata-object orphan collector does not repair this case while the owned 
object remains live.
   
   Fence and validate the User/Group owner endpoint by stable identity in the 
assignment transaction. Derive a consistent lock order for batches and 
principal/metalake deletion. Scope this task to owner-principal deletion; 
generic owned-object consistency is a separate design task.
   
   Acceptance:
   - Add explicit Group-owner coverage, both deletion winner orders, 
multiple-object batch rollback, and same-name recreation tests on all three SQL 
engines.
   - Preserve ownership API, supported owner types, and assignment semantics.
   - Verify no active ownership relation points to a deleted principal after 
the operations complete.
   
   Existing orphan cleanup is handled by the companion GC task.
   
   ### Parent issue
   
   https://github.com/apache/gravitino/issues/10238
   


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