On Thursday, January 16, 2014 8:42:45 AM UTC, Björn Antonsson wrote:
>
>  Hi Alistair, 
>
> On Thursday, 16 January 2014 at 09:30, Alistair George wrote:
>
> If I set up a watch on a remote actor (one on a remote actor system) and 
> the network between me and the remote system fails, I get a Terminated 
> message almost immediately. In fact, the remote actor hasn't terminated, 
> and I can still use the ActorRef to send messages to it once comms are 
> restored. (However, if comms fail a second time I don't get a second 
> Terminated message.)
>
> "Terminated" and "lost contact" are rather different states, and may need 
> different handling. Does anyone know of a reliable way I can distinguish 
> these? 
>
>
> Which version of Akka are you using?
>
2.2.3
 

> When you say that the network fails, what do you mean? How long is it 
> “failed”?
>
I can simulate a failure is any number of ways - ifdown, unplug 
connections, power down the router. In each case I get the Terminated 
message within about 10 secs (I suspect this would depend on the heartbeat 
settings, but I haven't tried that experiment).

What does the log say?
>
Pretty much what you'd expect:
 [WARN] [01/17/2014 11:40:59.127] 
[RemoteSource-akka.actor.default-dispatcher-15] 
[akka://RemoteSource/system/remote-watcher] Detected unreachable: 
[akka.tcp://RemoteTarget@rho-w:2560]
[INFO] [01/17/2014 11:40:59.162] 
[RemoteSource-akka.actor.default-dispatcher-4] [Remoting] Address 
[akka.tcp://RemoteTarget@rho-w:2560] is now quarantined, all messages to 
this address will be delivered to dead letters.

.. app logging of Terminated message
[INFO] [01/17/2014 11:40:59.215] 
[RemoteSource-akka.actor.default-dispatcher-6] 
[akka://RemoteSource/user/source] 
Terminated(Terminated(Actor[akka.tcp://RemoteTarget@rho-w:2560/user/target#-319450745]))
 
addressTerminated=true existenceConfirmed=false


>
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://akka.io/faq/
>>>>>>>>>>      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/groups/opt_out.

Reply via email to