xunliu commented on code in PR #8269:
URL: https://github.com/apache/gravitino/pull/8269#discussion_r2297518034


##########
server-common/src/main/java/org/apache/gravitino/server/authorization/jcasbin/JcasbinAuthorizer.java:
##########
@@ -171,8 +171,7 @@ public boolean isMetalakeUser(String metalake) {
                   UserEntity.class)
           != null;
     } catch (Exception e) {
-      LOG.warn("Can not get user {} in metalake {}", currentUserName, 
metalake, e);
-      return false;
+      throw new RuntimeException(e);

Review Comment:
   Why do we need to throw an exception in here?



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