Package com.linkedin.venice.pushmonitor
Class WaitNMinusOnePushStatusDecider
java.lang.Object
com.linkedin.venice.pushmonitor.PushStatusDecider
com.linkedin.venice.pushmonitor.WaitNMinusOnePushStatusDecider
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
boolean
hasEnoughReplicasForOnePartition
(int actual, int expected) Methods inherited from class com.linkedin.venice.pushmonitor.PushStatusDecider
checkPushStatusAndDetailsByPartitionsStatus, getPartitionStatus, getReadyToServeInstances, getReadyToServeInstances, getReplicaCurrentStatus, hasEnoughNodesToStartPush
-
Constructor Details
-
WaitNMinusOnePushStatusDecider
public WaitNMinusOnePushStatusDecider()
-
-
Method Details
-
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
-