Issue Details (XML | Word | Printable)

Key: HADOOP-6215
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Amar Kamat
Reporter: Owen O'Malley
Votes: 0
Watchers: 2
Operations

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

fix GenericOptionParser to deal with -D with '=' in the value

Created: 26/Aug/09 03:16 PM   Updated: 28/Aug/09 11:09 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.20.1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-6215-v1.0-branch-0.20.patch 2009-08-26 06:18 PM Amar Kamat 1 kB
Text File Licensed for inclusion in ASF works HADOOP-6215-v1.0.patch 2009-08-26 06:18 PM Amar Kamat 1 kB

Hadoop Flags: Reviewed
Resolution Date: 27/Aug/09 01:56 PM


 Description  « Hide
Currently the code ignores any -D option that has a "=" in the value. This is clearly wrong.
In particular, -Dx=y=z should work and assign "y=z" to "x". This is a regression from HADOOP-6213.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Amar Kamat added a comment - 26/Aug/09 05:26 PM
The patch in HADOOP-6213 makes GenericOptionsParser same as in commons-trunk. We can fix both here.

Amar Kamat added a comment - 26/Aug/09 06:18 PM
Attaching a patch for commons and branch 0.20. Testing in progress.

Amar Kamat added a comment - 26/Aug/09 07:24 PM
Result of test-patch
[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 release audit. The applied patch does not increase the total number of release audit warnings.

Ant tests passed on my box.


Amar Kamat added a comment - 26/Aug/09 07:26 PM
Testing on branch 20

Amar Kamat added a comment - 27/Aug/09 12:50 PM
All core tests except TestDistributedFileSystem and TestReduceFetch failed on core.
All contrib tests except TestStreamingExitStatus, TestJobInitialization and TestQueueCapacities passed.

Sharad Agarwal added a comment - 27/Aug/09 01:56 PM
+1 I committed to trunk and branch 20. Thanks Amar!

Hudson added a comment - 27/Aug/09 02:10 PM
Integrated in Hadoop-Common-trunk-Commit #2 (See http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk-Commit/2/)
. fix GenericOptionParser to deal with -D with '=' in the value. Contributed by Amar Kamat.

Amar Kamat added a comment - 28/Aug/09 06:37 AM
Note that this is not a regression caused because of HADOOP-6213. I tested the code pre-H6213 and found that "-D x=y=z" throws parse-exception.

Hudson added a comment - 28/Aug/09 11:09 AM
Integrated in Hadoop-Common-trunk #77 (See http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk/77/)
. fix GenericOptionParser to deal with -D with '=' in the value. Contributed by Amar Kamat.