mirror of https://github.com/apache/cassandra
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:
parent
17c186ad64
commit
d6bf8ec3d0
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -463,6 +463,11 @@ public class RepairOption
|
|||
return accordOnly;
|
||||
}
|
||||
|
||||
public boolean isConsensusOnly()
|
||||
{
|
||||
return paxosOnly() || accordOnly();
|
||||
}
|
||||
|
||||
public boolean isConsensusMigration()
|
||||
{
|
||||
return isConsensusMigration;
|
||||
|
|
|
|||
Loading…
Reference in New Issue