{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka/issues/20463","repository_url":"https://api.github.com/repos/akka/akka","labels_url":"https://api.github.com/repos/akka/akka/issues/20463/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/20463/comments","events_url":"https://api.github.com/repos/akka/akka/issues/20463/events","html_url":"https://github.com/akka/akka/issues/20463","id":153402702,"number":20463,"title":"Principle of least astonishment violation with hostname resolution in Akka Remoting","user":{"login":"dhpiggott","id":6965859,"avatar_url":"https://avatars.githubusercontent.com/u/6965859?v=3","gravatar_id":"","url":"https://api.github.com/users/dhpiggott","html_url":"https://github.com/dhpiggott","followers_url":"https://api.github.com/users/dhpiggott/followers","following_url":"https://api.github.com/users/dhpiggott/following{/other_user}","gists_url":"https://api.github.com/users/dhpiggott/gists{/gist_id}","starred_url":"https://api.github.com/users/dhpiggott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhpiggott/subscriptions","organizations_url":"https://api.github.com/users/dhpiggott/orgs","repos_url":"https://api.github.com/users/dhpiggott/repos","events_url":"https://api.github.com/users/dhpiggott/events{/privacy}","received_events_url":"https://api.github.com/users/dhpiggott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-06T08:26:04Z","updated_at":"2016-05-06T09:06:20Z","closed_at":null,"body":"I can configure Akka Remoting to listen on a hostname like \"fakefakefake\", and I'm then able to successfully send messages from one actor to another on the same node via an absolute path that contains the unresolvable hostname -- e.g. \"akka.tcp://RemoteSystem@fakefakefake:2552/user/EchoActor\".\r\n\r\nI've put together a minimal test case to demonstrate this -- it's published here: https://gist.github.com/dhpiggott/a39c5b92a85c12e67b970ee49a1b4185.\r\n\r\nThe first test will fail because I'm asserting there that the observed behaviour should not happen.\r\n\r\nI then stepped through that first test's execution with a breakpoint to trace the cause deeper within Akka Remoting. For ease of communication I've converted the observations I made while doing so into a second test that makes some assertions about Akka's internal state via reflection.\r\n\r\nThis second test will also fail because I'm again asserting there that some of the observed behaviour should not happen.\r\n\r\nI did search for documentation that would confirm what the behaviour should actually be but couldn't find anything.\r\n\r\nI see the question as this: is the observed behaviour as things are intended to be? I note on the one hand that the observed behaviour is potentially very useful, but on the other hand, it can also be quite surprising.\r\n\r\nI should point out that I originally posted at https://groups.google.com/forum/#!topic/akka-user/DB7NbNq7AZQ. I've proceeded with creating this issue because I think that whatever the answer is, there is an improvement that could be made; if this is the way it's meant to be, the documentation could be improved."},"comment":{"url":"https://api.github.com/repos/akka/akka/issues/comments/217391166","html_url":"https://github.com/akka/akka/issues/20463#issuecomment-217391166","issue_url":"https://api.github.com/repos/akka/akka/issues/20463","id":217391166,"user":{"login":"drewhk","id":932285,"avatar_url":"https://avatars.githubusercontent.com/u/932285?v=3","gravatar_id":"","url":"https://api.github.com/users/drewhk","html_url":"https://github.com/drewhk","followers_url":"https://api.github.com/users/drewhk/followers","following_url":"https://api.github.com/users/drewhk/following{/other_user}","gists_url":"https://api.github.com/users/drewhk/gists{/gist_id}","starred_url":"https://api.github.com/users/drewhk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewhk/subscriptions","organizations_url":"https://api.github.com/users/drewhk/orgs","repos_url":"https://api.github.com/users/drewhk/repos","events_url":"https://api.github.com/users/drewhk/events{/privacy}","received_events_url":"https://api.github.com/users/drewhk/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T09:06:20Z","updated_at":"2016-05-06T09:06:20Z","body":"Adding a note section somewhere does not hurt. Are you willing to make a PR about it?"}}