[ 
https://issues.apache.org/jira/browse/MAPREDUCE-808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Devaraj Das updated MAPREDUCE-808:
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.21.0
           Status: Resolved  (was: Patch Available)

I just committed this. Thanks, Klaas!

> Buffer objects incorrectly serialized to typed bytes
> ----------------------------------------------------
>
>                 Key: MAPREDUCE-808
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-808
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: contrib/streaming
>    Affects Versions: 0.21.0
>            Reporter: Klaas Bosteels
>            Assignee: Klaas Bosteels
>             Fix For: 0.21.0
>
>         Attachments: MAPREDUCE-808.patch
>
>
> {{TypedBytesOutput.write()}} should do something like
> {code}
> Buffer buf = (Buffer) obj;
> writeBytes(buf.get(), 0, bug.getCount());
> {code}
> instead of
> {code}
> writeBytes(((Buffer) obj).get());
> {code}
> since the bytes returned by {{Buffer.get()}} are "only valid between 0 and 
> getCount() - 1".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to