I am using context.watch in a simple DeathReportActor, Clients send the 
DeathReportActor a Watch message, then when the fated actor dies a 
specified message is sent to the mourner. I want to use this for restarting 
actors with different constructor parameters.  However when I test this 
actor I keep getting intermittent InvalidActorNameExceptions.  

It seems that the actors name is still in use after I receive the 
Terminated message, so sometimes creating an actor straight away results in 
an error.  I thought I was guaranteed to be able to recreate the actor upon 
recipt of the Terminated message, is this correct or do I have bug in my 
code?

Here is a simple gist that reproduces the error.  I have tested with akka 
2.0.5, 2.2.3 and 2.3.1 and get the same results when I retry this operation 
enough times is a very tight loop.

https://gist.github.com/IainHull/10129911

Thanks,
Iain.

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