Issue Details (XML | Word | Printable)

Key: HADOOP-5661
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jothi Padmanabhan
Reporter: Jothi Padmanabhan
Votes: 0
Watchers: 2
Operations

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

Resolve findbugs warnings in mapred

Created: 13/Apr/09 04:39 AM   Updated: 08/Jul/09 04:53 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.21.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works hadoop-5661-v1.patch 2009-04-14 05:19 AM Jothi Padmanabhan 24 kB
Text File Licensed for inclusion in ASF works hadoop-5661-v2.patch 2009-04-17 10:05 AM Jothi Padmanabhan 24 kB
Text File hadoop-5661-v3.patch 2009-04-17 10:16 AM Jothi Padmanabhan 24 kB
Text File Licensed for inclusion in ASF works hadoop-5661.patch 2009-04-13 01:36 PM Jothi Padmanabhan 24 kB
Issue Links:
Blocker
 

Hadoop Flags: Reviewed
Resolution Date: 17/Apr/09 05:32 PM


 Description  « Hide
Towards a solution for HADOOP-5628, we need to resolve all findbugs warnings. This jira will try to resolve the findbugs warnings where ever possible and suppress them where resolution is not possible.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jothi Padmanabhan added a comment - 13/Apr/09 01:36 PM
Patch fixing all mapred findbugs warnings

Jothi Padmanabhan added a comment - 13/Apr/09 01:37 PM
ant test and test patch passed with this patch

Hadoop QA added a comment - 13/Apr/09 06:36 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12405319/hadoop-5661.patch
against trunk revision 764287.

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

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

This message is automatically generated.


Jothi Padmanabhan added a comment - 14/Apr/09 05:19 AM
The findbugs warnings reported for the previous patch did not show up in my local box where findbugs version is 1.3.8. We probably should upgrade the findbugs for the automated testing system to 1.3.8 as well. In the interim, attaching a patch that should handle those two warnings.

The test failures with the previous patch are unrelated.


Hadoop QA added a comment - 16/Apr/09 04:59 AM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12405391/hadoop-5661-v1.patch
against trunk revision 765427.

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

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

This message is automatically generated.


Jothi Padmanabhan added a comment - 17/Apr/09 10:05 AM
Synching patch with the latest trunk

Amareshwari Sriramadasu added a comment - 17/Apr/09 10:14 AM
One comment:
Reducetask.ShuffleRamManager.getNumPendingRequests method need not be public.

Jothi Padmanabhan added a comment - 17/Apr/09 10:16 AM
Changed getNumPendingRequests() to be a private method

Amareshwari Sriramadasu added a comment - 17/Apr/09 11:02 AM
+1 changes look fine to me.

Jothi Padmanabhan added a comment - 17/Apr/09 01:55 PM
ant test and test patch passed on my local box

Devaraj Das added a comment - 17/Apr/09 05:32 PM
I just committed this. Thanks, Jothi!

Chris Douglas added a comment - 17/Apr/09 10:25 PM
TestFairScheduler no longer compiles:
compile:
     [echo] contrib: fairscheduler

compile-examples:

compile-test:
     [echo] contrib: fairscheduler
    [javac] Compiling 1 source file to /snip/hadoop/build/contrib/fairscheduler/test
    [javac] /snip/hadoop/src/contrib/fairscheduler/src/test/org/apache/hadoop/mapred/TestFairScheduler.java:128: cannot find symbol
    [javac] symbol  : constructor ClusterStatus(int,int,int,int,int,org.apache.hadoop.mapred.JobTracker.State)
    [javac] location: class org.apache.hadoop.mapred.ClusterStatus
    [javac]       return new ClusterStatus(numTrackers, maps, reduces,
    [javac]              ^
    [javac] Note: /snip/hadoop/src/contrib/fairscheduler/src/test/org/apache/hadoop/mapred/TestFairScheduler.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error

BUILD FAILED
/snip/hadoop/build.xml:774: The following error occurred while executing this line:
/snip/hadoop/src/contrib/build.xml:48: The following error occurred while executing this line:
/snip/hadoop/src/contrib/build-contrib.xml:165: Compile failed; see the compiler error output for details.

Total time: 1 minute 2 seconds

Hudson added a comment - 20/Apr/09 09:42 AM
Integrated in Hadoop-trunk #811 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/811/)
. Fixes some findbugs warnings in o.a.h.mapred* packages and supresses a bunch of them. Contributed by Jothi Padmanabhan.

Hudson added a comment - 25/Apr/09 07:37 PM
Integrated in Hadoop-trunk #817 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/817/)
HADOOP-5709. Remove redundant synchronization added in . Contributed by Jothi Padmanabhan.