UnknownHostException is swallowed when telling to remote actor
Situation:
Telling a message to a remote actor with a path to a non-existent hostname.
Problem:
UnknownHostException is swallowed and logged only.
Expected:
Some RemoteLifeCycleEvent published to event stream
Environment:
Akka version: 2.1.4
OS: Windows 7 (x64)
Example code:
Log-Output:
[ERROR] [06/19/2013 15:17:21.196] [akkatestsys-akka.actor.default-dispatcher-4] [akka://akkatestsys@sillyhost:2552/user/RemoteActor] swallowing exception during message send
java.net.UnknownHostException: sillyhost
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258)
at java.net.InetAddress.getAllByName0(InetAddress.java:1211)
at java.net.InetAddress.getAllByName(InetAddress.java:1127)
at java.net.InetAddress.getAllByName(InetAddress.java:1063)
at java.net.InetAddress.getByName(InetAddress.java:1013)
at akka.remote.netty.ActiveRemoteClient$$anonfun$1.apply$mcV$sp(Client.scala:165)
at akka.util.Switch.transcend(LockUtil.scala:27)
at akka.util.Switch.switchOn(LockUtil.scala:48)
at akka.remote.netty.ActiveRemoteClient.connect(Client.scala:150)
at akka.remote.netty.NettyRemoteTransport.send(NettyRemoteSupport.scala:242)
at akka.remote.RemoteActorRef.$bang(RemoteActorRefProvider.scala:260)
at akka.actor.ActorRef.tell(ActorRef.scala:109)
Telling a message to a remote actor with a path to a non-existent hostname.
Problem:
UnknownHostException is swallowed and logged only.
Expected:
Some RemoteLifeCycleEvent published to event stream
Environment:
Akka version: 2.1.4
OS: Windows 7 (x64)
Example code:
String path = "akka://akkatestsys@sillyhost:2552/user/RemoteActor";
ActorRef actorRef = getContext().actorFor(path);
actorRef.tell("hello", self());
Log-Output:
[ERROR] [06/19/2013 15:17:21.196] [akkatestsys-akka.actor.default-dispatcher-4] [akka://akkatestsys@sillyhost:2552/user/RemoteActor] swallowing exception during message send
java.net.UnknownHostException: sillyhost
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258)
at java.net.InetAddress.getAllByName0(InetAddress.java:1211)
at java.net.InetAddress.getAllByName(InetAddress.java:1127)
at java.net.InetAddress.getAllByName(InetAddress.java:1063)
at java.net.InetAddress.getByName(InetAddress.java:1013)
at akka.remote.netty.ActiveRemoteClient$$anonfun$1.apply$mcV$sp(Client.scala:165)
at akka.util.Switch.transcend(LockUtil.scala:27)
at akka.util.Switch.switchOn(LockUtil.scala:48)
at akka.remote.netty.ActiveRemoteClient.connect(Client.scala:150)
at akka.remote.netty.NettyRemoteTransport.send(NettyRemoteSupport.scala:242)
at akka.remote.RemoteActorRef.$bang(RemoteActorRefProvider.scala:260)
at akka.actor.ActorRef.tell(ActorRef.scala:109)
Leave a comment
on 2013-06-19 16:20 *
By RickLatrine
Description changed from Situation:
Telling a messag... to Situation:
Telling a messag...
on 2013-06-20 12:29 *
By RickLatrine
Description changed from Situation:
Telling a messag... to Situation:
Telling a messag...
on 2013-11-22 00:15 *
By viktorklang
This is fixed in 2.2.x, right?