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

Add interim prioritization logic for CompactionTasks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.0-alpha1, 5.0
    • Local/Compaction
    • None

    Description

      While ultimately we could serve to have a real scheduler and single entry point for compactions, for now some moderate progress seems in order. There are cases where, during expansions, you can end up in a state where you can't finish upgrading sstables as they keep getting aborted by Incremental Repair and other operations that ultimately should be lower priority and not have the ability to cancel these operations.

      The idea here is that tasks like upgradestables and cleanup (and other tasks that have the same priority) will get serialised since markAllCompacting is synchronising on data, and higher priority tasks will be able to still cancel others via runWithCompactionsDisabled.

      Attachments

        Issue Links

          Activity

            People

              jmckenzie Josh McKenzie
              jmckenzie Josh McKenzie
              Josh McKenzie
              Alex Petrov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: