yuqi1129 opened a new pull request, #11719: URL: https://github.com/apache/gravitino/pull/11719
### What changes were proposed in this pull request? Invalidate `METADATA_OBJECT_ROLE_REL` cache entries for each securable object when a role is created or updated. ### Why are the changes needed? When a role is newly granted privileges on an object, or a role is created with securable objects, the existing object-keyed binding-role relation cache may not contain the new role. Invalidating only the role entity cannot reach that stale object relation cache through the reverse index. Fix: #11701 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? - `./gradlew spotlessApply` - `git diff --check` - `./gradlew :core:test --tests org.apache.gravitino.storage.TestEntityStorageRelationCache.testGrantPrivilegeInvalidatesMetadataObjectRoleRelCache --tests org.apache.gravitino.storage.TestEntityStorageRelationCache.testCreateRoleInvalidatesMetadataObjectRoleRelCache -PskipITs -PskipDockerTests=false` -- 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]
