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

Cleanup smallest CFs first

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.6.9, 0.7.0 rc 3
    • None
    • None

    Description

      When running a cleanup, it would be an advantage to anti-compact the smallest SSTables first, so that free disk space is gradually increased, so that larger sstables later on are more likely to successfully anti-compact.

      In 0.6, currently Table.forceCleanup() just iterates the list of CFs in whatever order they come from tableMetadata.getColumnFamilies, which is just a keySet().

      The code should be changed to sort the CFs, smallest first.

      Attachments

        1. 1811-v2.txt
          2 kB
          Jonathan Ellis
        2. 1811.txt
          2 kB
          Jon Hermes

        Issue Links

          Activity

            People

              jhermes Jon Hermes
              pquerna Paul Querna
              Jon Hermes
              Jonathan Ellis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: