yuqi1129 commented on code in PR #2873: URL: https://github.com/apache/gravitino/pull/2873#discussion_r1955686033
########## core/src/main/java/org/apache/gravitino/authorization/AccessControlManager.java: ########## @@ -57,44 +61,68 @@ public AccessControlManager(EntityStore store, IdGenerator idGenerator, Config c @Override public User addUser(String metalake, String user) throws UserAlreadyExistsException, NoSuchMetalakeException { - return userGroupManager.addUser(metalake, user); + return TreeLockUtils.doWithTreeLock( + NameIdentifier.of(AuthorizationUtils.ofGroupNamespace(metalake).levels()), Review Comment: OK, Let me change it. -- 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: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org