Stefan Miklosovic created CASSANDRA-18840:
---------------------------------------------

             Summary: Leakage of references to SSTable on unsuccessful 
operations
                 Key: CASSANDRA-18840
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18840
             Project: Cassandra
          Issue Type: Bug
          Components: Local/SSTable
            Reporter: Stefan Miklosovic


This is a little bit tricky to describe correctly as I can talk about the 
symptoms only. I hit this issue when testing CASSANDRA-18781.

In a nutshell, when we go to bulkload an SSTable, it opens it in SSTableLoader. 
If bulkloading fails on server side and exception is propagated to the client, 
on releasing of references, it fails on this assert (1). This practically means 
that we are leaking resources as something still references that SSTable but it 
was not tidied up (on failure). On a happy path, it is all de-referenced 
correctly.

I think that this might have implications beyond SSTable loading, e.g. this 
could happen upon streaming too.

(1) 
https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/SSTableLoader.java#L245



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to