Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1311

Bug in BytesWritable.set(byte[] newData, int offset, int length)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • io
    • None
    • N/A

    Description

      Current implementation:

      public void set(byte[] newData, int offset, int length)

      { setSize(0); setSize(length); System.arraycopy(newData, 0, bytes, 0, size); }

      Correct implementation:
      public void set(byte[] newData, int offset, int length)

      { setSize(0); setSize(length); System.arraycopy(newData, offset, bytes, 0, size); }

      please fix.

      Attachments

        1. bytesWritable.patch
          0.5 kB
          Dhruba Borthakur

        Activity

          People

            dhruba Dhruba Borthakur
            srikantk Srikanth Kakani
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: