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

nodetool cleanup/scrub/upgradesstables promotes all sstables to next level (LeveledCompaction)

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
    • 1.0.9, 1.1.0
    • None
    • RHEL6

    • Low

    Description

      1.0.7 + LeveledCompactionStrategy
      If you run nodetool cleanup, scrub, or upgradesstables, Cassandra execute compaction for each sstable. During the compaction, it put the new sstable to next level of the original sstable. If you run cleanup many times, sstables will reached to the highest level, and CASSANDRA-3608 will happens at next cleanup.

      Reproduce procedure:

      1. create column family CF1 with compaction_strategy=LeveledCompactionStrategy and compaction_strategy_options= {sstable_size_in_mb: 5}

        ;

      2. Insert some data into CF1.
      3. nodetool flush
      4. Verify the sstable is created at L1 in CF1.json
      5. nodetool cleanup
      6. Verify sstable in L1 is removed and new sstable is created at L2 in CF1.json
      7. repeat nodetool cleanup some times

      Attachments

        Activity

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

          People

            slebresne Sylvain Lebresne Assign to me
            makiw Maki Watanabe
            Sylvain Lebresne
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment