=clu #3533 Harden cluster startup error handling
This commit is contained in:
parent
6246099694
commit
5e1913cac2
1 changed files with 5 additions and 2 deletions
|
|
@ -166,9 +166,12 @@ class Cluster(val system: ExtendedActorSystem) extends Extension {
|
|||
Await.result((clusterDaemons ? InternalClusterAction.GetClusterCoreRef).mapTo[ActorRef], timeout.duration)
|
||||
} catch {
|
||||
case NonFatal(e) ⇒
|
||||
log.error(e, "Failed to startup Cluster")
|
||||
log.error(e, "Failed to startup Cluster. You can try to increase 'akka.actor.creation-timeout'.")
|
||||
shutdown()
|
||||
throw e
|
||||
// don't re-throw, that would cause the extension to be re-recreated
|
||||
// from shutdown() or other places, which may result in
|
||||
// InvalidActorNameException: actor name [cluster] is not unique
|
||||
system.deadLetters
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue