Issue Details (XML | Word | Printable)

Key: HADOOP-2997
Type: Test Test
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Tom White
Reporter: Tom White
Votes: 0
Watchers: 0
Operations

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

Add test for non-writable serializer

Created: 11/Mar/08 11:45 AM   Updated: 08/Jul/09 04:52 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.17.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works hadoop-2997-v2.patch 2008-03-13 10:23 AM Tom White 5 kB
Text File Licensed for inclusion in ASF works hadoop-2997-v3.patch 2008-03-13 12:50 PM Tom White 7 kB
Text File Licensed for inclusion in ASF works hadoop-2997.patch 2008-03-11 11:47 AM Tom White 4 kB
Issue Links:
Reference
 

Resolution Date: 28/Mar/08 09:40 AM


 Description  « Hide
It would be useful to have a unit test that tests MapReduce works using a non-writable serializer.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Tom White made changes - 11/Mar/08 11:47 AM
Field Original Value New Value
Attachment hadoop-2997.patch [ 12377604 ]
Tom White made changes - 11/Mar/08 11:47 AM
Status Open [ 1 ] Patch Available [ 10002 ]
Hadoop QA added a comment - 12/Mar/08 10:19 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12377604/hadoop-2997.patch
against trunk revision 619744.

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

tests included +1. The patch appears to include 3 new or modified tests.

javadoc +1. The javadoc tool did not generate any warning messages.

javac +1. The applied patch does not generate any new javac compiler warnings.

release audit -1. The applied patch generated 193 release audit warnings (more than the trunk's current 192 warnings).

findbugs +1. The patch does not introduce any new Findbugs warnings.

core tests -1. The patch failed core unit tests.

contrib tests +1. The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1945/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1945/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1945/artifact/trunk/build/test/checkstyle-errors.html
Release audit warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1945/artifact/trunk/current/releaseAuditDiffWarnings.txt
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1945/console

This message is automatically generated.


Devaraj Das added a comment - 13/Mar/08 09:47 AM
Tom, could you please address the hudson warning and resubmit the patch. Thanks!

Devaraj Das made changes - 13/Mar/08 09:47 AM
Status Patch Available [ 10002 ] Open [ 1 ]
Tom White added a comment - 13/Mar/08 10:23 AM
I've fixed the release audit problem, the failing unit test reported by hudson was unrelated to this patch. However, this test now hangs consistently - it looks like it's related to the changes in HADOOP-2399 since the test passes when I run against revision 636622.

Tom White made changes - 13/Mar/08 10:23 AM
Attachment hadoop-2997-v2.patch [ 12377764 ]
Tom White added a comment - 13/Mar/08 11:35 AM
Tracked down the problem - the change in HADOOP-2399 creates instances of keys and values to be reused, however this is not possible for Java serialization since the types don't necessarily have no-arg constructors:

java.lang.RuntimeException: java.lang.NoSuchMethodException: java.lang.Long.<init>()
at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:80)
at org.apache.hadoop.mapred.ReduceTask$ValuesIterator.<init>(ReduceTask.java:213)
at org.apache.hadoop.mapred.ReduceTask$ReduceValuesIterator.<init>(ReduceTask.java:306)
at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:388)
at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2073)
Caused by: java.lang.NoSuchMethodException: java.lang.Long.<init>()
at java.lang.Class.getConstructor0(Class.java:2678)
at java.lang.Class.getDeclaredConstructor(Class.java:1953)
at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:74)
... 4 more

The fix is to get the deserializer to create the key and value types, if needed. I'm testing a patch.


Tom White made changes - 13/Mar/08 12:50 PM
Attachment hadoop-2997-v3.patch [ 12377777 ]
Tom White made changes - 13/Mar/08 12:51 PM
Status Open [ 1 ] Patch Available [ 10002 ]
Tom White made changes - 13/Mar/08 12:55 PM
Link This issue is related to HADOOP-2399 [ HADOOP-2399 ]
Hadoop QA added a comment - 14/Mar/08 11:28 AM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12377777/hadoop-2997-v3.patch
against trunk revision 619744.

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

tests included +1. The patch appears to include 3 new or modified tests.

javadoc +1. The javadoc tool did not generate any warning messages.

javac +1. The applied patch does not generate any new javac compiler warnings.

release audit +1. The applied patch does not generate any new release audit warnings.

findbugs +1. The patch does not introduce any new Findbugs warnings.

core tests -1. The patch failed core unit tests.

contrib tests +1. The patch passed contrib unit tests.

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

This message is automatically generated.


Nigel Daley made changes - 24/Mar/08 11:04 PM
Priority Major [ 3 ] Blocker [ 1 ]
Owen O'Malley added a comment - 28/Mar/08 07:13 AM
+1

Devaraj Das added a comment - 28/Mar/08 09:40 AM
I just committed this. Thanks, Tom!

Devaraj Das made changes - 28/Mar/08 09:40 AM
Resolution Fixed [ 1 ]
Status Patch Available [ 10002 ] Resolved [ 5 ]
Hudson added a comment - 28/Mar/08 12:17 PM

Hudson added a comment - 29/Mar/08 12:07 PM

Nigel Daley made changes - 21/May/08 08:06 PM
Status Resolved [ 5 ] Closed [ 6 ]
Owen O'Malley made changes - 08/Jul/09 04:52 PM
Component/s mapred [ 12310690 ]