|
[
Permlink
| « Hide
]
Jothi Padmanabhan added a comment - 06/May/09 11:14 AM
Patch for review
Patch looks good.
Minor nit: The signature of public method ProgramDriver#driver(String[] args) has changed. So should we make this as incompatible change ? Ant tests passed on my local box.
Test Patch result [exec] -1 overall. I just committed this. Thanks Jothi.
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. 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()). Yes, this is a bug.
Editorial pass over all release notes prior to publication of 0.21. This is just routine.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||