Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-808

Buffer objects incorrectly serialized to typed bytes

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.21.0
    • Fix Version/s: 0.21.0
    • Component/s: contrib/streaming
    • Labels:
      None

      Description

      TypedBytesOutput.write() should do something like

      Buffer buf = (Buffer) obj;
      writeBytes(buf.get(), 0, bug.getCount());
      

      instead of

      writeBytes(((Buffer) obj).get());
      

      since the bytes returned by Buffer.get() are "only valid between 0 and getCount() - 1".

        Activity

        Klaas Bosteels created issue -
        Klaas Bosteels made changes -
        Field Original Value New Value
        Attachment MAPREDUCE-808.patch [ 12414618 ]
        Klaas Bosteels made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Assignee Klaas Bosteels [ klbostee ]
        Devaraj Das made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Fix Version/s 0.21.0 [ 12314045 ]
        Resolution Fixed [ 1 ]
        Tom White made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Klaas Bosteels
            Reporter:
            Klaas Bosteels
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development