|
[
Permlink
| « Hide
]
Enis Soztutar added a comment - 26/Jul/07 01:29 PM
This patch adds a new class IOUtils, refactors some functions from FileUtil and FsShell, deprecates puclic methods, and updates the referances. I have included removed many @Override annotations added by Eclipse, which i find quite handy.
-1, new javadoc warnings
The javadoc tool appears to have generated warning messages when testing the latest attachment http://issues.apache.org/jira/secure/attachment/12362608/IOUtils_v1.0.patch Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/469/testReport/ Please note that this message is automatically generated and may represent a problem with the automation system and not the patch. You can remove FileUtil versions of readFully() etc, instead of deprecating them. They were introduced recently (
Removed FileUtil methods which had been moved to IOUtils. Fixes the javadoc warning.
-1, build or testing failed
2 attempts failed to build and test the latest attachment http://issues.apache.org/jira/secure/attachment/12362626/IOUtils_v1.1.patch Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/470/testReport/ Please note that this message is automatically generated and may represent a problem with the automation system and not the patch. Added fix for recently committed TestDataTransferProtocol.
+1
http://issues.apache.org/jira/secure/attachment/12362629/IOUtils_v1.2.patch Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/472/testReport/ Patch looks good. My only reservation is copyBytes() which takes conf.. Why not just require a buffer size. This is a utility function that is expected to be used in variety of places/contexts. conf is not always available. What do you think?
There is already an overloaded version which does not take conf, but buffSize.
public static void copyBytes(InputStream in, OutputStream out, int buffSize, boolean close) Updated the patch for the current trunk.
+1
http://issues.apache.org/jira/secure/attachment/12363250/IOUtils_v1.3.patch Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/518/testReport/ Enis,
Updated the patch with latest trunk and added skipFully() to IOUtils.
Retriggering the hudson build, since last time it was not. Local tests succeeds.
-1, could not apply patch.
The patch command could not apply the latest attachment http://issues.apache.org/jira/secure/attachment/12363631/IOUtils_v1.4.patch Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/557/console Please note that this message is automatically generated and may represent a problem with the automation system and not the patch. Updated the patch for the current trunk.
-1, build or testing failed
2 attempts failed to build and test the latest attachment http://issues.apache.org/jira/secure/attachment/12363840/IOUtils_v1.5.patch Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/558/testReport/ Please note that this message is automatically generated and may represent a problem with the automation system and not the patch. Retriggering the build, yet again, after
+1
http://issues.apache.org/jira/secure/attachment/12363840/IOUtils_v1.5.patch Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/562/testReport/ Sorry, but this patch no longer applies to trunk. Can you please update it?
Also, shouldn't the public methods in FileUtil that are removed instead be deprecated in 0.15? Then we should file an issue to remove them in 0.16 or later. > shouldn't the public methods in FileUtil that are removed instead be deprecated in 0.15
Version 1.0 of the patch deprecated the public methods in FileUtil, but Raghu has suggested to remove the functions since they are not widely used (see above). I agree with Raghu in this, especially relying on the heuristic that FileUtil#copyBytes() or similar functions are quite hadoop internal (although public). However I will just deprecate the methods if you insist. smile The latest patch updated to trunk.
I will not trigger hudson build until we decide on deprecation/removal of public methods that are moved to IOUtils. Since most of these were added only recently in 0.14 (as part of Block CRCs), I prefer to remove them. I am not sure about copyBytes() but rest of these are not used outside dfs package.
Okay, I'll agree to bend the rules a bit, and remove these public methods that were in a release, since we don't think anyone will have used them.
+1
http://issues.apache.org/jira/secure/attachment/12364290/IOUtils_v1.6.patch Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/595/testReport/ I just committed this. Thanks, Enis!
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||