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

Create a nodetool upgrade_sstables to avoid using scrubs for tasks it wasn't intended to.

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 1.0.4
    • Component/s: None
    • Labels:
      None

      Description

      Scrub was intended to check a data file is not corrupted and to try to correct some form of corruption and discard the data when it can't repair. But we are now using it also for:

      • major upgrade, to have sstable in the new data format for streaming sake (that one could be "fixed" independently by supporting old format during streaming)
      • to force the compaction of existing sstables after changing the compression algorithm

      We should probably provide a separate tool/command for those two last tasks since:

      • we could have a better name, like upgrade_sstables or rewrite_sstables for that operation
      • we could avoid the automatic snapshot that scrub does (and is not expected by users for those operations)
      • make it slightly quicker/simpler by avoiding the corruption detection code

        Attachments

        1. 0002-Add-upgradesstables-command.patch
          8 kB
          Sylvain Lebresne
        2. 0001-Refactor-to-avoid-code-duplication.patch
          6 kB
          Sylvain Lebresne

          Activity

            People

            • Assignee:
              slebresne Sylvain Lebresne
              Reporter:
              slebresne Sylvain Lebresne
              Authors:
              Sylvain Lebresne
              Reviewers:
              Jonathan Ellis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: