Class CompactionManager
java.lang.Object
org.apache.cassandra.db.compaction.CompactionManager
- All Implemented Interfaces:
CompactionManagerMBean,ICompactionManager
A singleton which manages a private executor of ongoing compactions.
Scheduling for compaction is accomplished by swapping sstables to be compacted into a set via Tracker. New scheduling attempts will ignore currently compacting sstables.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic interfacestatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ActiveCompactionsfinal AtomicIntegerstatic final intstatic final CompactionManagerstatic final Stringstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SSTableWritercreateWriter(ColumnFamilyStore cfs, File compactionFileLocation, long expectedBloomFilterSize, long repairedAt, TimeUUID pendingRepair, boolean isTransient, SSTableReader sstable, LifecycleTransaction txn) static SSTableWritercreateWriterForAntiCompaction(ColumnFamilyStore cfs, File compactionFileLocation, int expectedBloomFilterSize, long repairedAt, TimeUUID pendingRepair, boolean isTransient, Collection<SSTableReader> sstables, ILifecycleTransaction txn) voidvoidfinishCompactionsAndShutdown(long timeout, TimeUnit unit) voidforceCompaction(ColumnFamilyStore cfStore, Supplier<Collection<SSTableReader>> sstablesFn, com.google.common.base.Predicate<SSTableReader> sstablesPredicate) voidforceCompactionForKey(ColumnFamilyStore cfStore, DecoratedKey key) voidforceCompactionForKeys(ColumnFamilyStore cfStore, Collection<DecoratedKey> keys) voidforceCompactionForTokenRange(ColumnFamilyStore cfStore, Collection<Range<Token>> ranges) Forces a major compaction of specified token ranges of the specified column family.voidShutdowns both compaction and validation executors, cancels running compaction / validation, and waits for tasks to complete if tasks were not cancelable.voidforceUserDefinedCleanup(String dataFiles) Triggers the cleanup of user specified sstables.voidforceUserDefinedCompaction(String dataFiles) Triggers the compaction of user specified sstables.intstatic CompactionIteratorgetAntiCompactionIterator(List<ISSTableScanner> scanners, CompactionController controller, long nowInSec, TimeUUID timeUUID, ActiveCompactionsTracker activeCompactions, BooleanSupplier isCancelled) booleanGet automatic sstable upgrade enabledorg.apache.cassandra.db.compaction.CompactionManager.BackgroundCompactionCandidatecompaction historyList of running compaction objects.getCompactionsMatching(Iterable<TableMetadata> columnFamilies, Predicate<CompactionInfo> predicate) List of running compaction summary strings.longintReturns core size of compaction thread poolintintReturns core size of validation thread poolintReturns core size of view build thread poolstatic longgetDefaultGcBefore(ColumnFamilyStore cfs, long nowInSec) booleanEnable / disable STCS in L0intGet the number of concurrent sstable upgrade tasks we should run when automatic sstable upgrades are enabledintReturns maximum size of compaction thread poolintintReturns size of validator thread poolintReturns size of view build thread poolintcom.google.common.util.concurrent.RateLimiterGets compaction rate limiter.longlongbooleanvoidvoidvoidincrementSstablesDropppedFromCompactions(long num) voidinterruptCompactionFor(Iterable<TableMetadata> columnFamilies, Predicate<SSTableReader> sstablePredicate, boolean interruptValidation) Try to stop all of the compactions for given ColumnFamilies.voidinterruptCompactionForCFs(Iterable<ColumnFamilyStore> cfss, Predicate<SSTableReader> sstablePredicate, boolean interruptValidation) booleanisCompacting(Iterable<ColumnFamilyStore> cfses, Predicate<SSTableReader> sstablePredicate) static booleanisCompactor(Thread thread) booleanReturn whether "global" compactions should be paused, used by ColumnFamilyStore#runWithCompactionsDisabled a global compaction is one that includes several/all tables, currently only IndexSummaryBuilderstatic booleanneedsCleanup(SSTableReader sstable, Collection<Range<Token>> ownedRanges) Determines if a cleanup would actually remove any data in this SSTable based on a set of owned ranges.voidperformAnticompaction(ColumnFamilyStore cfs, RangesAtEndpoint replicas, Refs<SSTableReader> validatedForRepair, LifecycleTransaction txn, TimeUUID sessionID, BooleanSupplier isCancelled) Make sure the {validatedForRepair} are marked for compaction before calling this.performCleanup(ColumnFamilyStore cfStore, int jobs) performGarbageCollection(ColumnFamilyStore cfStore, CompactionParams.TombstoneOption tombstoneOption, int jobs) voidperformMaximal(ColumnFamilyStore cfStore, boolean splitOutput) performScrub(ColumnFamilyStore cfs, IScrubber.Options options, int jobs) performSSTableRewrite(ColumnFamilyStore cfs, boolean skipIfCurrentVersion, long skipIfOlderThanTimestamp, boolean skipIfCompressionMatches, int jobs) performSSTableRewrite(ColumnFamilyStore cfs, Predicate<SSTableReader> sstableFilter, int jobs) Perform SSTable rewriteperformVerify(ColumnFamilyStore cfs, IVerifier.Options options) relocateSSTables(ColumnFamilyStore cfs, int jobs) <T,E extends Throwable>
TrunAsActiveCompaction(CompactionInfo.Holder activeCompactionInfo, net.openhft.chronicle.core.util.ThrowingSupplier<T, E> callable) voidsetAutomaticSSTableUpgradeEnabled(boolean enabled) Set if automatic sstable upgrade should be enabledvoidsetConcurrentCompactors(int value) voidsetConcurrentIndexBuilders(int value) voidvoidsetConcurrentViewBuilders(int value) voidsetCoreCompactorThreads(int number) Allows user to resize maximum size of the compaction thread pool.voidsetCoreSecondaryIndexExecutorThreads(int number) voidsetCoreValidationThreads(int number) Allows user to resize maximum size of the compaction thread pool.voidsetCoreViewBuildThreads(int number) Allows user to resize maximum size of the view build thread pool.voidsetDisableSTCSInL0(boolean disabled) voidsetMaxConcurrentAutoUpgradeTasks(int value) Set the number of concurrent sstable upgrade tasks we should run when automatic sstable upgrades are enabledvoidsetMaximumCompactorThreads(int number) Allows user to resize maximum size of the compaction thread pool.voidsetMaximumSecondaryIndexExecutorThreads(int number) voidsetMaximumValidatorThreads(int number) Allows user to resize maximum size of the validator thread pool.voidsetMaximumViewBuildThreads(int number) Allows user to resize maximum size of the view build thread pool.voidsetRate(double throughputMbPerSec) Deprecated.Use setRateInBytes instead See CASSANDRA-17225voidsetRateInBytes(double throughputBytesPerSec) Sets the rate for the rate limiter.voidstopCompaction(String type) Stop all running compaction-like tasks having the providedtype.voidstopCompactionById(String compactionId) Stop an individual running compaction using the compactionId.Call this whenever a compaction might be needed on the given columnfamily.Future<?>Future<?>submitIndexBuild(SecondaryIndexBuilder builder) Is not scheduled, because it is performing disjoint work from sstable compaction.submitMaximal(ColumnFamilyStore cfStore, long gcBefore, boolean splitOutput) submitMaximal(ColumnFamilyStore cfStore, long gcBefore, boolean splitOutput, OperationType operationType) submitPendingAntiCompaction(ColumnFamilyStore cfs, RangesAtEndpoint tokenRanges, Refs<SSTableReader> sstables, LifecycleTransaction txn, TimeUUID sessionId, BooleanSupplier isCancelled) Splits the given token ranges of the given sstables into a pending repair siloFuture<?>submitUserDefined(ColumnFamilyStore cfs, Collection<Descriptor> dataFiles, long gcBefore) Future<?>submitValidation(Callable<Object> validation) voidwaitForCessation(Iterable<ColumnFamilyStore> cfss, Predicate<SSTableReader> sstablePredicate)
-
Field Details
-
MBEAN_OBJECT_NAME
- See Also:
-
instance
-
currentlyBackgroundUpgrading
-
NO_GC
public static final int NO_GC- See Also:
-
GC_ALL
public static final int GC_ALL- See Also:
-
active
-
-
Constructor Details
-
CompactionManager
public CompactionManager()
-
-
Method Details
-
getMetrics
-
getRateLimiter
public com.google.common.util.concurrent.RateLimiter getRateLimiter()Gets compaction rate limiter. Rate unit is bytes per sec.- Returns:
- RateLimiter with rate limit set
-
setRate
Deprecated.Use setRateInBytes instead See CASSANDRA-17225Sets the rate for the rate limiter. When compaction_throughput is 0 or node is bootstrapping, this sets the rate to Double.MAX_VALUE bytes per second.- Parameters:
throughputMbPerSec- throughput to set in MiB/s
-
setRateInBytes
public void setRateInBytes(double throughputBytesPerSec) Sets the rate for the rate limiter. When compaction_throughput is 0 or node is bootstrapping, this sets the rate to Double.MAX_VALUE bytes per second.- Parameters:
throughputBytesPerSec- throughput to set in B/s
-
submitBackground
Call this whenever a compaction might be needed on the given columnfamily. It's okay to over-call (within reason) if a call is unnecessary, it will turn into a no-op in the bucketing/candidate-scan phase. -
isCompacting
public boolean isCompacting(Iterable<ColumnFamilyStore> cfses, Predicate<SSTableReader> sstablePredicate) -
hasOngoingOrPendingTasks
public boolean hasOngoingOrPendingTasks() -
forceShutdown
public void forceShutdown()Shutdowns both compaction and validation executors, cancels running compaction / validation, and waits for tasks to complete if tasks were not cancelable. -
finishCompactionsAndShutdown
- Throws:
InterruptedException
-
getBackgroundCompactionCandidate
public org.apache.cassandra.db.compaction.CompactionManager.BackgroundCompactionCandidate getBackgroundCompactionCandidate(ColumnFamilyStore cfs) -
performScrub
public CompactionManager.AllSSTableOpStatus performScrub(ColumnFamilyStore cfs, IScrubber.Options options, int jobs) -
performVerify
public CompactionManager.AllSSTableOpStatus performVerify(ColumnFamilyStore cfs, IVerifier.Options options) throws InterruptedException, ExecutionException -
performSSTableRewrite
public CompactionManager.AllSSTableOpStatus performSSTableRewrite(ColumnFamilyStore cfs, boolean skipIfCurrentVersion, long skipIfOlderThanTimestamp, boolean skipIfCompressionMatches, int jobs) throws InterruptedException, ExecutionException -
performSSTableRewrite
public CompactionManager.AllSSTableOpStatus performSSTableRewrite(ColumnFamilyStore cfs, Predicate<SSTableReader> sstableFilter, int jobs) throws InterruptedException, ExecutionException Perform SSTable rewrite- Parameters:
sstableFilter- sstables for which predicate returns {@link false} will be excluded- Throws:
InterruptedExceptionExecutionException
-
performCleanup
public CompactionManager.AllSSTableOpStatus performCleanup(ColumnFamilyStore cfStore, int jobs) throws InterruptedException, ExecutionException -
performGarbageCollection
public CompactionManager.AllSSTableOpStatus performGarbageCollection(ColumnFamilyStore cfStore, CompactionParams.TombstoneOption tombstoneOption, int jobs) throws InterruptedException, ExecutionException -
relocateSSTables
public CompactionManager.AllSSTableOpStatus relocateSSTables(ColumnFamilyStore cfs, int jobs) throws ExecutionException, InterruptedException -
submitPendingAntiCompaction
public Future<Void> submitPendingAntiCompaction(ColumnFamilyStore cfs, RangesAtEndpoint tokenRanges, Refs<SSTableReader> sstables, LifecycleTransaction txn, TimeUUID sessionId, BooleanSupplier isCancelled) Splits the given token ranges of the given sstables into a pending repair silo -
performAnticompaction
public void performAnticompaction(ColumnFamilyStore cfs, RangesAtEndpoint replicas, Refs<SSTableReader> validatedForRepair, LifecycleTransaction txn, TimeUUID sessionID, BooleanSupplier isCancelled) throws IOException Make sure the {validatedForRepair} are marked for compaction before calling this. Caller must reference the validatedForRepair sstables (via ParentRepairSession.getActiveRepairedSSTableRefs(..)).- Parameters:
cfs-replicas- token ranges to be repairedvalidatedForRepair- SSTables containing the repaired ranges. Should be referenced before passing them.sessionID- the repair session we're anti-compacting forisCancelled- function that indicates if active anti-compaction should be canceled- Throws:
InterruptedExceptionIOException
-
performMaximal
-
submitMaximal
-
submitMaximal
public List<Future<?>> submitMaximal(ColumnFamilyStore cfStore, long gcBefore, boolean splitOutput, OperationType operationType) -
forceCompaction
public void forceCompaction(ColumnFamilyStore cfStore, Supplier<Collection<SSTableReader>> sstablesFn, com.google.common.base.Predicate<SSTableReader> sstablesPredicate) -
forceCompactionForTokenRange
public void forceCompactionForTokenRange(ColumnFamilyStore cfStore, Collection<Range<Token>> ranges) Forces a major compaction of specified token ranges of the specified column family.The token ranges will be interpreted as closed intervals to match the closed interval defined by the first and last keys of a sstable, even though the
Rangeclass is suppossed to be half-open by definition.- Parameters:
cfStore- The column family store to be compacted.ranges- The token ranges to be compacted, interpreted as closed intervals.
-
forceCompactionForKey
-
forceCompactionForKeys
-
forceUserDefinedCompaction
Description copied from interface:CompactionManagerMBeanTriggers the compaction of user specified sstables. You can specify files from various keyspaces and columnfamilies. If you do so, user defined compaction is performed several times to the groups of files in the same keyspace/columnfamily.- Specified by:
forceUserDefinedCompactionin interfaceCompactionManagerMBean- Parameters:
dataFiles- a comma separated list of sstable file to compact. must contain keyspace and columnfamily name in path(for 2.1+) or file name itself.
-
forceUserDefinedCleanup
Description copied from interface:CompactionManagerMBeanTriggers the cleanup of user specified sstables. You can specify files from various keyspaces and columnfamilies. If you do so, cleanup is performed each file individually- Specified by:
forceUserDefinedCleanupin interfaceCompactionManagerMBean- Parameters:
dataFiles- a comma separated list of sstable file to cleanup. must contain keyspace and columnfamily name in path(for 2.1+) or file name itself.
-
submitUserDefined
public Future<?> submitUserDefined(ColumnFamilyStore cfs, Collection<Descriptor> dataFiles, long gcBefore) -
submitValidation
-
disableAutoCompaction
public void disableAutoCompaction() -
needsCleanup
Determines if a cleanup would actually remove any data in this SSTable based on a set of owned ranges. -
createWriter
public static SSTableWriter createWriter(ColumnFamilyStore cfs, File compactionFileLocation, long expectedBloomFilterSize, long repairedAt, TimeUUID pendingRepair, boolean isTransient, SSTableReader sstable, LifecycleTransaction txn) -
createWriterForAntiCompaction
public static SSTableWriter createWriterForAntiCompaction(ColumnFamilyStore cfs, File compactionFileLocation, int expectedBloomFilterSize, long repairedAt, TimeUUID pendingRepair, boolean isTransient, Collection<SSTableReader> sstables, ILifecycleTransaction txn) -
getAntiCompactionIterator
public static CompactionIterator getAntiCompactionIterator(List<ISSTableScanner> scanners, CompactionController controller, long nowInSec, TimeUUID timeUUID, ActiveCompactionsTracker activeCompactions, BooleanSupplier isCancelled) -
submitIndexBuild
Is not scheduled, because it is performing disjoint work from sstable compaction. -
submitCacheWrite
-
runAsActiveCompaction
public <T,E extends Throwable> T runAsActiveCompaction(CompactionInfo.Holder activeCompactionInfo, net.openhft.chronicle.core.util.ThrowingSupplier<T, E> callable) throws E- Throws:
E extends Throwable
-
getDefaultGcBefore
-
submitViewBuilder
-
getActiveCompactions
public int getActiveCompactions() -
isCompactor
-
incrementAborted
public void incrementAborted() -
incrementCompactionsReduced
public void incrementCompactionsReduced() -
incrementSstablesDropppedFromCompactions
public void incrementSstablesDropppedFromCompactions(long num) -
getCompactions
Description copied from interface:CompactionManagerMBeanList of running compaction objects.- Specified by:
getCompactionsin interfaceCompactionManagerMBean
-
getCompactionSummary
Description copied from interface:CompactionManagerMBeanList of running compaction summary strings.- Specified by:
getCompactionSummaryin interfaceCompactionManagerMBean
-
getCompactionHistory
Description copied from interface:CompactionManagerMBeancompaction history- Specified by:
getCompactionHistoryin interfaceCompactionManagerMBean
-
getTotalBytesCompacted
public long getTotalBytesCompacted() -
getTotalCompactionsCompleted
public long getTotalCompactionsCompleted() -
getPendingTasks
public int getPendingTasks()- Specified by:
getPendingTasksin interfaceICompactionManager
-
getCompletedTasks
public long getCompletedTasks() -
stopCompaction
Description copied from interface:CompactionManagerMBeanStop all running compaction-like tasks having the providedtype.- Specified by:
stopCompactionin interfaceCompactionManagerMBean- Parameters:
type- the type of compaction to stop. Can be one of: - COMPACTION - VALIDATION - CLEANUP - SCRUB - INDEX_BUILD
-
stopCompactionById
Description copied from interface:CompactionManagerMBeanStop an individual running compaction using the compactionId.- Specified by:
stopCompactionByIdin interfaceCompactionManagerMBean- Parameters:
compactionId- Compaction ID of compaction to stop. Such IDs can be found in the transaction log files whose name starts with compaction_, located in the table transactions folder.
-
setConcurrentCompactors
public void setConcurrentCompactors(int value) -
setConcurrentValidations
public void setConcurrentValidations() -
setConcurrentViewBuilders
public void setConcurrentViewBuilders(int value) -
setConcurrentIndexBuilders
public void setConcurrentIndexBuilders(int value) -
getCoreCompactorThreads
public int getCoreCompactorThreads()Description copied from interface:CompactionManagerMBeanReturns core size of compaction thread pool- Specified by:
getCoreCompactorThreadsin interfaceCompactionManagerMBean
-
setCoreCompactorThreads
public void setCoreCompactorThreads(int number) Description copied from interface:CompactionManagerMBeanAllows user to resize maximum size of the compaction thread pool.- Specified by:
setCoreCompactorThreadsin interfaceCompactionManagerMBean- Parameters:
number- New maximum of compaction threads
-
getMaximumCompactorThreads
public int getMaximumCompactorThreads()Description copied from interface:CompactionManagerMBeanReturns maximum size of compaction thread pool- Specified by:
getMaximumCompactorThreadsin interfaceCompactionManagerMBean
-
setMaximumCompactorThreads
public void setMaximumCompactorThreads(int number) Description copied from interface:CompactionManagerMBeanAllows user to resize maximum size of the compaction thread pool.- Specified by:
setMaximumCompactorThreadsin interfaceCompactionManagerMBean- Parameters:
number- New maximum of compaction threads
-
getCoreValidationThreads
public int getCoreValidationThreads()Description copied from interface:CompactionManagerMBeanReturns core size of validation thread pool- Specified by:
getCoreValidationThreadsin interfaceCompactionManagerMBean
-
setCoreValidationThreads
public void setCoreValidationThreads(int number) Description copied from interface:CompactionManagerMBeanAllows user to resize maximum size of the compaction thread pool.- Specified by:
setCoreValidationThreadsin interfaceCompactionManagerMBean- Parameters:
number- New maximum of compaction threads
-
getMaximumValidatorThreads
public int getMaximumValidatorThreads()Description copied from interface:CompactionManagerMBeanReturns size of validator thread pool- Specified by:
getMaximumValidatorThreadsin interfaceCompactionManagerMBean
-
setMaximumValidatorThreads
public void setMaximumValidatorThreads(int number) Description copied from interface:CompactionManagerMBeanAllows user to resize maximum size of the validator thread pool.- Specified by:
setMaximumValidatorThreadsin interfaceCompactionManagerMBean- Parameters:
number- New maximum of validator threads
-
getMaximumSecondaryIndexExecutorThreads
public int getMaximumSecondaryIndexExecutorThreads()- Specified by:
getMaximumSecondaryIndexExecutorThreadsin interfaceCompactionManagerMBean
-
setMaximumSecondaryIndexExecutorThreads
public void setMaximumSecondaryIndexExecutorThreads(int number) - Specified by:
setMaximumSecondaryIndexExecutorThreadsin interfaceCompactionManagerMBean
-
getCoreSecondaryIndexExecutorThreads
public int getCoreSecondaryIndexExecutorThreads()- Specified by:
getCoreSecondaryIndexExecutorThreadsin interfaceCompactionManagerMBean
-
setCoreSecondaryIndexExecutorThreads
public void setCoreSecondaryIndexExecutorThreads(int number) - Specified by:
setCoreSecondaryIndexExecutorThreadsin interfaceCompactionManagerMBean
-
getDisableSTCSInL0
public boolean getDisableSTCSInL0()Description copied from interface:CompactionManagerMBeanEnable / disable STCS in L0- Specified by:
getDisableSTCSInL0in interfaceCompactionManagerMBean
-
setDisableSTCSInL0
public void setDisableSTCSInL0(boolean disabled) - Specified by:
setDisableSTCSInL0in interfaceCompactionManagerMBean
-
getCoreViewBuildThreads
public int getCoreViewBuildThreads()Description copied from interface:CompactionManagerMBeanReturns core size of view build thread pool- Specified by:
getCoreViewBuildThreadsin interfaceCompactionManagerMBean
-
setCoreViewBuildThreads
public void setCoreViewBuildThreads(int number) Description copied from interface:CompactionManagerMBeanAllows user to resize maximum size of the view build thread pool.- Specified by:
setCoreViewBuildThreadsin interfaceCompactionManagerMBean- Parameters:
number- New maximum of view build threads
-
getMaximumViewBuildThreads
public int getMaximumViewBuildThreads()Description copied from interface:CompactionManagerMBeanReturns size of view build thread pool- Specified by:
getMaximumViewBuildThreadsin interfaceCompactionManagerMBean
-
setMaximumViewBuildThreads
public void setMaximumViewBuildThreads(int number) Description copied from interface:CompactionManagerMBeanAllows user to resize maximum size of the view build thread pool.- Specified by:
setMaximumViewBuildThreadsin interfaceCompactionManagerMBean- Parameters:
number- New maximum of view build threads
-
getAutomaticSSTableUpgradeEnabled
public boolean getAutomaticSSTableUpgradeEnabled()Description copied from interface:CompactionManagerMBeanGet automatic sstable upgrade enabled- Specified by:
getAutomaticSSTableUpgradeEnabledin interfaceCompactionManagerMBean
-
setAutomaticSSTableUpgradeEnabled
public void setAutomaticSSTableUpgradeEnabled(boolean enabled) Description copied from interface:CompactionManagerMBeanSet if automatic sstable upgrade should be enabled- Specified by:
setAutomaticSSTableUpgradeEnabledin interfaceCompactionManagerMBean
-
getMaxConcurrentAutoUpgradeTasks
public int getMaxConcurrentAutoUpgradeTasks()Description copied from interface:CompactionManagerMBeanGet the number of concurrent sstable upgrade tasks we should run when automatic sstable upgrades are enabled- Specified by:
getMaxConcurrentAutoUpgradeTasksin interfaceCompactionManagerMBean
-
setMaxConcurrentAutoUpgradeTasks
public void setMaxConcurrentAutoUpgradeTasks(int value) Description copied from interface:CompactionManagerMBeanSet the number of concurrent sstable upgrade tasks we should run when automatic sstable upgrades are enabled- Specified by:
setMaxConcurrentAutoUpgradeTasksin interfaceCompactionManagerMBean
-
getCompactionsMatching
public List<CompactionInfo.Holder> getCompactionsMatching(Iterable<TableMetadata> columnFamilies, Predicate<CompactionInfo> predicate) -
interruptCompactionFor
public void interruptCompactionFor(Iterable<TableMetadata> columnFamilies, Predicate<SSTableReader> sstablePredicate, boolean interruptValidation) 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.- Parameters:
columnFamilies- The ColumnFamilies to try to stop compaction upon.sstablePredicate- the sstable predicate to match oninterruptValidation- true if validation operations for repair should also be interrupted
-
interruptCompactionForCFs
public void interruptCompactionForCFs(Iterable<ColumnFamilyStore> cfss, Predicate<SSTableReader> sstablePredicate, boolean interruptValidation) -
waitForCessation
public void waitForCessation(Iterable<ColumnFamilyStore> cfss, Predicate<SSTableReader> sstablePredicate) -
getSSTableTasks
-
isGlobalCompactionPaused
public boolean isGlobalCompactionPaused()Return whether "global" compactions should be paused, used by ColumnFamilyStore#runWithCompactionsDisabled a global compaction is one that includes several/all tables, currently only IndexSummaryBuilder -
pauseGlobalCompaction
-