Yuqi Yan created CASSANDRA-21815:
------------------------------------
Summary: Networking BufferPool overflow size can become negative
Key: CASSANDRA-21815
URL: https://issues.apache.org/jira/browse/CASSANDRA-21815
Project: Apache Cassandra
Issue Type: Bug
Reporter: Yuqi Yan
Assignee: Yuqi Yan
BufferPool.putUnusedPortion[1] on an unpooled (overflow) buffer subtracts
(capacity - limit) from overflowMemoryUsage without freeing or shrinking the
buffer. A later put then subtracts the full capacity again [2], so the counter
ends at limit - capacity (negative).
[1]
[https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/utils/memory/BufferPool.java#L881]
[2]
[https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/utils/memory/BufferPool.java#L823]
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]