roryqi commented on code in PR #9969:
URL: https://github.com/apache/gravitino/pull/9969#discussion_r2793656188


##########
core/src/main/java/org/apache/gravitino/catalog/CatalogManager.java:
##########
@@ -304,6 +306,11 @@ public CatalogManager(Config config, EntityStore store, 
IdGenerator idGenerator)
             .expireAfterAccess(cacheEvictionIntervalInMs, 
TimeUnit.MILLISECONDS)
             .removalListener(
                 (k, v, c) -> {
+                  for (Consumer<NameIdentifier> listener : removalListeners) {

Review Comment:
   We can remove synchronously. But I have a little concern about close 
operation. It will be ok only if we can remove the key. It won't have a high 
delay. There should't have many catalog expiration operations.



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