[
https://issues.apache.org/jira/browse/HDFS-9881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15174468#comment-15174468
]
Andrew Wang commented on HDFS-9881:
-----------------------------------
We still missed adding a / after TRASH_PREFIX, HDFS-9844 fixes the issue with
"/" as EZ though.
We should avoid using string concatenation for paths in general, it leads to
issues like this.
> DistributedFileSystem#getTrashRoot returns incorrect path for encryption zones
> ------------------------------------------------------------------------------
>
> Key: HDFS-9881
> URL: https://issues.apache.org/jira/browse/HDFS-9881
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.8.0
> Reporter: Andrew Wang
> Assignee: Andrew Wang
> Priority: Critical
> Attachments: HDFS-9881.001.patch
>
>
> getTrashRoots is missing a "/" in the path concatenation, so ends up putting
> files into a directory named "/ez/.Trashandrew" rather than
> "/ez/.Trash/andrew"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)