Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
0.13.1
-
None
-
None
Description
In testing the DFS Trash feature, I've run across a couple of bugs.
1) Attempting to remove the same file fails when attempted within the same fs.trash.interval:
% bin/hadoop dfs -put file /file
% bin/hadoop dfs -rm /file
Moved to trash: /file
% bin/hadoop dfs -put file /file
% bin/hadoop dfs -rm /file
rm: Failed to move to trash: /file
2) Removing a file within a directory, followed by removing the directory creates a bizzare hierarchy within /Trash:
% bin/hadoop dfs -mkdir /dir
% bin/hadoop dfs -put file /dir/file
% bin/hadoop dfs -rm /dir/file
Moved to trash: /dir/file
% bin/hadoop dfs -rmr /dir
Moved to trash: /dir
% bin/hadoop dfs -lsr /Trash
/Trash/Current <dir>
/Trash/Current/dir <dir>
/Trash/Current/dir/dir <dir> <-- This is weird; potentially related to a rename case not fixed by HADOOP-1623 ???
/Trash/Current/dir/file <r 3> 10
Attachments
Attachments
Issue Links
- is blocked by
-
HADOOP-1666 The FsShell Object cannot be used for multiple fs commands.
- Closed