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 "Zhe Zhang (JIRA)" <ji...@apache.org> on 2016/02/23 00:39:18 UTC
[jira] [Created] (HDFS-9844) Correct path creation in getTrashRoot
to handle root dir
Zhe Zhang created HDFS-9844:
-------------------------------
Summary: 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
{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)