{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/22811962","id":22811962,"diff_hunk":"@@ -213,6 +216,7 @@ class CoarseGrainedSchedulerBackend(scheduler: TaskSchedulerImpl, val actorSyste\n           totalCoreCount.addAndGet(-executorInfo.totalCores)\n           totalRegisteredExecutors.addAndGet(-1)\n           scheduler.executorLost(executorId, SlaveLost(reason))\n+          listenerBus.post(SparkListenerExecutorRemoved(executorId))","path":"core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala","position":30,"original_position":30,"commit_id":"946d2c52f0e1db32c4a041b2f62e8b0a71fd9fec","original_commit_id":"946d2c52f0e1db32c4a041b2f62e8b0a71fd9fec","user":{"login":"pwendell","id":320616,"avatar_url":"https://avatars.githubusercontent.com/u/320616?v=3","gravatar_id":"","url":"https://api.github.com/users/pwendell","html_url":"https://github.com/pwendell","followers_url":"https://api.github.com/users/pwendell/followers","following_url":"https://api.github.com/users/pwendell/following{/other_user}","gists_url":"https://api.github.com/users/pwendell/gists{/gist_id}","starred_url":"https://api.github.com/users/pwendell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwendell/subscriptions","organizations_url":"https://api.github.com/users/pwendell/orgs","repos_url":"https://api.github.com/users/pwendell/repos","events_url":"https://api.github.com/users/pwendell/events{/privacy}","received_events_url":"https://api.github.com/users/pwendell/received_events","type":"User","site_admin":false},"body":"@ksakellis that seems like a good idea actually.","created_at":"2015-01-12T18:54:14Z","updated_at":"2015-01-12T18:54:14Z","html_url":"https://github.com/apache/spark/pull/3711#discussion_r22811962","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/3711","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/22811962"},"html":{"href":"https://github.com/apache/spark/pull/3711#discussion_r22811962"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/3711"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/3711","id":26131221,"html_url":"https://github.com/apache/spark/pull/3711","diff_url":"https://github.com/apache/spark/pull/3711.diff","patch_url":"https://github.com/apache/spark/pull/3711.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/3711","number":3711,"state":"open","locked":false,"title":"[SPARK-4857] [CORE] Adds Executor membership events to SparkListener","user":{"login":"ksakellis","id":6590087,"avatar_url":"https://avatars.githubusercontent.com/u/6590087?v=3","gravatar_id":"","url":"https://api.github.com/users/ksakellis","html_url":"https://github.com/ksakellis","followers_url":"https://api.github.com/users/ksakellis/followers","following_url":"https://api.github.com/users/ksakellis/following{/other_user}","gists_url":"https://api.github.com/users/ksakellis/gists{/gist_id}","starred_url":"https://api.github.com/users/ksakellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksakellis/subscriptions","organizations_url":"https://api.github.com/users/ksakellis/orgs","repos_url":"https://api.github.com/users/ksakellis/repos","events_url":"https://api.github.com/users/ksakellis/events{/privacy}","received_events_url":"https://api.github.com/users/ksakellis/received_events","type":"User","site_admin":false},"body":"Adds onExecutorAdded and onExecutorRemoved events to the SparkListener. This will allow a client to get notified when an executor has been added/removed and provide additional information such as how many vcores it is consuming.\r\n\r\nIn addition, this commit adds a SparkListenerAdapter to the Java API that provides default implementations to the SparkListener. This is to get around the fact that default implementations for traits don't work in Java. Having Java clients extend SparkListenerAdapter moving forward will prevent breakage in java when we add new events to SparkListener.","created_at":"2014-12-16T09:04:15Z","updated_at":"2015-01-12T18:54:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0ca4bcb8f0e64c36efef8250a1ed34408bd8387","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/3711/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/3711/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments/{number}","comments_url":"https://api.github.com/repos/apache/spark/issues/3711/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/946d2c52f0e1db32c4a041b2f62e8b0a71fd9fec","head":{"label":"ksakellis:kostas-spark-4857","ref":"kostas-spark-4857","sha":"946d2c52f0e1db32c4a041b2f62e8b0a71fd9fec","user":{"login":"ksakellis","id":6590087,"avatar_url":"https://avatars.githubusercontent.com/u/6590087?v=3","gravatar_id":"","url":"https://api.github.com/users/ksakellis","html_url":"https://github.com/ksakellis","followers_url":"https://api.github.com/users/ksakellis/followers","following_url":"https://api.github.com/users/ksakellis/following{/other_user}","gists_url":"https://api.github.com/users/ksakellis/gists{/gist_id}","starred_url":"https://api.github.com/users/ksakellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksakellis/subscriptions","organizations_url":"https://api.github.com/users/ksakellis/orgs","repos_url":"https://api.github.com/users/ksakellis/repos","events_url":"https://api.github.com/users/ksakellis/events{/privacy}","received_events_url":"https://api.github.com/users/ksakellis/received_events","type":"User","site_admin":false},"repo":{"id":23167909,"name":"spark","full_name":"ksakellis/spark","owner":{"login":"ksakellis","id":6590087,"avatar_url":"https://avatars.githubusercontent.com/u/6590087?v=3","gravatar_id":"","url":"https://api.github.com/users/ksakellis","html_url":"https://github.com/ksakellis","followers_url":"https://api.github.com/users/ksakellis/followers","following_url":"https://api.github.com/users/ksakellis/following{/other_user}","gists_url":"https://api.github.com/users/ksakellis/gists{/gist_id}","starred_url":"https://api.github.com/users/ksakellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksakellis/subscriptions","organizations_url":"https://api.github.com/users/ksakellis/orgs","repos_url":"https://api.github.com/users/ksakellis/repos","events_url":"https://api.github.com/users/ksakellis/events{/privacy}","received_events_url":"https://api.github.com/users/ksakellis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ksakellis/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/ksakellis/spark","forks_url":"https://api.github.com/repos/ksakellis/spark/forks","keys_url":"https://api.github.com/repos/ksakellis/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ksakellis/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ksakellis/spark/teams","hooks_url":"https://api.github.com/repos/ksakellis/spark/hooks","issue_events_url":"https://api.github.com/repos/ksakellis/spark/issues/events{/number}","events_url":"https://api.github.com/repos/ksakellis/spark/events","assignees_url":"https://api.github.com/repos/ksakellis/spark/assignees{/user}","branches_url":"https://api.github.com/repos/ksakellis/spark/branches{/branch}","tags_url":"https://api.github.com/repos/ksakellis/spark/tags","blobs_url":"https://api.github.com/repos/ksakellis/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ksakellis/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ksakellis/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/ksakellis/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ksakellis/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/ksakellis/spark/languages","stargazers_url":"https://api.github.com/repos/ksakellis/spark/stargazers","contributors_url":"https://api.github.com/repos/ksakellis/spark/contributors","subscribers_url":"https://api.github.com/repos/ksakellis/spark/subscribers","subscription_url":"https://api.github.com/repos/ksakellis/spark/subscription","commits_url":"https://api.github.com/repos/ksakellis/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/ksakellis/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/ksakellis/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/ksakellis/spark/issues/comments/{number}","contents_url":"https://api.github.com/repos/ksakellis/spark/contents/{+path}","compare_url":"https://api.github.com/repos/ksakellis/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ksakellis/spark/merges","archive_url":"https://api.github.com/repos/ksakellis/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ksakellis/spark/downloads","issues_url":"https://api.github.com/repos/ksakellis/spark/issues{/number}","pulls_url":"https://api.github.com/repos/ksakellis/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/ksakellis/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/ksakellis/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ksakellis/spark/labels{/name}","releases_url":"https://api.github.com/repos/ksakellis/spark/releases{/id}","created_at":"2014-08-20T23:45:14Z","updated_at":"2015-01-12T18:13:20Z","pushed_at":"2015-01-12T18:13:19Z","git_url":"git://github.com/ksakellis/spark.git","ssh_url":"git@github.com:ksakellis/spark.git","clone_url":"https://github.com/ksakellis/spark.git","svn_url":"https://github.com/ksakellis/spark","homepage":null,"size":86193,"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":"d345ebebd554ac3faa4e870bd7800ed02e89da58","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-01-12T18:47:37Z","pushed_at":"2015-01-12T18:51:34Z","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":1112186,"stargazers_count":2534,"watchers_count":2534,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2248,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":290,"forks":2248,"open_issues":290,"watchers":2534,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/3711"},"html":{"href":"https://github.com/apache/spark/pull/3711"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/3711"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/3711/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/3711/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/3711/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/946d2c52f0e1db32c4a041b2f62e8b0a71fd9fec"}}}}