snazy opened a new issue, #761:
URL: https://github.com/apache/polaris/issues/761

   ### Describe the bug
   
   `org.apache.polaris.core.persistence.cache.EntityCache` uses two containers:
   
   ```java
     private final Cache<Long, EntityCacheEntry> byId;
     private final AbstractMap<EntityCacheByNameKey, EntityCacheEntry> byName;
   ```
   
   The first one is a Caffeine cache, the second one is a Java Map.
   
   `byName` can become inconsistent due to race conditions, multiple threads 
acting on the same entity IDs and/or entity names.
   The implementation assumes, that there are no multi-threaded accesses 
against the same entity IDs and/or entity names, which is not guaranteed.
   
   ### To Reproduce
   
   _No response_
   
   ### Actual Behavior
   
   _No response_
   
   ### Expected Behavior
   
   _No response_
   
   ### Additional context
   
   _No response_
   
   ### System information
   
   _No response_


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