Don't run incremental repairs for consensus only repairs

Patch by Blake Eggleston; reviewed by David Capwell for CASSANDRA-19717
This commit is contained in:
Blake Eggleston 2024-06-17 16:28:05 -07:00 committed by David Capwell
parent 17c186ad64
commit d6bf8ec3d0
2 changed files with 6 additions and 1 deletions

View File

@ -499,7 +499,7 @@ public class RepairCoordinator implements Runnable, ProgressEventNotifier, Repai
{
task = new PreviewRepairTask(this, state.id, neighborsAndRanges.filterCommonRanges(state.keyspace, cfnames), neighborsAndRanges.shouldExcludeDeadParticipants, cfnames);
}
else if (state.options.isIncremental())
else if (state.options.isIncremental() && !state.options.isConsensusOnly())
{
task = new IncrementalRepairTask(this, state.id, neighborsAndRanges, cfnames);
}

View File

@ -463,6 +463,11 @@ public class RepairOption
return accordOnly;
}
public boolean isConsensusOnly()
{
return paxosOnly() || accordOnly();
}
public boolean isConsensusMigration()
{
return isConsensusMigration;