Thank you very much, that explain my issue!

I am still not sure if WriteMessageSuccessful can arrive after the actor is 
stopped. I can find no reference to it in the docs...

I will find out after running code with PoisonPill instead of stop(self()), 
I guess!

Thank you!

Anders

mandag 2. mars 2015 15.54.36 UTC+1 skrev Björn Antonsson følgende:
>
> Hi Anders,
>
> How are you stopping your actor. There is a difference between 
> system.stop(actorRef) and actorRef ! PoisonPill.
>
> Calling stop is more direct and will as you say send a message, but that 
> is an internal system message that will cut the line and be processed 
> before normal actor messages.
>
> If you on the other hand sends the actor a PoisonPill, it will process all 
> messages that it has in the inbox up until the PoisonPill, and then shut 
> down. Please note that there can of course be messages enqueued after the 
> PoisonPill that won't be handled.
>
> B/
>
> On 27 February 2015 at 13:26:30, Anders Båtstrand (ande...@gmail.com 
> <javascript:>) wrote:
>
> Dear users
>
> Sometimes I find dead letter JournalProtocol#WriteMessageSuccessful in my 
> logs, after I have stopped my actor.
>
> As I understand it, stop involves a message send, so all write operations 
> should be finished before the actor is stopped. How is it still possible to 
> get this message AFTER my actor is gone?
>
> Regards, Anders
> --
> >>>>>>>>>> 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 akka-user+...@googlegroups.com <javascript:>.
> To post to this group, send email to akka...@googlegroups.com 
> <javascript:>.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> Björn Antonsson
> Typesafe Inc. <http://typesafe.com> – Reactive Apps on the JVM
> twitter: bantonsson <http://twitter.com/bantonsson>
>
> JOIN US. REGISTER TODAY! 
> <http://event.scaladays.org/scaladays-sanfran-2015>
> Scala <http://event.scaladays.org/scaladays-sanfran-2015>
> Days <http://event.scaladays.org/scaladays-sanfran-2015>
> March 16th-18th, <http://event.scaladays.org/scaladays-sanfran-2015>
> San Francisco <http://event.scaladays.org/scaladays-sanfran-2015>
>

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
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