Issue Details (XML | Word | Printable)

Key: HADOOP-4970
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Prasad Chakka
Reporter: Prasad Chakka
Votes: 0
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Use the full path when move files to .Trash/Current

Created: 31/Dec/08 08:00 PM   Updated: 08/Jul/09 04:43 PM
Return to search
Component/s: None
Affects Version/s: 0.19.0
Fix Version/s: 0.20.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works hadoop-4970.2.patch 2009-01-28 07:13 PM Prasad Chakka 4 kB
Text File Licensed for inclusion in ASF works hadoop-4970.patch 2009-01-06 08:22 PM Prasad Chakka 3 kB
Issue Links:
Blocker
 

Hadoop Flags: Reviewed, Incompatible change
Release Note: Changed trash facility to use absolute path of the deleted file.
Resolution Date: 28/Jan/09 08:19 PM


 Description  « Hide
When a directory or file is deleted using rm or rmr, the subtree is moved directly to .Trash/Current. If there are two deleted objects with the same name but with different original paths it is not feasible to undelete them without storing additional information regarding the original paths. Instead if the full path of the deleting object is used while moving (replicating the complete path in .Trash/Current) it will be easier to undelete objects to its original paths.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Doug Cutting added a comment - 05/Jan/09 06:42 PM
This sounds reasonable to me.

dhruba borthakur added a comment - 05/Jan/09 06:56 PM
+1 on this one.

There could be some confusion when there are multiple paths to the same file (e.g. hard links), but since hdfs does not have hard-links, we can ignore that issue.


dhruba borthakur added a comment - 06/Jan/09 11:34 PM
+1 The code changes look good to me.

Prasad Chakka added a comment - 09/Jan/09 05:51 PM
I ran 'ant -Djava5.home=/usr/local/jdk1.5.0_07 -Dforrest.home=/home/dhruba/forrest -Dfindbugs.home=/home/dhruba/findbugs test-patch -Dpatch.file=../hadoopcore/hadoop-4970.patch' and the output is below

[exec] ======================================================================
[exec] ======================================================================
[exec] Running Eclipse classpath verification.
[exec] ======================================================================
[exec] ======================================================================
[exec]
[exec]
[exec]
[exec]
[exec]
[exec]
[exec] +1 overall.
[exec]
[exec] +1 @author. The patch does not contain any @author tags.
[exec]
[exec] +1 tests included. The patch appears to include 3 new or modified tests.
[exec]
[exec] +1 javadoc. The javadoc tool did not generate any warning messages.
[exec]
[exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings.
[exec]
[exec] +1 findbugs. The patch does not introduce any new Findbugs warnings.
[exec]
[exec] +1 Eclipse classpath. The patch retains Eclipse classpath integrity.
[exec]
[exec]
[exec]
[exec]
[exec] ======================================================================
[exec] ======================================================================
[exec] Finished build.
[exec] ======================================================================
[exec] ======================================================================


dhruba borthakur added a comment - 23/Jan/09 12:40 AM
I am going to commit this to trunk only. I would not pull this into 0.19 or 0.20 because it is kinda change in semantics.

Prasad Chakka added a comment - 23/Jan/09 12:45 AM
since 0.20 is not already released, it would be nice if you can put this in 0.20.

dhruba borthakur added a comment - 28/Jan/09 07:05 AM
Hi Prasad, can you pl upload a new patch? The current patch does not apply to trunk anymore. Sorry!

Prasad Chakka added a comment - 28/Jan/09 07:13 PM
ported to latest

dhruba borthakur added a comment - 28/Jan/09 08:19 PM
I just committed this. Thanks Prasad!

Hudson added a comment - 16/Feb/09 05:00 PM

Robert Chansler added a comment - 03/Mar/09 06:41 PM
Edit release note for publication.