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

Buffer objects incorrectly serialized to typed bytes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.21.0
    • 0.21.0
    • contrib/streaming
    • 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

        1. MAPREDUCE-808.patch
          3 kB
          Klaas Bosteels

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: