yuqi1129 opened a new issue, #12738: URL: https://github.com/apache/gravitino/issues/12738
### Describe the subtask Implement database OCC and atomic service operations for managed groups. - Audit every mutating entry point in `GroupMetaService`, including create, alter, delete, external-id updates, and relationship changes. - Fence the active parent metalake with an expected version when creating a managed group, in the same transaction as the insert. - Advance the group OCC version on every successful alter and update rows by id plus the expected current version. - Make direct deletes version checked and execute the group CAS before dependent cleanup. - Keep every database operation performed by one service API call in one outer transaction, including group rows, group-role and ownership relationships, and change logs. No nested service call may commit partial state. - If any CAS affects zero rows, throw `OptimisticLockException` and roll back every write from that API call. - Test create versus metalake delete, alter/alter, alter/delete, stale delete, external-id updates, and relationship rollback. Depends on #12341. ### Parent issue https://github.com/apache/gravitino/issues/12166 -- 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]
