|
> Can we use Trash if it's enabled ?
+1 I think this is a good idea. It can be done by re-using the codes in FsShell. 3939_20080825.patch: first version. Need some tests
3939_20080825b.patch: fixed some bugs.
3939_20080826.patch: added a test.
Passed test-patch and all tests locally. Submitting ...
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12388941/3939_20080826.patch against trunk revision 689363. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 4 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. -1 core tests. The patch failed core unit tests. -1 contrib tests. The patch failed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3117/testReport/ This message is automatically generated. 3939_20080826.patch only changed DistCp and fixed a bug in FileStatus.hashCode(). The unit tests failed are not related.
Adding this dependency would also help prevent casual errors and potentially serious mistakes if the Trash is disabled.
> Would it make sense to require either -update or -overwrite if -delete is specified?
We should enforce that. > The fix to FileStatus makes sense, but when is the Path null? I hit this when creating a FileStatus by the default constructor and then put is in some data structure (I forgot which data structure). The current implementation does not need to this operation. So I will revert this change. 3939_20080828.patch: incorporated all comments from Chris.
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12389133/3939_20080828.patch against trunk revision 690096. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 4 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3141/testReport/ This message is automatically generated. 3939_20080829.patch: fixed a bug for path checking.
3939_20080829b.patch: updated the new unit test.
Tested locally. 3939_20080829b.patch is ready to be committed.
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12389205/3939_20080829b.patch against trunk revision 690641. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 4 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3150/testReport/ This message is automatically generated. I just committed this. Thanks Nicholas
Integrated in Hadoop-trunk #590 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/590/
Integrated in Hadoop-trunk #622 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/622/
3939_20080829b_0.18+3873_20080811b_0.18.patch: for 0.18. It also includes
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Can we use Trash if it's enabled ?