Issue Details (XML | Word | Printable)

Key: MAPREDUCE-764
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Klaas Bosteels
Reporter: Klaas Bosteels
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Hadoop Map/Reduce

TypedBytesInput's readRaw() does not preserve custom type codes

Created: 15/Jul/09 07:48 AM   Updated: 07/Sep/09 03:43 PM
Component/s: contrib/streaming
Affects Version/s: 0.21.0
Fix Version/s: 0.21.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works MAPREDUCE-764.patch 2009-07-16 08:10 AM Klaas Bosteels 3 kB
Text File Licensed for inclusion in ASF works MAPREDUCE-764.patch 2009-07-15 08:29 AM Klaas Bosteels 3 kB

Hadoop Flags: Reviewed
Resolution Date: 07/Sep/09 12:29 PM
Labels:


 Description  « Hide
The typed bytes format supports byte sequences of the form <custom type code> <length> <bytes>. When reading such a sequence via TypedBytesInput's readRaw() method, however, the returned sequence currently is 0 <length> <bytes> (0 is the type code for a bytes array), which leads to bugs such as the one described here.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Klaas Bosteels made changes - 15/Jul/09 08:29 AM
Field Original Value New Value
Attachment MAPREDUCE-764.patch [ 12413534 ]
Klaas Bosteels made changes - 15/Jul/09 08:30 AM
Status Open [ 1 ] Patch Available [ 10002 ]
Hadoop QA added a comment - 16/Jul/09 06:58 AM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12413534/MAPREDUCE-764.patch
against trunk revision 794324.

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

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

-1 javadoc. The javadoc tool appears to have generated 1 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 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/Mapreduce-Patch-vesta.apache.org/397/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Mapreduce-Patch-vesta.apache.org/397/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Mapreduce-Patch-vesta.apache.org/397/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Mapreduce-Patch-vesta.apache.org/397/console

This message is automatically generated.


Klaas Bosteels added a comment - 16/Jul/09 08:10 AM
Fixed the javadoc warning. The failed unit tests seem to be unrelated to the patch.

Klaas Bosteels made changes - 16/Jul/09 08:10 AM
Attachment MAPREDUCE-764.patch [ 12413658 ]
Klaas Bosteels made changes - 16/Jul/09 08:11 AM
Status Patch Available [ 10002 ] In Progress [ 3 ]
Klaas Bosteels made changes - 16/Jul/09 08:11 AM
Status In Progress [ 3 ] Patch Available [ 10002 ]
Hadoop QA added a comment - 16/Jul/09 09:33 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12413658/MAPREDUCE-764.patch
against trunk revision 794637.

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

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

This message is automatically generated.


Klaas Bosteels added a comment - 16/Jul/09 10:20 PM
Again, the unit test failures don't seem to be related to the patch.

Klaas Bosteels added a comment - 05/Sep/09 09:44 AM
Making this a blocker since it should really go into 0.21.

Klaas Bosteels made changes - 05/Sep/09 09:44 AM
Priority Major [ 3 ] Blocker [ 1 ]
Repository Revision Date User Message
ASF #812109 Mon Sep 07 12:29:11 UTC 2009 tomwhite MAPREDUCE-764. TypedBytesInput's readRaw() does not preserve custom type codes. Contributed by Klaas Bosteels.
Files Changed
MODIFY /hadoop/mapreduce/trunk/src/contrib/streaming/src/java/org/apache/hadoop/typedbytes/TypedBytesInput.java
MODIFY /hadoop/mapreduce/trunk/CHANGES.txt
MODIFY /hadoop/mapreduce/trunk/src/contrib/streaming/src/test/org/apache/hadoop/typedbytes/TestIO.java

Tom White added a comment - 07/Sep/09 12:29 PM
+1

I've just committed this. Thanks Klaas!


Tom White made changes - 07/Sep/09 12:29 PM
Status Patch Available [ 10002 ] Resolved [ 5 ]
Hadoop Flags [Reviewed]
Fix Version/s 0.21.0 [ 12314045 ]
Resolution Fixed [ 1 ]
Hudson added a comment - 07/Sep/09 03:43 PM
Integrated in Hadoop-Mapreduce-trunk-Commit #20 (See http://hudson.zones.apache.org/hudson/job/Hadoop-Mapreduce-trunk-Commit/20/)
. TypedBytesInput's readRaw() does not preserve custom type codes. Contributed by Klaas Bosteels.