Merge pull request #20828 from choffmeister/choffmeister-20826-unregister-leaving-distributed-pubsub-nodes
Remove distributed pubsub nodes on leave
This commit is contained in:
commit
f0f755bf08
1 changed files with 6 additions and 0 deletions
|
|
@ -676,6 +676,12 @@ class DistributedPubSubMediator(settings: DistributedPubSubSettings) extends Act
|
||||||
if (matchingRole(m))
|
if (matchingRole(m))
|
||||||
nodes += m.address
|
nodes += m.address
|
||||||
|
|
||||||
|
case MemberLeft(m) ⇒
|
||||||
|
if (matchingRole(m)) {
|
||||||
|
nodes -= m.address
|
||||||
|
registry -= m.address
|
||||||
|
}
|
||||||
|
|
||||||
case MemberRemoved(m, _) ⇒
|
case MemberRemoved(m, _) ⇒
|
||||||
if (m.address == selfAddress)
|
if (m.address == selfAddress)
|
||||||
context stop self
|
context stop self
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue