Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-16249

ByteBufferAccessor.getUnsignedShort ignores ByteBuffer position

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.0-beta4, 4.0
    • Legacy/Core
    • None
    • Correctness - Unrecoverable Corruption / Loss
    • Critical
    • Low Hanging Fruit
    • Code Inspection
    • All
    • None
    • Hide

      Add new unit tests and modify the tests to find issues with methods assuming a zero position for the ByteBuffers.

      Show
      Add new unit tests and modify the tests to find issues with methods assuming a zero position for the ByteBuffers.

    Description

      ByteBufferAccessor.readUnsignedShort does not include the current buffer position when calculating the final offset for reading data

      Attachments

        Activity

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

          People

            jlewandowski Jacek Lewandowski Assign to me
            jlewandowski Jacek Lewandowski
            Jacek Lewandowski
            Benjamin Lerer, Berenguer Blasi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3.5h
                3.5h

                Slack

                  Issue deployment