{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/43668168","id":43668168,"diff_hunk":"@@ -122,6 +123,24 @@ private[ui] class StagePage(parent: StagesTab) extends WebUIPage(\"stage\") {\n       val externalAccumulables = allAccumulables.values.filter { acc => !acc.internal }\n       val hasAccumulators = externalAccumulables.size > 0\n \n+      val tasksLocality = new mutable.HashMap[String, Long]\n+      if (stageData.taskData.size > 0) {\n+        for ((key, value) <- stageData.taskData) {","path":"core/src/main/scala/org/apache/spark/ui/jobs/StagePage.scala","position":14,"original_position":14,"commit_id":"39989f85d4e8f6b74d1c2c2b7f03c1668e437adf","original_commit_id":"39989f85d4e8f6b74d1c2c2b7f03c1668e437adf","user":{"login":"kayousterhout","id":1108612,"avatar_url":"https://avatars.githubusercontent.com/u/1108612?v=3","gravatar_id":"","url":"https://api.github.com/users/kayousterhout","html_url":"https://github.com/kayousterhout","followers_url":"https://api.github.com/users/kayousterhout/followers","following_url":"https://api.github.com/users/kayousterhout/following{/other_user}","gists_url":"https://api.github.com/users/kayousterhout/gists{/gist_id}","starred_url":"https://api.github.com/users/kayousterhout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayousterhout/subscriptions","organizations_url":"https://api.github.com/users/kayousterhout/orgs","repos_url":"https://api.github.com/users/kayousterhout/repos","events_url":"https://api.github.com/users/kayousterhout/events{/privacy}","received_events_url":"https://api.github.com/users/kayousterhout/received_events","type":"User","site_admin":false},"body":"Can you change this to stageData.taskData.values.foreach { taskUiData => .... }","created_at":"2015-11-02T19:16:42Z","updated_at":"2015-11-02T19:16:42Z","html_url":"https://github.com/apache/spark/pull/9117#discussion_r43668168","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/9117","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/43668168"},"html":{"href":"https://github.com/apache/spark/pull/9117#discussion_r43668168"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/9117"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/9117","id":47678403,"html_url":"https://github.com/apache/spark/pull/9117","diff_url":"https://github.com/apache/spark/pull/9117.diff","patch_url":"https://github.com/apache/spark/pull/9117.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/9117","number":9117,"state":"open","locked":false,"title":"SPARK-2533 - Add locality levels (with tasks count) on job stages summary","user":{"login":"jbonofre","id":158903,"avatar_url":"https://avatars.githubusercontent.com/u/158903?v=3","gravatar_id":"","url":"https://api.github.com/users/jbonofre","html_url":"https://github.com/jbonofre","followers_url":"https://api.github.com/users/jbonofre/followers","following_url":"https://api.github.com/users/jbonofre/following{/other_user}","gists_url":"https://api.github.com/users/jbonofre/gists{/gist_id}","starred_url":"https://api.github.com/users/jbonofre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbonofre/subscriptions","organizations_url":"https://api.github.com/users/jbonofre/orgs","repos_url":"https://api.github.com/users/jbonofre/repos","events_url":"https://api.github.com/users/jbonofre/events{/privacy}","received_events_url":"https://api.github.com/users/jbonofre/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-14T15:56:11Z","updated_at":"2015-11-02T19:16:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0ec1e14b74142e898504a7cb988433a262e2e98","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/9117/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/9117/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/9117/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/39989f85d4e8f6b74d1c2c2b7f03c1668e437adf","head":{"label":"jbonofre:SPARK-2533","ref":"SPARK-2533","sha":"39989f85d4e8f6b74d1c2c2b7f03c1668e437adf","user":{"login":"jbonofre","id":158903,"avatar_url":"https://avatars.githubusercontent.com/u/158903?v=3","gravatar_id":"","url":"https://api.github.com/users/jbonofre","html_url":"https://github.com/jbonofre","followers_url":"https://api.github.com/users/jbonofre/followers","following_url":"https://api.github.com/users/jbonofre/following{/other_user}","gists_url":"https://api.github.com/users/jbonofre/gists{/gist_id}","starred_url":"https://api.github.com/users/jbonofre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbonofre/subscriptions","organizations_url":"https://api.github.com/users/jbonofre/orgs","repos_url":"https://api.github.com/users/jbonofre/repos","events_url":"https://api.github.com/users/jbonofre/events{/privacy}","received_events_url":"https://api.github.com/users/jbonofre/received_events","type":"User","site_admin":false},"repo":{"id":41899955,"name":"spark","full_name":"jbonofre/spark","owner":{"login":"jbonofre","id":158903,"avatar_url":"https://avatars.githubusercontent.com/u/158903?v=3","gravatar_id":"","url":"https://api.github.com/users/jbonofre","html_url":"https://github.com/jbonofre","followers_url":"https://api.github.com/users/jbonofre/followers","following_url":"https://api.github.com/users/jbonofre/following{/other_user}","gists_url":"https://api.github.com/users/jbonofre/gists{/gist_id}","starred_url":"https://api.github.com/users/jbonofre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbonofre/subscriptions","organizations_url":"https://api.github.com/users/jbonofre/orgs","repos_url":"https://api.github.com/users/jbonofre/repos","events_url":"https://api.github.com/users/jbonofre/events{/privacy}","received_events_url":"https://api.github.com/users/jbonofre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jbonofre/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/jbonofre/spark","forks_url":"https://api.github.com/repos/jbonofre/spark/forks","keys_url":"https://api.github.com/repos/jbonofre/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbonofre/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbonofre/spark/teams","hooks_url":"https://api.github.com/repos/jbonofre/spark/hooks","issue_events_url":"https://api.github.com/repos/jbonofre/spark/issues/events{/number}","events_url":"https://api.github.com/repos/jbonofre/spark/events","assignees_url":"https://api.github.com/repos/jbonofre/spark/assignees{/user}","branches_url":"https://api.github.com/repos/jbonofre/spark/branches{/branch}","tags_url":"https://api.github.com/repos/jbonofre/spark/tags","blobs_url":"https://api.github.com/repos/jbonofre/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbonofre/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbonofre/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbonofre/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbonofre/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/jbonofre/spark/languages","stargazers_url":"https://api.github.com/repos/jbonofre/spark/stargazers","contributors_url":"https://api.github.com/repos/jbonofre/spark/contributors","subscribers_url":"https://api.github.com/repos/jbonofre/spark/subscribers","subscription_url":"https://api.github.com/repos/jbonofre/spark/subscription","commits_url":"https://api.github.com/repos/jbonofre/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbonofre/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbonofre/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbonofre/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbonofre/spark/contents/{+path}","compare_url":"https://api.github.com/repos/jbonofre/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbonofre/spark/merges","archive_url":"https://api.github.com/repos/jbonofre/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbonofre/spark/downloads","issues_url":"https://api.github.com/repos/jbonofre/spark/issues{/number}","pulls_url":"https://api.github.com/repos/jbonofre/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/jbonofre/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/jbonofre/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbonofre/spark/labels{/name}","releases_url":"https://api.github.com/repos/jbonofre/spark/releases{/id}","created_at":"2015-09-04T05:48:58Z","updated_at":"2015-09-04T05:49:21Z","pushed_at":"2015-11-01T20:08:45Z","git_url":"git://github.com/jbonofre/spark.git","ssh_url":"git@github.com:jbonofre/spark.git","clone_url":"https://github.com/jbonofre/spark.git","svn_url":"https://github.com/jbonofre/spark","homepage":null,"size":128785,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"bd64c2d550c36405f9be25a5c6a8eaa54bf4e7e7","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":17165658,"name":"spark","full_name":"apache/spark","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/spark","description":"Mirror of Apache Spark","fork":false,"url":"https://api.github.com/repos/apache/spark","forks_url":"https://api.github.com/repos/apache/spark/forks","keys_url":"https://api.github.com/repos/apache/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/spark/teams","hooks_url":"https://api.github.com/repos/apache/spark/hooks","issue_events_url":"https://api.github.com/repos/apache/spark/issues/events{/number}","events_url":"https://api.github.com/repos/apache/spark/events","assignees_url":"https://api.github.com/repos/apache/spark/assignees{/user}","branches_url":"https://api.github.com/repos/apache/spark/branches{/branch}","tags_url":"https://api.github.com/repos/apache/spark/tags","blobs_url":"https://api.github.com/repos/apache/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/spark/languages","stargazers_url":"https://api.github.com/repos/apache/spark/stargazers","contributors_url":"https://api.github.com/repos/apache/spark/contributors","subscribers_url":"https://api.github.com/repos/apache/spark/subscribers","subscription_url":"https://api.github.com/repos/apache/spark/subscription","commits_url":"https://api.github.com/repos/apache/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/spark/contents/{+path}","compare_url":"https://api.github.com/repos/apache/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/spark/merges","archive_url":"https://api.github.com/repos/apache/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/spark/downloads","issues_url":"https://api.github.com/repos/apache/spark/issues{/number}","pulls_url":"https://api.github.com/repos/apache/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/spark/labels{/name}","releases_url":"https://api.github.com/repos/apache/spark/releases{/id}","created_at":"2014-02-25T08:00:08Z","updated_at":"2015-11-02T13:25:43Z","pushed_at":"2015-11-02T18:57:08Z","git_url":"git://github.com/apache/spark.git","ssh_url":"git@github.com:apache/spark.git","clone_url":"https://github.com/apache/spark.git","svn_url":"https://github.com/apache/spark","homepage":null,"size":1649128,"stargazers_count":5984,"watchers_count":5984,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5571,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":379,"forks":5571,"open_issues":379,"watchers":5984,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/9117"},"html":{"href":"https://github.com/apache/spark/pull/9117"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/9117"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/9117/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/9117/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/9117/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/39989f85d4e8f6b74d1c2c2b7f03c1668e437adf"}}}}