diff options
author | jerryshao <sshao@hortonworks.com> | 2016-12-22 11:18:22 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-12-22 11:18:22 -0800 |
commit | 31da755c80aed8219c368fd18c72b42e50be46fc (patch) | |
tree | bfb304a1af3fadacd590e2fae9e7116e64e7a435 /streaming/src | |
parent | 2615100055860faa5f74d3711d4d15ebae6aba25 (diff) | |
download | spark-31da755c80aed8219c368fd18c72b42e50be46fc.tar.gz spark-31da755c80aed8219c368fd18c72b42e50be46fc.tar.bz2 spark-31da755c80aed8219c368fd18c72b42e50be46fc.zip |
[SPARK-18975][CORE] Add an API to remove SparkListener
## 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 #16382 from jerryshao/SPARK-18975.
Diffstat (limited to 'streaming/src')
0 files changed, 0 insertions, 0 deletions