Issue Details (XML | Word | Printable)

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

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

Resolve findbugs warnings in core/streaming/pipes/examples

Created: 15/Apr/09 08:33 AM   Updated: 29/Sep/09 09:56 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-5679.patch 2009-05-06 11:14 AM Jothi Padmanabhan 22 kB
Issue Links:
Blocker
 

Hadoop Flags: Reviewed
Resolution Date: 08/May/09 10:13 AM


 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 - 06/May/09 11:14 AM
Patch for review

Sharad Agarwal added a comment - 07/May/09 12:04 PM
Patch looks good.
Minor nit: The signature of public method ProgramDriver#driver(String[] args) has changed. So should we make this as incompatible change ?

Jothi Padmanabhan added a comment - 08/May/09 08:50 AM
Ant tests passed on my local box.

Test Patch result

[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 3 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 Eclipse classpath. The patch retains Eclipse classpath integrity.
[exec]
[exec] -1 release audit. The applied patch generated 481 release audit warnings (more than the trunk's current 474 warnings).


Sharad Agarwal added a comment - 08/May/09 10:13 AM
I just committed this. Thanks Jothi.

Hudson added a comment - 08/May/09 07:55 PM
Integrated in Hadoop-trunk #830 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/830/)
. Resolve findbugs warnings in core/streaming/pipes/examples. Contributed by Jothi Padmanabhan.

Jordà Polo added a comment - 14/May/09 07:24 AM - edited
Running local jobs seems to fail for me since this patch was applied ("Mkdirs failed to create...").

The new code checks if either mkdirs() on hadoop.tmp.dir failed OR if it isn't a directory... but it doesn't take into account that the directory may already exist. If the directory existed before, it will always fail and exit since mkdirs() only returns "true" if it is able to create the directory.

Wouldn't an AND be more appropriate here? I mean (!b && !tmpDir.isDirectory()) instead of (!b || !tmpDir.isDirectory()) in src/core/org/apache/hadoop/util/RunJar.java, line 111.

EDIT: The original code (before applying hadoop-5679.patch) looks fine to me too: (!tmpDir.isDirectory()).


Jothi Padmanabhan added a comment - 14/May/09 08:45 AM
Yes, this is a bug. HADOOP-5809 resolves this.

Robert Chansler added a comment - 29/Sep/09 09:56 PM
Editorial pass over all release notes prior to publication of 0.21. This is just routine.