Package com.linkedin.venice.pushmonitor
Class WaitNMinusOnePushStatusDecider
- java.lang.Object
-
- com.linkedin.venice.pushmonitor.PushStatusDecider
-
- com.linkedin.venice.pushmonitor.WaitNMinusOnePushStatusDecider
-
public class WaitNMinusOnePushStatusDecider extends PushStatusDecider
Wait N-1 strategy stands for Venice could tolerate one of replica to be failed for each partition. Otherwise, once more replica failed, Venice should fail the whole push.
-
-
Constructor Summary
Constructors Constructor Description WaitNMinusOnePushStatusDecider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getNumberOfToleratedErrors()
OfflinePushStrategy
getStrategy()
boolean
hasEnoughReplicasForOnePartition(int actual, int expected)
-
Methods inherited from class com.linkedin.venice.pushmonitor.PushStatusDecider
checkPushStatusAndDetailsByPartitionsStatus, getPartitionStatus, getReadyToServeInstances, getReadyToServeInstances, getReplicaCurrentStatus, hasEnoughNodesToStartPush
-
-
-
-
Method Detail
-
getStrategy
public OfflinePushStrategy getStrategy()
- Specified by:
getStrategy
in classPushStatusDecider
-
hasEnoughReplicasForOnePartition
public boolean hasEnoughReplicasForOnePartition(int actual, int expected)
- Specified by:
hasEnoughReplicasForOnePartition
in classPushStatusDecider
-
getNumberOfToleratedErrors
protected int getNumberOfToleratedErrors()
- Specified by:
getNumberOfToleratedErrors
in classPushStatusDecider
-
-