|
[
Permlink
| « Hide
]
Lohit Vijayarenu added a comment - 19/Nov/07 08:03 PM
Attached is a simple patch. Since fs.delete does not propagate FileNotFoundException, I have added a fs.exists() check even before we try to move to trash and attempt delete. updated testcase to verify this.
this patch fixes the issue.
with dfs -rm[-r] /nonexistentfile the patch on a fs.delete returning false checks if the file does not exist. (this is just to save rpcs on a exists for every case) and then throws filenotfoundexcpetion. +1 re-throwing FileNotFound seems better.
this patch removes some redundant code...
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12375281/hadoop_2193_1.patch against trunk revision 619744. @author +1. The patch does not contain any @author tags. tests included +1. The patch appears to include 3 new or modified tests. javadoc +1. The javadoc tool did not generate any warning messages. javac +1. The applied patch does not generate any new javac compiler warnings. release audit +1. The applied patch does not generate any new release audit warnings. findbugs +1. The patch does not introduce any new Findbugs warnings. core tests +1. The patch passed core unit tests. contrib tests +1. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1777/testReport/ This message is automatically generated. removed tabs and empty spaces.
accidentally added a bracket in the last one
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12375300/hadoop_2193_4.patch against trunk revision 619744. @author +1. The patch does not contain any @author tags. tests included +1. The patch appears to include 3 new or modified tests. javadoc +1. The javadoc tool did not generate any warning messages. javac +1. The applied patch does not generate any new javac compiler warnings. release audit +1. The applied patch does not generate any new release audit warnings. findbugs +1. The patch does not introduce any new Findbugs warnings. core tests +1. The patch passed core unit tests. contrib tests +1. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1780/testReport/ This message is automatically generated. I just committed this. Thanks Mahadev.
Integrated in Hadoop-trunk #398 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/398/
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||