xunliu commented on code in PR #7969:
URL: https://github.com/apache/gravitino/pull/7969#discussion_r2271622282


##########
core/src/main/java/org/apache/gravitino/storage/relational/RelationalEntityStore.java:
##########
@@ -120,9 +158,39 @@ public <E extends Entity & HasIdentifier> E update(
       NameIdentifier ident, Class<E> type, Entity.EntityType entityType, 
Function<E, E> updater)
       throws IOException, NoSuchEntityException, EntityAlreadyExistsException {
     cache.invalidate(ident, entityType);
+
+    // Invalid all related cache entries by relation.
+    invalidateCacheByRelation(ident, entityType);
+
     return backend.update(ident, entityType, updater);
   }
 
+  private void invalidateCacheByRelation(NameIdentifier ident, 
Entity.EntityType entityType)

Review Comment:
   hi @yuqi1129 
   Can we use this `invalidateCacheByRelation ` to fix 
https://github.com/apache/gravitino/issues/7787#issuecomment-3157777461?



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