Issue Details (XML | Word | Printable)

Key: HADOOP-6260
Type: Test Test
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: gary murry
Reporter: gary murry
Votes: 0
Watchers: 1
Operations

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

Unit tests for FileSystemContextUtil.

Created: 16/Sep/09 07:11 PM   Updated: 21/Sep/09 05:34 PM
Return to search
Component/s: fs
Affects Version/s: 0.21.0
Fix Version/s: 0.21.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-6260.1.patch 2009-09-19 12:42 AM Suresh Srinivas 22 kB
Text File Licensed for inclusion in ASF works HADOOP-6260.1.patch 2009-09-19 12:39 AM Suresh Srinivas 13 kB
Text File Licensed for inclusion in ASF works HADOOP-6260.patch 2009-09-19 12:02 AM gary murry 22 kB
Text File Licensed for inclusion in ASF works HADOOP-6260.patch 2009-09-18 11:10 PM gary murry 22 kB
Text File Licensed for inclusion in ASF works HADOOP-6260.patch 2009-09-18 10:39 PM gary murry 22 kB
Text File Licensed for inclusion in ASF works HADOOP-6260.patch 2009-09-18 06:25 PM gary murry 21 kB
HTML File Licensed for inclusion in ASF works List_glob_TestPlan.html 2009-09-17 08:22 PM gary murry 6 kB
Issue Links:
Blocker
 
Reference
 

Hadoop Flags: Reviewed
Resolution Date: 19/Sep/09 01:04 AM


 Description  « Hide
This Jira is to add the unit tests associated with HADOOP-4952.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Suresh Srinivas added a comment - 18/Sep/09 09:51 PM
Comments:
  1. Some new classes are missing the banner
  2. Add a comment to the class to briefly describe what the test is doing
  3. Use log instead of system.out.println

gary murry added a comment - 18/Sep/09 10:39 PM
Attached a new patch I believe addresses Suresh's comments.

Hadoop QA added a comment - 18/Sep/09 11:01 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12420094/HADOOP-6260.patch
against trunk revision 816794.

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

+1 tests included. The patch appears to include 97 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 passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h1.grid.sp2.yahoo.net/11/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h1.grid.sp2.yahoo.net/11/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h1.grid.sp2.yahoo.net/11/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h1.grid.sp2.yahoo.net/11/console

This message is automatically generated.


gary murry added a comment - 18/Sep/09 11:10 PM
The previous patch passed on windows but was killing Hudson. I changed "/test/..." to "test/..."

Konstantin Boudnik added a comment - 18/Sep/09 11:29 PM
few comments:
  • lot of duplicated string literals. Move them to be the class' member or something. It also will make assertion structure smaller and easier to read (see my comment to HADOOP-6261
  • in the messages like Can't run test it makes sense to add test name - makes it easier to analyze
  • catch and finally are suppose to start next to the closing curve bracket (in the same line, not in the next one)

Other than that it seems pretty good I think!


Hadoop QA added a comment - 18/Sep/09 11:31 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12420103/HADOOP-6260.patch
against trunk revision 816794.

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

+1 tests included. The patch appears to include 15 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 passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h1.grid.sp2.yahoo.net/13/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h1.grid.sp2.yahoo.net/13/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h1.grid.sp2.yahoo.net/13/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h1.grid.sp2.yahoo.net/13/console

This message is automatically generated.


gary murry added a comment - 19/Sep/09 12:02 AM
This patch addresses cos's comments.

Suresh Srinivas added a comment - 19/Sep/09 12:39 AM
Attaching new patch that incorporates new recursive version of mkdir.

Suresh Srinivas added a comment - 19/Sep/09 12:42 AM
New patch that includes missing files

Suresh Srinivas added a comment - 19/Sep/09 12:59 AM
Hudson is stuck. Ran test manually. All tests pass.

Jakob Homan added a comment - 19/Sep/09 12:59 AM
test-patch is good:
     [exec] +1 overall.  
     [exec] 
     [exec]     +1 @author.  The patch does not contain any @author tags.
     [exec] 
     [exec]     +1 tests included.  The patch appears to include 15 new or modified tests.
     [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 release audit.  The applied patch does not increase the total number of release audit warnings.

Suresh Srinivas added a comment - 19/Sep/09 01:04 AM
Just committed the patch. Thanks Gary.

Hudson added a comment - 19/Sep/09 01:19 AM
Integrated in Hadoop-Common-trunk-Commit #45 (See http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk-Commit/45/)
. Add additional unit tests for FileContext util methods. Contributed by Gary Murray.

Hudson added a comment - 19/Sep/09 11:09 AM
Integrated in Hadoop-Common-trunk #102 (See http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk/102/)
. Add additional unit tests for FileContext util methods. Contributed by Gary Murray.