EvgeniiR opened a new pull request, #4898:
URL: https://github.com/apache/cassandra/pull/4898

   nodetool info reported "Network Cache" size using BufferPool.sizeInBytes() 
which includes memoryAllocated - a monotonically non-decreasing counter that 
never drops below the pool's high-water mark. Switch to usedSizeInBytes() which 
tracks only currently checked-out buffers.
   
   Additionally fix BufferPool.LocalPool.putUnusedPortion for non-pooled 
buffers: the chunk==null branch was decrementing overflowMemoryUsage by the 
unused portion, but the subsequent put() decremented by the full original 
capacity, causing overflowMemoryUsage to drift negative over time.
   
   patch by EvgeniiR; reviewed by TBD for CASSANDRA-21117
   
   The [Cassandra 
Jira](https://issues.apache.org/jira/projects/CASSANDRA/issues/)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to