On Fri, Apr 14, 2017 at 10:39 AM, David <massart.da...@gmail.com> wrote:
> I am still interested in knowing if there is a way for the system1 > application to be notified of the akka.remote.ShutDownAssociation event > so that it can trigger some cleanup after losing the remote actor. Looking > at the log, all the information needed is there but how can I access it? > I think you can subscribe to association errors using http://doc.akka.io/docs/akka/current/scala/remoting.html#Remote_Events Kind regards, Arnout > On Sunday, April 9, 2017 at 2:24:57 PM UTC+2, Patrik Nordwall wrote: >> >> system1 doesn't crash, that is just a harmless log message, or do you see >> anything that actually doesn't work in system1 after that? >> >> /Patrik >> sön 9 apr. 2017 kl. 13:25 skrev David <massar...@gmail.com>: >> >>> Hello, >>> >>> I am using Akka remote 2.4.17 with Scala 2.12.1 >>> >>> I have two actor systems: system1 and system2 >>> >>> An actor1 is created on system1 and an actor2 is created on system2 >>> >>> actor2 looks up actor1 and they exchange messages. >>> >>> At some point, I shut down system2 and system1 crashes with the >>> following error message: >>> >>> [error] a.r.EndpointWriter - AssociationError [akka.tcp:// >>> system1@127.0.0.1:2552] <- [akka.tcp://system2@127.0.0.1:2553]: Error >>> [Shut down address: akka.tcp://system2@127.0.0.1:2553] [ >>> akka.remote.ShutDownAssociation: Shut down address: akka.tcp:// >>> system2@127.0.0.1:2553 >>> Caused by: akka.remote.transport.Transport$InvalidAssociationException: >>> The remote system terminated the association because it is shutting down. >>> ] >>> >>> What should I to ensure that system1 stays up and running when system2 >>> goes down? >>> >>> Thanks, >>> >>> David >>> >>> >>> -- >>> >>>>>>>>>> Read the docs: http://akka.io/docs/ >>> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/c >>> urrent/additional/faq.html >>> >>>>>>>>>> Search the archives: https://groups.google.com/grou >>> p/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. >>> To post to this group, send email to akka...@googlegroups.com. >>> Visit this group at https://groups.google.com/group/akka-user. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > >>>>>>>>>> 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 https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Arnout Engelen *Senior Software Engineer* E: arnout.enge...@lightbend.com T: https://twitter.com/raboofje -- >>>>>>>>>> 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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.