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


##########
core/src/main/java/org/apache/gravitino/metalake/MetalakeManager.java:
##########
@@ -103,13 +79,6 @@ public void close() {
   public MetalakeManager(EntityStore store, IdGenerator idGenerator) {
     this.store = store;
     this.idGenerator = idGenerator;
-
-    // pre-load all metalakes and put them into cache, this is useful when 
user load schema/table
-    // directly without list/get metalake first.
-    BaseMetalake[] metalakes = listMetalakes();
-    for (BaseMetalake metalake : metalakes) {
-      METALAKE_CACHE.put(metalake.nameIdentifier(), metalake);
-    }

Review Comment:
   Should we add similar logic here to maintain consistency with the current 
logic? 



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