[ 
https://issues.apache.org/jira/browse/HDFS-10883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15511783#comment-15511783
 ] 

Yuanbo Liu edited comment on HDFS-10883 at 9/22/16 1:37 AM:
------------------------------------------------------------

[~andrew.wang] Sure, I can work on it if you don't mind.

{quote}
I think the second behavior is more consistent...
{quote}
[~jojochuang]'s comment reminds me that things're gonna be complicated if we 
take {{getTrashRoot("/")}} as a special case. I will change my description.


was (Author: yuanbo):
[~andrew.wang] Sure, I can work on it if you don't mind.

{quote}
I think the second behavior is more consistent...
{quote}
[~jojochuang]'s comment reminds me that things're gonna be complicated if we 
take {{etTrashRoot("/")}} as a special case. I will change my description.

> `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
>         Attachments: HDFS-10883-test-case.txt, HDFS-10883.001.patch
>
>
> 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".
> Please see the attachment to know how to reproduce this issue.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to