yuqi1129 commented on code in PR #8712:
URL: https://github.com/apache/gravitino/pull/8712#discussion_r2432200483


##########
core/src/main/java/org/apache/gravitino/cache/CaffeineEntityCache.java:
##########
@@ -303,8 +310,6 @@ protected void invalidateExpiredItem(EntityCacheKey key) {
    * @param newEntities The new entities to sync to the cache.
    */
   private void syncEntitiesToCache(EntityCacheRelationKey key, List<Entity> 
newEntities) {
-    if (key.relationType() != null) return;
-

Review Comment:
   If `if (key.relationType() != null) return;` exists here, entity store cache 
will not cache entities with relation, that is why the cache does not support 
store relational operations.
   
   Note: `key.relationType()` is not null when we are going to put relational 
entities into cache.
   



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