Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-808

Buffer objects incorrectly serialized to typed bytes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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".

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: