pithecuse527 commented on code in PR #13834:
URL: https://github.com/apache/gravitino/pull/13834#discussion_r4261142728


##########
core/src/main/java/org/apache/gravitino/hook/MetalakeHookDispatcher.java:
##########
@@ -122,7 +126,11 @@ public void disableMetalake(NameIdentifier ident) throws 
NoSuchMetalakeException
   public boolean dropMetalake(NameIdentifier ident) {
     // For metalake, we don't clear all the privileges of catalog 
authorization plugin.
     // we just remove metalake.
-    return dispatcher.dropMetalake(ident);
+    boolean dropped = dispatcher.dropMetalake(ident);
+    if (dropped) {
+      AuthorizationUtils.notifyEntityNameIdMappingChange(ident, 
Entity.EntityType.METALAKE);
+    }
+    return dropped;
   }

Review Comment:
   ditto



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