[SPARK-18975][Core] Add an API to remove SparkListener#16382
Closed
jerryshao wants to merge 1 commit intoapache:masterfrom
Closed
[SPARK-18975][Core] Add an API to remove SparkListener#16382jerryshao wants to merge 1 commit intoapache:masterfrom
jerryshao wants to merge 1 commit intoapache:masterfrom
Conversation
Change-Id: I6aa47c9276866b20ad53dc04b6d11d299a30e690
|
Test build #70511 has started for PR 16382 at commit |
Contributor
Author
|
Jenkins, retest this please. |
|
Test build #70512 has finished for PR 16382 at commit
|
Contributor
|
LGTM |
Contributor
|
Merging in master. |
cmonkey
pushed a commit
to cmonkey/spark
that referenced
this pull request
Dec 24, 2016
## What changes were proposed in this pull request? In current Spark we could add customized SparkListener through `SparkContext#addListener` API, but there's no equivalent API to remove the registered one. In our scenario SparkListener will be added repeatedly accordingly to the changed environment. If lacks the ability to remove listeners, there might be many registered listeners finally, this is unnecessary and potentially affects the performance. So here propose to add an API to remove registered listener. ## How was this patch tested? Add an unit test to verify it. Author: jerryshao <sshao@hortonworks.com> Closes apache#16382 from jerryshao/SPARK-18975.
uzadude
pushed a commit
to uzadude/spark
that referenced
this pull request
Jan 27, 2017
## What changes were proposed in this pull request? In current Spark we could add customized SparkListener through `SparkContext#addListener` API, but there's no equivalent API to remove the registered one. In our scenario SparkListener will be added repeatedly accordingly to the changed environment. If lacks the ability to remove listeners, there might be many registered listeners finally, this is unnecessary and potentially affects the performance. So here propose to add an API to remove registered listener. ## How was this patch tested? Add an unit test to verify it. Author: jerryshao <sshao@hortonworks.com> Closes apache#16382 from jerryshao/SPARK-18975.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
In current Spark we could add customized SparkListener through
SparkContext#addListenerAPI, but there's no equivalent API to remove the registered one. In our scenario SparkListener will be added repeatedly accordingly to the changed environment. If lacks the ability to remove listeners, there might be many registered listeners finally, this is unnecessary and potentially affects the performance. So here propose to add an API to remove registered listener.How was this patch tested?
Add an unit test to verify it.