Package org.apache.cassandra.db.repair
Class PendingAntiCompaction
- java.lang.Object
-
- org.apache.cassandra.db.repair.PendingAntiCompaction
-
public class PendingAntiCompaction extends java.lang.Object
Performs an anti compaction on a set of tables and token ranges, isolating the unrepaired sstables for a give token range into a pending repair group so they can't be compacted with other sstables while they are being repaired.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PendingAntiCompaction.AcquireResult
static class
PendingAntiCompaction.AcquisitionCallable
-
Constructor Summary
Constructors Constructor Description PendingAntiCompaction(TimeUUID prsId, java.util.Collection<ColumnFamilyStore> tables, RangesAtEndpoint tokenRanges, java.util.concurrent.ExecutorService executor, java.util.function.BooleanSupplier isCancelled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PendingAntiCompaction.AcquisitionCallable
getAcquisitionCallable(ColumnFamilyStore cfs, java.util.Set<Range<Token>> ranges, TimeUUID prsId, int acquireRetrySeconds, int acquireSleepMillis)
protected org.apache.cassandra.db.repair.PendingAntiCompaction.AcquisitionCallback
getAcquisitionCallback(TimeUUID prsId, RangesAtEndpoint tokenRanges)
Future<java.util.List<java.lang.Void>>
run()
-
-
-
Constructor Detail
-
PendingAntiCompaction
public PendingAntiCompaction(TimeUUID prsId, java.util.Collection<ColumnFamilyStore> tables, RangesAtEndpoint tokenRanges, java.util.concurrent.ExecutorService executor, java.util.function.BooleanSupplier isCancelled)
-
-
Method Detail
-
run
public Future<java.util.List<java.lang.Void>> run()
-
getAcquisitionCallable
protected PendingAntiCompaction.AcquisitionCallable getAcquisitionCallable(ColumnFamilyStore cfs, java.util.Set<Range<Token>> ranges, TimeUUID prsId, int acquireRetrySeconds, int acquireSleepMillis)
-
getAcquisitionCallback
protected org.apache.cassandra.db.repair.PendingAntiCompaction.AcquisitionCallback getAcquisitionCallback(TimeUUID prsId, RangesAtEndpoint tokenRanges)
-
-