Publish AddressTerminated after a member is Downed/Removed, see #2779
* Instead of when unreachable * Note that ClusterRouterConfig is not changed, i.e. routees will be removed when unreachable * Routers that are not wrapped by ClusterRouterConfig will watch as usual, i.e. remove routees when Terminated, i.e. node down
This commit is contained in:
parent
fa3a5c97de
commit
1cd3a05f41
3 changed files with 23 additions and 6 deletions
|
|
@ -296,9 +296,16 @@ private[cluster] final class ClusterDomainEventPublisher extends Actor with Acto
|
|||
}
|
||||
publish(event)
|
||||
|
||||
case MemberUnreachable(m) ⇒
|
||||
case MemberDowned(m) ⇒
|
||||
// TODO this case might be collapsed with MemberRemoved, see ticket #2788
|
||||
// but right now we don't change Downed to Removed
|
||||
publish(event)
|
||||
// notify DeathWatch about unreachable node
|
||||
// notify DeathWatch about downed node
|
||||
publish(AddressTerminated(m.address))
|
||||
|
||||
case MemberRemoved(m) ⇒
|
||||
publish(event)
|
||||
// notify DeathWatch about removed node
|
||||
publish(AddressTerminated(m.address))
|
||||
|
||||
case _ ⇒
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue