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

Stopping a node during compaction can make already written files stay around

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

Details

    • Normal

    Description

      In leveled compaction we generally create many files during compaction, in 2.0 we left the ones we had written as tmp files, in 2.1 we close and open the readers, removing the tmp markers.

      This means that any ongoing compactions will leave the resulting files around if we restart. Note that stop:ing the compaction will cause an exception and that makes us call abort() on the SSTableRewriter which removes the files.

      Guess a fix could be to keep the tmp marker and make tmplink files until we are actually done with the compaction.

      Attachments

        Activity

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

          People

            marcuse Marcus Eriksson Assign to me
            marcuse Marcus Eriksson
            Marcus Eriksson
            Yuki Morishita
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment