hdygxsj commented on code in PR #8269:
URL: https://github.com/apache/gravitino/pull/8269#discussion_r2297534663
##########
server-common/src/main/java/org/apache/gravitino/server/authorization/jcasbin/JcasbinAuthorizer.java:
##########
@@ -309,8 +307,7 @@ private boolean loadPrivilegeAndAuthorize(
userId = userEntity.id();
metadataId = MetadataIdConverter.getID(metadataObject, metalake);
} catch (Exception e) {
- LOG.debug("Can not get entity id", e);
- return false;
+ throw new RuntimeException(e);
Review Comment:
If a certain metadata does not exist in Gravitino, an exception will be
thrown here. In fact, it should return `false`, because throwing an exception
would interrupt the list metadata operation.
--
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]