pekko/akka-contrib/src
Patrik Nordwall c991d5f1d1 =str #17200 Stop shard region when MemberRemoved
Two issues:

1) ShardRegion actor must stop itself when the node is shutting down,
   ie. when receiving MemberRemoved(selfAddress)
2) ShardCoordinator must not persist anything when the node is shutting
   down. MemberRemoved of other shard regions will trigger Terminated,
   which must not be persisted, because then the next coordinator will
   replay those events and end up in wrong state. This is a problem
   announced itself when using leaving as illustrated in the new test.

To solve the second issue I have added a new ClusterShuttingDown event
that is published before the MemberRemoved events. Note that Terminated
is triggered by MemberRemoved.

(cherry picked from commit 1b272c72597beece9d93f0054f4b58e3d25f9ae2)
2015-04-22 12:46:30 +02:00
..
main =str #17200 Stop shard region when MemberRemoved 2015-04-22 12:46:30 +02:00
multi-jvm/scala/akka/contrib/pattern =str #17200 Stop shard region when MemberRemoved 2015-04-22 12:46:30 +02:00
test Changes all occurances of Typesafe copyright to extend to 2015 2015-03-10 14:12:19 -07:00