On Wed, Apr 15, 2015 at 8:16 AM, Wolfgang Friedl <
[email protected]> wrote:

> Hi again!
>
> Out of interest, how is it possible to receive a terminated messages from
> Nodes which are still running?
>

It watched an actor that was running on a node (ActorSystem) that was part
of the cluster, and when that node is removed from the cluster death watch
will trigger. The lifecycle of the actor itself and the ActorSystem for
that matter is not tied to the cluster membership, by default. That is the
bug in this case. Actors started by cluster sharding must be stopped when
the node is removed from the cluster.


> First I suspected that maybe the leave-command causes a terminated message
> if a watch an actor on a different Node, but my tests showed that this is
> not the case, so why is this the case for ShardRegions? I didn't find
> anything suspicious in the code of the ShardRegion? So maybe you can
> enlighten me I'm really curious ;)
>

The missing code is that when it receives MemberRemoved with its own
address it should context.stop(self).

/Patrik


>
> Regards
>
> Wolfgang
>
>
> Am Mittwoch, 15. April 2015 08:01:21 UTC+2 schrieb Wolfgang Friedl:
>>
>> Hi Patrik!
>>
>> I've created an issue for this.
>> Thanks for the fast reply.
>>
>> Wolfgang
>>
>>   --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to