Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-18840

Leakage of references to SSTable on unsuccessful operations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.0, 5.1
    • Local/SSTable
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              jlewandowski Jacek Lewandowski
              smiklosovic Stefan Miklosovic
              Jacek Lewandowski
              Stefan Miklosovic
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m