Issue Details (XML | Word | Printable)

Key: HADOOP-3202
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Amareshwari Sriramadasu
Reporter: Tsz Wo (Nicholas), SZE
Votes: 0
Watchers: 0
Operations

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

Deprecate org.apache.hadoop.fs.FileUtil.fullyDelete(FileSystem fs, Path dir)

Created: 07/Apr/08 10:46 PM   Updated: 20/Nov/08 11:38 PM
Return to search
Component/s: fs
Affects Version/s: None
Fix Version/s: 0.19.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works patch-3202.txt 2008-07-28 04:27 AM Amareshwari Sriramadasu 5 kB
Text File Licensed for inclusion in ASF works patch-3202.txt 2008-07-25 10:26 AM Amareshwari Sriramadasu 5 kB
Text File Licensed for inclusion in ASF works patch-3202.txt 2008-07-25 04:35 AM Amareshwari Sriramadasu 5 kB

Hadoop Flags: Reviewed
Resolution Date: 12/Aug/08 09:27 PM


 Description  « Hide
We should use FileSystem.delete(path, recursive=true) instead.
See also https://issues.apache.org/jira/browse/HADOOP-771?focusedCommentId=12586566#action_12586566

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Arun C Murthy added a comment - 08/Apr/08 08:01 AM
+1

Amareshwari Sriramadasu added a comment - 25/Jul/08 04:35 AM
Here is a patch deprecating FileUtil.fullyDelete(FileSystem, Path)

Amareshwari Sriramadasu added a comment - 25/Jul/08 10:26 AM
Fixed a javadoc warning in the earlier patch.

Hadoop QA added a comment - 25/Jul/08 04:12 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12386870/patch-3202.txt
against trunk revision 679772.

+1 @author. The patch does not contain any @author tags.

+1 tests included. The patch appears to include 6 new or modified tests.

+1 javadoc. The javadoc tool did not generate any warning messages.

-1 javac. The applied patch generated 522 javac compiler warnings (more than the trunk's current 521 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/2952/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2952/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2952/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2952/console

This message is automatically generated.


Tsz Wo (Nicholas), SZE added a comment - 25/Jul/08 06:18 PM
+1 patch looks good. The new javac warning is about that DistCp is still using the deprecated FileUtil.fullyDelete(...). We could fix it here or later.

Amareshwari Sriramadasu added a comment - 28/Jul/08 04:27 AM
Fixed javac warning

Hadoop QA added a comment - 28/Jul/08 06:05 AM
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12387003/patch-3202.txt
against trunk revision 679930.

+1 @author. The patch does not contain any @author tags.

+1 tests included. The patch appears to include 6 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/2958/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2958/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2958/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2958/console

This message is automatically generated.


Owen O'Malley added a comment - 12/Aug/08 09:27 PM
I just committed this. Thanks, Amareshwari!

Hudson added a comment - 22/Aug/08 12:34 PM