{"action":"created","issue":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9886","labels_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9886/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9886/comments","events_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9886/events","html_url":"https://github.com/elasticsearch/elasticsearch/pull/9886","id":58947685,"number":9886,"title":"Tests: check node ports availability when using unicast discovery","user":{"login":"jaymode","id":4339958,"avatar_url":"https://avatars.githubusercontent.com/u/4339958?v=3","gravatar_id":"","url":"https://api.github.com/users/jaymode","html_url":"https://github.com/jaymode","followers_url":"https://api.github.com/users/jaymode/followers","following_url":"https://api.github.com/users/jaymode/following{/other_user}","gists_url":"https://api.github.com/users/jaymode/gists{/gist_id}","starred_url":"https://api.github.com/users/jaymode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaymode/subscriptions","organizations_url":"https://api.github.com/users/jaymode/orgs","repos_url":"https://api.github.com/users/jaymode/repos","events_url":"https://api.github.com/users/jaymode/events{/privacy}","received_events_url":"https://api.github.com/users/jaymode/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/labels/review","name":"review","color":"0052cc"},{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/labels/test","name":"test","color":"5319e7"},{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/labels/v1.5.0","name":"v1.5.0","color":"dddddd"},{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/labels/v2.0.0","name":"v2.0.0","color":"dddddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-25T18:27:08Z","updated_at":"2015-02-27T14:24:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/pulls/9886","html_url":"https://github.com/elasticsearch/elasticsearch/pull/9886","diff_url":"https://github.com/elasticsearch/elasticsearch/pull/9886.diff","patch_url":"https://github.com/elasticsearch/elasticsearch/pull/9886.patch"},"body":"Some tests failures are seen when a node attempts to use a port that is already bound\r\nby some other process on the test machine. This commit adds a bind to test port availability\r\nand iterates over the port range until an available port is found. This reduces the likelihood\r\nof a test node failing to start up due to the port already being bound."},"comment":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/comments/76401509","html_url":"https://github.com/elasticsearch/elasticsearch/pull/9886#issuecomment-76401509","issue_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9886","id":76401509,"user":{"login":"bleskes","id":1006375,"avatar_url":"https://avatars.githubusercontent.com/u/1006375?v=3","gravatar_id":"","url":"https://api.github.com/users/bleskes","html_url":"https://github.com/bleskes","followers_url":"https://api.github.com/users/bleskes/followers","following_url":"https://api.github.com/users/bleskes/following{/other_user}","gists_url":"https://api.github.com/users/bleskes/gists{/gist_id}","starred_url":"https://api.github.com/users/bleskes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleskes/subscriptions","organizations_url":"https://api.github.com/users/bleskes/orgs","repos_url":"https://api.github.com/users/bleskes/repos","events_url":"https://api.github.com/users/bleskes/events{/privacy}","received_events_url":"https://api.github.com/users/bleskes/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T14:24:03Z","updated_at":"2015-02-27T14:24:03Z","body":"thx @jaymode - I wonder if we should remember the last port we used and start looking from there? now we start looking from baseport every time so it's likely the first ports we try are still not freed up?"}}