Skip to content

Conversation

@jerryshao
Copy link
Contributor

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.

Change-Id: I6aa47c9276866b20ad53dc04b6d11d299a30e690
@SparkQA
Copy link

SparkQA commented Dec 22, 2016

Test build #70511 has started for PR 16382 at commit 347bb0e.

@jerryshao
Copy link
Contributor Author

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Dec 22, 2016

Test build #70512 has finished for PR 16382 at commit 347bb0e.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor

rxin commented Dec 22, 2016

LGTM

@rxin
Copy link
Contributor

rxin commented Dec 22, 2016

Merging in master.

@asfgit asfgit closed this in 31da755 Dec 22, 2016
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 <[email protected]>

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 <[email protected]>

Closes apache#16382 from jerryshao/SPARK-18975.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants