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

DataInputBuffer::getLength returns the end position, not the length

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      In DataInputBuffer, a call to reset(byte[] buffer, offset, len) resets the data read by the buffer. However, when the offset is not zero, getLength returns the index marking the end of valid data in the buffer and not the length as specified in the last call to reset. The consequence is that consumers of DataInputBuffers may inaccurately gauge the length of the input given them.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cdouglas Christopher Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: