[
https://issues.apache.org/jira/browse/HDFS-16816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17623556#comment-17623556
]
ASF GitHub Bot commented on HDFS-16816:
---------------------------------------
xinglin commented on PR #5071:
URL: https://github.com/apache/hadoop/pull/5071#issuecomment-1289991163
yetus may come back with unit test failure of
`TestRouterRPCMultipleDestinationMountTableResolver`. I have tested that this
class is failing on trunk non-deterministically as well. Created another ticket
(HDFS-16818) to handle this unit test failure.
`TestRouterRPCMultipleDestinationMountTableResolver` mainly tests with the
following paths, which shouldn't be impacted with the change in this PR.
```
Path mountDir = new Path("/mount/dir/dir");
Path nameSpaceFile = new Path("/tmp/dir/file");
Path mountFile = new Path("/mount/dir/file");
Path mountEntry = new Path("/mount");
Path mountDest = new Path("/tmp");
Path nameSpaceDir = new Path("/tmp/dir/dir");
```
> RBF: auto-create user home dir for trash paths by router
> --------------------------------------------------------
>
> Key: HDFS-16816
> URL: https://issues.apache.org/jira/browse/HDFS-16816
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: rbf
> Reporter: Xing Lin
> Priority: Minor
> Labels: pull-request-available
>
> In RBF, trash files are moved to trash root under user's home dir at the
> corresponding namespace/namenode where the files reside. This was added in
> HDFS-16024. When the user home dir is not created before-hand at a namenode,
> we run into permission denied exceptions when trying to create the parent dir
> for the trash file before moving the file into it. We propose to enhance
> Router, to auto-create a user home's dir at the namenode for trash paths,
> using router's identity (which is assumed to be a super-user).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]