That is the correct behavior. When the actor is restarted by the supervisor
the Terminated message is not sent. Even the UUID of the actor instance
does not change.

You could send a message to the interested parties from the actor's that is
being restarted one of the life-cycle hooks. You can read more what
life-cycle hooks are being called on actor restart in the documentation
<http://doc.akka.io/docs/akka/2.3.9/general/supervision.html#supervision-restart>
.

On Mon, Jan 19, 2015 at 3:45 AM, Dmitry Semenov <[email protected]>
wrote:

> Hello colleagues.
>
> I observe some behavior which seems odd for me. When i create an actor and
> it's child and start death watching on parent actor, i may or i may not
> receive Terminated message in death watcher depending of what supervisor
> strategy has been chosen.
>
> If Stop selected death watcher receive Terminated as expected, when
> Restart - it doesn't.
>
> I've written a small test case o reproduce this issue, you can follow the
> link bellow
>
> Test case <https://gist.github.com/semenodm/d9f48a97d16cc8fece77>
>
> I wonder if it desired behavior or not? If it desired, then how can i
> handle actor termination in case Restart strategy chosen? In my actor
> system i need to register any actor failure regardless of what supervisor
> strategy has been selected, i need the fact of termination and actor
> reference (path)
> Thanks
>
> --
> >>>>>>>>>> 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.
>



-- 
Martynas Mickevičius
Typesafe <http://typesafe.com/> – Reactive
<http://www.reactivemanifesto.org/> Apps on the JVM

-- 
>>>>>>>>>>      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