You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "roryqi (via GitHub)" <gi...@apache.org> on 2026/08/27 13:10:01 UTC

[I] [Subtask] Integrate policy-to-tag relation updates with endpoint OCC [gravitino]

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

   ### Describe the subtask
   
   Track the endpoint lifecycle fencing deferred from #12579.
   
   `PolicyTagRelService.updateRelations` currently serializes updates by locking the Tag row and uses CAS for relation-row deletion, but it does not lock or CAS-fence every affected Policy endpoint. A Policy may therefore be modified or deleted concurrently while the relation transaction is validating or writing associations.
   
   - Reuse the metadata OCC token introduced by #12347 instead of directly incrementing the Policy `current_version`.
   - Validate and fence the live Tag and every affected Policy inside the relation transaction.
   - Apply relation-row CAS writes only after the endpoints have been fenced.
   - Ensure a zero-row endpoint or relation CAS rolls back the complete relation update.
   - Add concurrency tests for H2, MySQL, and PostgreSQL.
   
   ### Parent issue
   
   https://github.com/apache/gravitino/issues/12347


-- 
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: commits-unsubscribe@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org