Adding maximum restart attempts to BackoffSupervisor #24769

This commit is contained in:
Saleh Khazaei 2018-09-14 16:52:52 +04:30 committed by Patrik Nordwall
parent 0d7419b422
commit 176b718b2a
11 changed files with 475 additions and 39 deletions

View file

@ -309,7 +309,8 @@ abstract class ClusterShardingSpec(config: ClusterShardingSpecConfig) extends Mu
childName = "coordinator",
minBackoff = 5.seconds,
maxBackoff = 5.seconds,
randomFactor = 0.1).withDeploy(Deploy.local)
randomFactor = 0.1,
maxNrOfRetries = -1).withDeploy(Deploy.local)
system.actorOf(
ClusterSingletonManager.props(
singletonProps,