code: public void interruptCompactionFor(Iterable<CFMetaData> columnFamilies, boolean interruptValidation)
      {
          assert columnFamilies != null;
  
          // interrupt in-progress compactions
          for (Holder compactionHolder : CompactionMetrics.getCompactions())
          {
              CompactionInfo info = compactionHolder.getCompactionInfo();
              if ((info.getTaskType() == OperationType.VALIDATION) && !interruptValidation)
                  continue;
  
              if (Iterables.contains(columnFamilies, info.getCFMetaData()))
                  compactionHolder.stop(); // signal compaction to stop
          }
      }
docs: Try to stop all of the compactions for given ColumnFamilies.
  
  Note that this method does not wait for all compactions to finish; you'll need to loop against
  isCompacting if you want that behavior.
  
  @param columnFamilies The ColumnFamilies to try to stop compaction upon.
  @param interruptValidation true if validation operations for repair should also be interrupted