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

Post-compaction cache preheating can result in FileNotFoundExceptions when tables are dropped

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0.9
    • None
    • Low

    Description

      In CompactionTask.java, after a compaction finishes, we do this:

              replaceCompactedSSTables(toCompact, sstables);
              // TODO: this doesn't belong here, it should be part of the reader to load when the tracker is wired up
              for (SSTableReader sstable : sstables)
                  sstable.preheat(cachedKeyMap.get(sstable.descriptor));
      

      The problem is that if the table was dropped, replaceCompactedSSTables will release its references on the new sstables, resulting in them being closed.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            marcuse Marcus Eriksson Assign to me
            thobbs Tom Hobbs
            Marcus Eriksson
            Tom Hobbs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment