[
https://issues.apache.org/jira/browse/CASSANDRA-21815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yuqi Yan updated CASSANDRA-21815:
---------------------------------
Bug Category: Parent values: Correctness(12982)
Complexity: Low Hanging Fruit
Component/s: Observability/Metrics
Discovered By: Workload Replay
Fix Version/s: 4.1.x
5.0.x
6.0.x
7.x
Severity: Low
Status: Open (was: Triage Needed)
> 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
> Components: Observability/Metrics
> Reporter: Yuqi Yan
> Assignee: Yuqi Yan
> Priority: Normal
> Fix For: 4.1.x, 5.0.x, 6.0.x, 7.x
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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]