On Tue, Oct 20, 2015 at 9:06 PM, Gary Wu <[email protected]> wrote: > I'm also interested in this. Have you found a good solution besides doing > string matching on the AssociationError exception message? Ideally there > should be a named Exception to check for. >
Please create an issue <https://github.com/akka/akka/issues>. I think it would be possible to publish another event to the event stream. The fastest way to get such things done is to contribute yourself. Cheers, Patrik > > Thanks, > Gary > > > On Wednesday, September 9, 2015 at 9:13:48 AM UTC-7, Chris Cheung wrote: >> >> How can I detect Quarantined state from within the system being >> quarantined~? >> >> I'm seeing this log below: >> >> [warn] Remoting - Tried to associate with unreachable remote address >>> [akka.tcp://[email protected]:6000]. Address is now gated for >>> 5000 ms, all messages to this address will be delivered to dead letters. >>> Reason: The remote system has quarantined this system. No further >>> associations to the remote system are possible until this system is >>> restarted. >> >> >> but I'm not sure how I can react to this from code. >> >> I found this thread: Recovering from the Quarantined state >> <https://groups.google.com/d/msg/akka-user/sC9PBkC2SME/m_1muhuPqTwJ>, >> suggesting to listen for the *QuarantinedEvent* but that is not >> dispatched on the system *being quarantined*. >> >> And I actually listened for all *RemotingLifecycleEvent*s and found this: >> >> AssociationError [akka.tcp://[email protected]:2552] -> >>> [akka.tcp://[email protected]:6000]: Error [Invalid address: >>> akka.tcp://[email protected]:6000] >>> [akka.remote.InvalidAssociation: Invalid address: akka.tcp:// >>> [email protected]:6000 >>> Caused by: akka.remote.transport.Transport$InvalidAssociationException: >>> The remote system has quarantined this system. No further associations to >>> the remote system are possible until this system is restarted.] >> >> >> but that is just an *AssociationError* which will be dispatched for many >> other reasons as well, do I have to search for the actual text *"The >> remote system has quarantined this system."* within the error to be >> sure?? >> >> Chris >> > -- > >>>>>>>>>> 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.
