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

BufferPool incorrectly counts memoryInUse when putUnusedPortion is used

    XMLWordPrintableJSON

Details

    Description

      The counter is incorrectly decremented by the size of the unused portion of the provided buffer.
      It should be decremented by the number of bytes actually returned to the pool (that may be different than "size"). The number should be calculated as a difference between original and resulting buffer capacity.

      Attachments

        Activity

          People

            jtgrabowski Jaroslaw Grabowski
            jtgrabowski Jaroslaw Grabowski
            Jaroslaw Grabowski
            Jacek Lewandowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 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 - 20m
                20m