Issue Details (XML | Word | Printable)

Key: HADOOP-5127
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jakob Homan
Reporter: Konstantin Shvachko
Votes: 0
Watchers: 0
Operations

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

FSDirectory should not have public methods.

Created: 27/Jan/09 12:28 AM   Updated: 08/Jul/09 04:43 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.19.1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-5127-0-19.patch 2009-02-10 06:49 PM Konstantin Shvachko 4 kB
Text File Licensed for inclusion in ASF works HADOOP-5127.patch 2009-02-09 08:28 PM Jakob Homan 3 kB

Hadoop Flags: Reviewed
Resolution Date: 10/Feb/09 06:47 PM


 Description  « Hide
FSDirectory class contains public constructors and methods. All of them except for one close() can be converted into package private.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jakob Homan added a comment - 09/Feb/09 08:28 PM
Patch:
  • Converts all public methods (except close) to package private.
  • Converts public class field boolean ready to private

Passes all unit tests except the usual one.
Test-patch:

     [exec] -1 overall.  
     [exec] 
     [exec]     +1 @author.  The patch does not contain any @author tags.
     [exec] 
     [exec]     -1 tests included.  The patch doesn't appear to include any new or modified tests.
     [exec]                         Please justify why no tests are needed for this patch.
     [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]     +1 release audit.  The applied patch does not increase the total number of release audit warnings.

No new unit tests because is just a visibility refactoring and not easily testable.


Jakob Homan added a comment - 09/Feb/09 08:28 PM
Submitting patch

Konstantin Shvachko added a comment - 09/Feb/09 10:03 PM
+1 This looks good.

Hadoop QA added a comment - 09/Feb/09 11:11 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12399853/HADOOP-5127.patch
against trunk revision 742698.

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

-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

+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 Eclipse classpath. The patch retains Eclipse classpath integrity.

+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/3822/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3822/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3822/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3822/console

This message is automatically generated.


Jakob Homan added a comment - 09/Feb/09 11:18 PM
The failing unit test on Hudson is a known-bad Chukwa test. I don't understand why it says both core tests and contrib tests failed, the results don't show that. The unit tests all passed on my machine except known-bad HADOOP-4907.

Jakob Homan added a comment - 09/Feb/09 11:47 PM
The failing test is called out in HADOOP-5127 as failing regularly.

Konstantin Shvachko added a comment - 10/Feb/09 06:47 PM
I just committed this. Thank you Jacob.

Konstantin Shvachko added a comment - 10/Feb/09 06:49 PM
This is the patch I applied to 0.20 and 0.19 branches.

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