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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development