{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/influxdb/issues/6031","repository_url":"https://api.github.com/repos/influxdata/influxdb","labels_url":"https://api.github.com/repos/influxdata/influxdb/issues/6031/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/influxdb/issues/6031/comments","events_url":"https://api.github.com/repos/influxdata/influxdb/issues/6031/events","html_url":"https://github.com/influxdata/influxdb/pull/6031","id":141322477,"number":6031,"title":"[0.11] Can't start cluster if peer hostname can't be resolved at startup","user":{"login":"PierreF","id":359833,"avatar_url":"https://avatars.githubusercontent.com/u/359833?v=3","gravatar_id":"","url":"https://api.github.com/users/PierreF","html_url":"https://github.com/PierreF","followers_url":"https://api.github.com/users/PierreF/followers","following_url":"https://api.github.com/users/PierreF/following{/other_user}","gists_url":"https://api.github.com/users/PierreF/gists{/gist_id}","starred_url":"https://api.github.com/users/PierreF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierreF/subscriptions","organizations_url":"https://api.github.com/users/PierreF/orgs","repos_url":"https://api.github.com/users/PierreF/repos","events_url":"https://api.github.com/users/PierreF/events{/privacy}","received_events_url":"https://api.github.com/users/PierreF/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-16T16:13:23Z","updated_at":"2016-04-25T14:53:32Z","closed_at":"2016-04-25T14:53:32Z","pull_request":{"url":"https://api.github.com/repos/influxdata/influxdb/pulls/6031","html_url":"https://github.com/influxdata/influxdb/pull/6031","diff_url":"https://github.com/influxdata/influxdb/pull/6031.diff","patch_url":"https://github.com/influxdata/influxdb/pull/6031.patch"},"body":"If starting InfluxDB with -join parameter and that some peer are not resolvable at InfluxDB startup, InfluxDB exit immedially:\r\n```\r\nnode1$ influxd run -join node1:8091,node2:8091,node3:8091 -hostname $HOSTNAME\r\n2016/03/16 14:35:41 InfluxDB starting, version 0.11.0rc1, branch 0.11, commit 441772e87782c27a679043071f7181f7928bfbb2\r\n2016/03/16 14:35:41 Go version go1.4.3, GOMAXPROCS set to 4\r\n2016/03/16 14:35:42 no configuration provided, using default settings\r\n[meta] 2016/03/16 14:35:42 Starting meta service\r\n[meta] 2016/03/16 14:35:42 Listening on HTTP: [::]:8091\r\n[metastore] 2016/03/16 14:35:42 Using data dir: /root/.influxdb/meta\r\nrun: open server: open meta service: lookup node2: no such host\r\nnode1$\r\n```\r\n\r\nThis is an issue with Docker cluster, the node1 container is created and start InfluxDB immedialy. Since node2 and node3 container are not yet started, node1 exit with the above error.\r\n\r\nI've found that error comes from a call to filterAddr that try to resolve peers name. But if i'm not wrong, this call is useless, since just after we reassign another value to joinPeers.\r\n\r\nSo the PR simply remove this call to filterAddr, which solve my issue. Without this call, InfluxDB will wait to be able to contact node2 and node3, even if it can't initially resolve DNS name node2 or node3.\r\n"},"comment":{"url":"https://api.github.com/repos/influxdata/influxdb/issues/comments/214373318","html_url":"https://github.com/influxdata/influxdb/pull/6031#issuecomment-214373318","issue_url":"https://api.github.com/repos/influxdata/influxdb/issues/6031","id":214373318,"user":{"login":"jwilder","id":219935,"avatar_url":"https://avatars.githubusercontent.com/u/219935?v=3","gravatar_id":"","url":"https://api.github.com/users/jwilder","html_url":"https://github.com/jwilder","followers_url":"https://api.github.com/users/jwilder/followers","following_url":"https://api.github.com/users/jwilder/following{/other_user}","gists_url":"https://api.github.com/users/jwilder/gists{/gist_id}","starred_url":"https://api.github.com/users/jwilder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwilder/subscriptions","organizations_url":"https://api.github.com/users/jwilder/orgs","repos_url":"https://api.github.com/users/jwilder/repos","events_url":"https://api.github.com/users/jwilder/events{/privacy}","received_events_url":"https://api.github.com/users/jwilder/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T14:53:32Z","updated_at":"2016-04-25T14:53:32Z","body":"Closing since clustering has been removed in 0.12.  "}}