HDFS-17436. Supplement log information for AccessControlException (#6651)

This commit is contained in:
XiaobaoWu 2024-03-22 11:21:03 +08:00 committed by GitHub
parent a375ef8cfa
commit 062836c020
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -467,6 +467,7 @@ void checkPermission(INode inode, int snapshotId, FsAction access)
false); false);
} }
} catch (AccessControlException ace) { } catch (AccessControlException ace) {
LOG.debug("Error while checking permission: ", ace);
throw new AccessControlException( throw new AccessControlException(
toAccessControlString(nodeAttributes, inode.getFullPathName(), toAccessControlString(nodeAttributes, inode.getFullPathName(),
access)); access));