hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Wang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9881) DistributedFileSystem#getTrashRoot returns incorrect path for encryption zones
Date Tue, 01 Mar 2016 21:45:18 GMT

    [ 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)

Mime
View raw message