You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dmitry Konstantinov (Jira)" <ji...@apache.org> on 2024/09/22 12:54:00 UTC

[jira] [Updated] (CASSANDRA-19942) Pooled BTree.FastBuilder keeps references to data after reset

     [ https://issues.apache.org/jira/browse/CASSANDRA-19942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Konstantinov updated CASSANDRA-19942:
--------------------------------------------
    Fix Version/s: 4.0.x
                   4.1.x
                   5.0.x
                   5.x

> Pooled BTree.FastBuilder keeps references to data after reset
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-19942
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19942
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Local/Other
>            Reporter: Dmitry Konstantinov
>            Assignee: Dmitry Konstantinov
>            Priority: Normal
>             Fix For: 4.0.x, 4.1.x, 5.0.x, 5.x
>
>         Attachments: image-2024-09-22-13-51-02-751.png
>
>
> Hi I am analyzing of argecolumn_test.TestLargeColumn test failure (CASSANDRA-19702) and have noticed that sometimes when I run the test locally it fails with OOM. The test sends an insert with a large column value.
> In the created heap dump I have found that there is a kind of memory leaking for the sent column values though thread-local variable used for re-usable Pooled BTree.FastBuilder:
> !image-2024-09-22-13-51-02-751.png!
> In normal cases it is probably not critical because the objects are not that huge but it is still a leak.
> reset() logic in BTree.FastBuilder does not clean references to such values because during other operations like build() "count" value can be reset to 0.
>  



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

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