{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/5722","labels_url":"https://api.github.com/repos/apache/spark/issues/5722/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/5722/comments","events_url":"https://api.github.com/repos/apache/spark/issues/5722/events","html_url":"https://github.com/apache/spark/pull/5722","id":71302320,"number":5722,"title":"[SPARK-4449][Core]Specify port range in spark","user":{"login":"WangTaoTheTonic","id":5276001,"avatar_url":"https://avatars.githubusercontent.com/u/5276001?v=3","gravatar_id":"","url":"https://api.github.com/users/WangTaoTheTonic","html_url":"https://github.com/WangTaoTheTonic","followers_url":"https://api.github.com/users/WangTaoTheTonic/followers","following_url":"https://api.github.com/users/WangTaoTheTonic/following{/other_user}","gists_url":"https://api.github.com/users/WangTaoTheTonic/gists{/gist_id}","starred_url":"https://api.github.com/users/WangTaoTheTonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WangTaoTheTonic/subscriptions","organizations_url":"https://api.github.com/users/WangTaoTheTonic/orgs","repos_url":"https://api.github.com/users/WangTaoTheTonic/repos","events_url":"https://api.github.com/users/WangTaoTheTonic/events{/privacy}","received_events_url":"https://api.github.com/users/WangTaoTheTonic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":103,"created_at":"2015-04-27T14:36:42Z","updated_at":"2015-07-03T02:08:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/5722","html_url":"https://github.com/apache/spark/pull/5722","diff_url":"https://github.com/apache/spark/pull/5722.diff","patch_url":"https://github.com/apache/spark/pull/5722.patch"},"body":"Based on https://github.com/apache/spark/pull/3314, use a range for port retry per @sowen @tgravescs 's comments.\r\n\r\nWith lots of signature of function changed, user can set \"spark.*.port\" to a string like \"a:b\" in which \"a\" represents the minimum port services will start on and \"b\" the maximum.\r\n\r\nIn the meantime it still gurantee the backward-compatibility which means user can still use a single number as ports' value.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/118211126","html_url":"https://github.com/apache/spark/pull/5722#issuecomment-118211126","issue_url":"https://api.github.com/repos/apache/spark/issues/5722","id":118211126,"user":{"login":"WangTaoTheTonic","id":5276001,"avatar_url":"https://avatars.githubusercontent.com/u/5276001?v=3","gravatar_id":"","url":"https://api.github.com/users/WangTaoTheTonic","html_url":"https://github.com/WangTaoTheTonic","followers_url":"https://api.github.com/users/WangTaoTheTonic/followers","following_url":"https://api.github.com/users/WangTaoTheTonic/following{/other_user}","gists_url":"https://api.github.com/users/WangTaoTheTonic/gists{/gist_id}","starred_url":"https://api.github.com/users/WangTaoTheTonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WangTaoTheTonic/subscriptions","organizations_url":"https://api.github.com/users/WangTaoTheTonic/orgs","repos_url":"https://api.github.com/users/WangTaoTheTonic/repos","events_url":"https://api.github.com/users/WangTaoTheTonic/events{/privacy}","received_events_url":"https://api.github.com/users/WangTaoTheTonic/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T02:08:26Z","updated_at":"2015-07-03T02:08:26Z","body":"@andrewor14 There are two motivations about this, first is mention in https://github.com/apache/spark/pull/3314, we would like to control the retry range when user set some port to 0, but @srowen came up this idea which is setting each port to a range.\r\n\r\nThe other motivation is mentioned in https://github.com/apache/spark/pull/5657. When we start a public port on a specified setting, it better not to retry becasue once the retry happens client will fail to connect it."}}