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

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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment