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

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

    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

        1. 3989.txt
          19 kB
          Sylvain Lebresne

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: