Robert Joseph Evans created HADOOP-9201:
-------------------------------------------

             Summary: Trash can get Namespace collision
                 Key: HADOOP-9201
                 URL: https://issues.apache.org/jira/browse/HADOOP-9201
             Project: Hadoop Common
          Issue Type: Bug
          Components: trash
    Affects Versions: 0.23.5, 2.0.2-alpha, 1.0.2
            Reporter: Robert Joseph Evans


{noformat}
$ hadoop fs -touchz test
$ hadoop fs -rm test
Moved: 'hdfs://nn:8020/user/ME/test' to trash at: 
hdfs://nn:8020/user/ME/.Trash/Current
$ hadoop fs -mkdir test
$ hadoop fs -touchz test/1
$ hadoop fs -rm test/1
WARN fs.TrashPolicyDefault: Can't create trash directory: 
hdfs://nn:8020/user/ME/.Trash/Current/user/ME/test
rm: Failed to move to trash: hdfs://nn:8020/user/ME/test/1. Consider using 
-skipTrash option
{noformat}

On 1.0.2 it looks more like
{noformat}
 WARN fs.Trash: Can't create trash directory: 
hdfs://nn:8020/user/ME/.Trash/Current/user/ME/test
Problem with Trash.java.io.FileNotFoundException: Parent path is not a 
directory: /user/ME/.Trash/Current/user/ME/test
        at 
org.apache.hadoop.hdfs.server.namenode.FSDirectory.mkdirs(FSDirectory.java:949)
        at 
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirsInternal(FSNamesystem.java:2069)
        at 
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirs(FSNamesystem.java:2030)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.mkdirs(NameNode.java:817)
        at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:563)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1388)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1384)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:396)
        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1093)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1382)
. Consider using -skipTrash option
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to