Package org.apache.cassandra.db.repair
Class PendingAntiCompaction
java.lang.Object
org.apache.cassandra.db.repair.PendingAntiCompaction
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 ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionPendingAntiCompaction(TimeUUID prsId, Collection<ColumnFamilyStore> tables, RangesAtEndpoint tokenRanges, ExecutorService executor, BooleanSupplier isCancelled) -
Method Summary
Modifier and TypeMethodDescriptiongetAcquisitionCallable(ColumnFamilyStore cfs, Set<Range<Token>> ranges, TimeUUID prsId, int acquireRetrySeconds, int acquireSleepMillis) protected org.apache.cassandra.db.repair.PendingAntiCompaction.AcquisitionCallbackgetAcquisitionCallback(TimeUUID prsId, RangesAtEndpoint tokenRanges) run()
-
Constructor Details
-
PendingAntiCompaction
public PendingAntiCompaction(TimeUUID prsId, Collection<ColumnFamilyStore> tables, RangesAtEndpoint tokenRanges, ExecutorService executor, BooleanSupplier isCancelled)
-
-
Method Details
-
run
-
getAcquisitionCallable
protected PendingAntiCompaction.AcquisitionCallable getAcquisitionCallable(ColumnFamilyStore cfs, Set<Range<Token>> ranges, TimeUUID prsId, int acquireRetrySeconds, int acquireSleepMillis) -
getAcquisitionCallback
protected org.apache.cassandra.db.repair.PendingAntiCompaction.AcquisitionCallback getAcquisitionCallback(TimeUUID prsId, RangesAtEndpoint tokenRanges)
-