You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michael Marshall (Jira)" <ji...@apache.org> on 2024/05/08 14:21:00 UTC

[jira] [Created] (CASSANDRA-19624) ModificationStatement#casInternal leaks RowIterator

Michael Marshall created CASSANDRA-19624:
--------------------------------------------

             Summary: ModificationStatement#casInternal leaks RowIterator
                 Key: CASSANDRA-19624
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19624
             Project: Cassandra
          Issue Type: Bug
            Reporter: Michael Marshall
            Assignee: Michael Marshall


In the `ModificationStatement` class, the `casInternal` method opens a row iterator without closing it, causing the iterator to leak resources. Here is a link to the relevant code in the `trunk` branch.

[https://github.com/apache/cassandra/blob/a77a2d10b1d247ed920b75df79f982a3b7c6a431/src/java/org/apache/cassandra/cql3/statements/ModificationStatement.java#L680-L684]

 

It seems that `cassandra-3.0.30` has the bug, but `cassandra-2.2.19` does not have it. Is it correct to target `cassandra-3.0.30`?

What is the best practice for testing this kind of bug fix? It seems like a low complexity fix. This is my first contribution to the Cassandra community, so any guidance is appreciated. Thanks!



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