[
https://issues.apache.org/jira/browse/HADOOP-10902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14083519#comment-14083519
]
Hudson commented on HADOOP-10902:
---------------------------------
FAILURE: Integrated in Hadoop-Yarn-trunk #631 (See
[https://builds.apache.org/job/Hadoop-Yarn-trunk/631/])
HADOOP-10902. Deletion of directories with snapshots will not output reason for
trash move failure. Contributed by Stephen Chu. (wang:
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1615171)
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
*
/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Delete.java
> Deletion of directories with snapshots will not output reason for trash move
> failure
> ------------------------------------------------------------------------------------
>
> Key: HADOOP-10902
> URL: https://issues.apache.org/jira/browse/HADOOP-10902
> Project: Hadoop Common
> Issue Type: Improvement
> Affects Versions: 2.4.0
> Reporter: Stephen Chu
> Assignee: Stephen Chu
> Priority: Minor
> Fix For: 2.6.0
>
> Attachments: HADOOP-10902.1.patch
>
>
> When using trash-enabled FsShell to delete a directory that has snapshots, we
> se an error message saying "Failed to move to trash" but no explanation.
> {code}
> [hdfs@schu-enc2 ~]$ hdfs dfs -rm -r snap
> 2014-07-28 05:45:29,527 INFO [main] fs.TrashPolicyDefault
> (TrashPolicyDefault.java:initialize(92)) - Namenode trash configuration:
> Deletion interval = 1440 minutes, Emptier interval = 0 minutes.
> rm: Failed to move to trash: hdfs://schu-enc2.vpc.com:8020/user/hdfs/snap.
> Consider using -skipTrash option
> {code}
> If we use -skipTrash, then we'll get the explanation: "rm: The directory
> /user/hdfs/snap cannot be deleted since /user/hdfs/snap is snapshottable and
> already has snapshots"
> It'd be an improvement to make it clear that dirs with snapshots cannot be
> deleted when we're using the trash.
--
This message was sent by Atlassian JIRA
(v6.2#6252)