hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhe Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-9844) Correct path creation in getTrashRoot to handle root dir
Date Mon, 22 Feb 2016 23:40:18 GMT

     [ https://issues.apache.org/jira/browse/HDFS-9844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Zhe Zhang updated HDFS-9844:
----------------------------
    Attachment: HDFS-9844.00.patch

> Correct path creation in getTrashRoot to handle root dir
> --------------------------------------------------------
>
>                 Key: HDFS-9844
>                 URL: https://issues.apache.org/jira/browse/HDFS-9844
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: encryption
>    Affects Versions: 2.8.0
>            Reporter: Zhe Zhang
>            Assignee: Zhe Zhang
>            Priority: Blocker
>         Attachments: HDFS-9844.00.patch
>
>
> {code}
>       if ((ez != null)) {
>         return this.makeQualified(
>             new Path(ez.getPath() + "/" + FileSystem.TRASH_PREFIX +
>                 dfs.ugi.getShortUserName()));
> {code}
> This doesn't handle root dir correctly. The unit test {{testRootDirEZTrash}} in the attached
patch can reproduce the error.



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

Mime
View raw message