You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "David Capwell (Jira)" <ji...@apache.org> on 2025/12/02 19:57:00 UTC

[jira] [Updated] (CASSANDRA-21055) When updating a multi cell collection element, if the update is rejected then the shared Row.Builder is not freed causing all future mutations to be rejected

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

David Capwell updated CASSANDRA-21055:
--------------------------------------
     Bug Category: Parent values: Availability(12983)Level 1 values: Unavailable(12994)
       Complexity: Low Hanging Fruit
    Discovered By: Fuzz Test
    Fix Version/s: 6.x
         Severity: Critical
           Status: Open  (was: Triage Needed)

> When updating a multi cell collection element, if the update is rejected then the shared Row.Builder is not freed causing all future mutations to be rejected
> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-21055
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21055
>             Project: Apache Cassandra
>          Issue Type: Bug
>          Components: Consistency/Coordination
>            Reporter: David Capwell
>            Assignee: David Capwell
>            Priority: Normal
>             Fix For: 6.x
>
>
> BTreeRow.pooledUnsortedBuilder() is used to lower memory costs for requests, and need to call builder.build() to trigger cleanup of resources; but this does not happen if the mutation is rejected!
> {code}
> UPDATE tbl SET col[0] = 42 WHERE pk = 0;
> {code}
> The query above is able to hit this when the pk doesn’t exist, it leaks the BTreeRow.Builder and all mutations to this thread will now reject as org.apache.cassandra.db.rows.BTreeRow.Builder#newRow will detect this happened and will trigger a assert.
> This was found in CASSANDRA-20828, but forking off into its own issue for better isolation.



--
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