You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Yuanbo Liu (JIRA)" <ji...@apache.org> on 2016/09/21 05:56:20 UTC

[jira] [Created] (HDFS-10883) `getTrashRoot`'s behavior is not consistent in DFS after enabling EZ.

Yuanbo Liu created HDFS-10883:
---------------------------------

             Summary: `getTrashRoot`'s behavior is not consistent in DFS after enabling EZ.
                 Key: HDFS-10883
                 URL: https://issues.apache.org/jira/browse/HDFS-10883
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Yuanbo Liu
            Assignee: Yuanbo Liu


Let's say root path ("/") is the encryption zone, and there is a file called "/test" in root path.
{code}
dfs.getTrashRoot(new Path("/"))
{code}
returns "/user/$USER/.Trash",
while
{code}
dfs.getTrashRoot(new Path("/test"))
{code} 
returns "/.Trash/$USER".
The second behavior is not correct. Since root path is the encryption zone,  which means all files/directories in DFS are encrypted, it's more reasonable   to return  "/user/$USER/.Trash" no matter what the path is. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org