[jira] [Comment Edited] (CASSANDRA-18311) BufferPool incorrectly counts memoryInUse when putUnusedPortion is used

2023-03-10 Thread Jacek Lewandowski (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-18311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17698811#comment-17698811
 ] 

Jacek Lewandowski edited comment on CASSANDRA-18311 at 3/10/23 9:06 AM:


https://ci-cassandra.apache.org/view/patches/job/Cassandra-devbranch/2339/ (4.0)
https://ci-cassandra.apache.org/view/patches/job/Cassandra-devbranch/2342/ (4.1)
https://ci-cassandra.apache.org/view/patches/job/Cassandra-devbranch/2343/ 
(trunk)


was (Author: jlewandowski):
https://ci-cassandra.apache.org/view/patches/job/Cassandra-devbranch/2339/ (4.0)

> BufferPool incorrectly counts memoryInUse when putUnusedPortion is used
> ---
>
> Key: CASSANDRA-18311
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18311
> Project: Cassandra
>  Issue Type: Bug
>  Components: Local/Caching
>Reporter: Jaroslaw Grabowski
>Assignee: Jaroslaw Grabowski
>Priority: Normal
> Fix For: 4.0.x, 4.1.x, 5.0
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Comment Edited] (CASSANDRA-18311) BufferPool incorrectly counts memoryInUse when putUnusedPortion is used

2023-03-09 Thread Jaroslaw Grabowski (Jira)


[ 
https://issues.apache.org/jira/browse/CASSANDRA-18311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17698328#comment-17698328
 ] 

Jaroslaw Grabowski edited comment on CASSANDRA-18311 at 3/9/23 1:40 PM:


[https://github.com/apache/cassandra/pull/2206] (trunk)

[https://github.com/jtgrabowski/cassandra/tree/CASSANDRA-18311-4.1] (4.1)

[https://github.com/jtgrabowski/cassandra/tree/CASSANDRA-18311-4.0] (4.0)


was (Author: jtgrabowski):
https://github.com/apache/cassandra/pull/2206

> BufferPool incorrectly counts memoryInUse when putUnusedPortion is used
> ---
>
> Key: CASSANDRA-18311
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18311
> Project: Cassandra
>  Issue Type: Bug
>Reporter: Jaroslaw Grabowski
>Assignee: Jaroslaw Grabowski
>Priority: Normal
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org