Siyao Meng created HDDS-5041:
--------------------------------

             Summary: OFSPath#getTrashRoot and BROCAI#getTrashRoots should use 
getShortUserName instead of getUserName
                 Key: HDDS-5041
                 URL: https://issues.apache.org/jira/browse/HDDS-5041
             Project: Apache Ozone
          Issue Type: Bug
          Components: Ozone Client
            Reporter: Siyao Meng
            Assignee: Siyao Meng


Inspired by HDDS-5019, we should use getShortUserName() instead of 
getUserName() as Kerberos principal can differ on different nodes while we 
trust admin will map those Kerberos principal to the same short user names.

https://github.com/apache/ozone/blob/4128813ab495dfd3941c0252e61e41ca7d1cf1ce/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OFSPath.java#L301

https://github.com/apache/ozone/blob/8585fba44a6ffe22fa2c65cc651acec6b6872e5e/hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java#L581

cc [~xyao]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to