{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-tinkerpop/issues/265","repository_url":"https://api.github.com/repos/apache/incubator-tinkerpop","labels_url":"https://api.github.com/repos/apache/incubator-tinkerpop/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-tinkerpop/issues/265/comments","events_url":"https://api.github.com/repos/apache/incubator-tinkerpop/issues/265/events","html_url":"https://github.com/apache/incubator-tinkerpop/pull/265","id":141188497,"number":265,"title":"When hosts configured incorrectly, causing problems not connect services","user":{"login":"okuc","id":2579094,"avatar_url":"https://avatars.githubusercontent.com/u/2579094?v=3","gravatar_id":"","url":"https://api.github.com/users/okuc","html_url":"https://github.com/okuc","followers_url":"https://api.github.com/users/okuc/followers","following_url":"https://api.github.com/users/okuc/following{/other_user}","gists_url":"https://api.github.com/users/okuc/gists{/gist_id}","starred_url":"https://api.github.com/users/okuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okuc/subscriptions","organizations_url":"https://api.github.com/users/okuc/orgs","repos_url":"https://api.github.com/users/okuc/repos","events_url":"https://api.github.com/users/okuc/events{/privacy}","received_events_url":"https://api.github.com/users/okuc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-16T06:45:35Z","updated_at":"2016-03-16T13:47:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-tinkerpop/pulls/265","html_url":"https://github.com/apache/incubator-tinkerpop/pull/265","diff_url":"https://github.com/apache/incubator-tinkerpop/pull/265.diff","patch_url":"https://github.com/apache/incubator-tinkerpop/pull/265.patch"},"body":"Mainly to solve the following problem:\r\n\r\nI have two machines, machine name and ip as follows:\r\n\r\n```\r\n           ip                             hostname\r\n192.168.1.1                         host11\r\n192.168.1.2                         host12\r\n\r\n```\r\nI start gremlin-server on 192.168.1.1, and then access on 192.168.1.2.\r\n\r\nBut for some reason, the hosts file on the 192.168.1.2 is not configured correctly, as follows:\r\n\r\n`192.168.1.1 host33`\r\n\r\nSo I'm on the 192.168.1.2, it will report an error when accessing the gremlin-server. My statement is as follows access\r\n\r\n```\r\n  Builder builder = Cluster.build ( \"192.168.1.1\");\r\n  Cluster cluster = builder.create ();\r\n  Client client = cluster.connect ();\r\n  ResultSet results = client.submit ( \"[1,2,3,4]\");\r\n  results.stream () forEach (System.out :: println).;\r\n```\r\nIt reported the following error:\r\n\r\n```\r\nException in thread \"main\" java.lang.RuntimeException: java.lang.RuntimeException: java.util.concurrent.TimeoutException: Timed out waiting for an available host.\r\nat org.apache.tinkerpop.gremlin.driver.Client.submit (Client.java:146)\r\nat org.apache.tinkerpop.gremlin.driver.Client.submit (Client.java:130)\r\nat com.okuc.graph.hello.remote.main (remote.java:27)\r\nCaused by: java.lang.RuntimeException: java.util.concurrent.TimeoutException: Timed out waiting for an available host.\r\nat org.apache.tinkerpop.gremlin.driver.Client.submitAsync (Client.java:194)\r\nat org.apache.tinkerpop.gremlin.driver.Client.submitAsync (Client.java:174)\r\nat org.apache.tinkerpop.gremlin.driver.Client.submit (Client.java:144)\r\n... 2 more\r\nCaused by: java.util.concurrent.TimeoutException: Timed out waiting for an available host.\r\nat org.apache.tinkerpop.gremlin.driver.Client $ ClusteredClient.chooseConnection (Client.java:342)\r\nat org.apache.tinkerpop.gremlin.driver.Client.submitAsync (Client.java:189)\r\n... 4 more\r\n```"},"comment":{"url":"https://api.github.com/repos/apache/incubator-tinkerpop/issues/comments/197340229","html_url":"https://github.com/apache/incubator-tinkerpop/pull/265#issuecomment-197340229","issue_url":"https://api.github.com/repos/apache/incubator-tinkerpop/issues/265","id":197340229,"user":{"login":"spmallette","id":384249,"avatar_url":"https://avatars.githubusercontent.com/u/384249?v=3","gravatar_id":"","url":"https://api.github.com/users/spmallette","html_url":"https://github.com/spmallette","followers_url":"https://api.github.com/users/spmallette/followers","following_url":"https://api.github.com/users/spmallette/following{/other_user}","gists_url":"https://api.github.com/users/spmallette/gists{/gist_id}","starred_url":"https://api.github.com/users/spmallette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spmallette/subscriptions","organizations_url":"https://api.github.com/users/spmallette/orgs","repos_url":"https://api.github.com/users/spmallette/repos","events_url":"https://api.github.com/users/spmallette/events{/privacy}","received_events_url":"https://api.github.com/users/spmallette/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T13:47:47Z","updated_at":"2016-03-16T13:47:47Z","body":"looks like you merged 'master' into 'tp31 as part of this.....see the last commit listed - maybe that's what this is."}}