[ 
https://issues.apache.org/jira/browse/SPARK-26046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mukul Murthy reopened SPARK-26046:
----------------------------------

>From some other discussions I've had, I actually think it's a reasonable to 
>have a way to remove all listeners. I don't think it should be a 
>removeAllListeners API, as originally discussed, but StreamingQueryManager 
>could have a listListeners API which the caller could then choose to use to 
>remove each listener manually. 

> Add a way for StreamingQueryManager to remove all listeners
> -----------------------------------------------------------
>
>                 Key: SPARK-26046
>                 URL: https://issues.apache.org/jira/browse/SPARK-26046
>             Project: Spark
>          Issue Type: Task
>          Components: Structured Streaming
>    Affects Versions: 2.4.0
>            Reporter: Mukul Murthy
>            Priority: Major
>
> StreamingQueryManager should have a way to clear out all listeners. There's 
> addListener(listener) and removeListener(listener), but not 
> removeAllListeners. We should expose a new method removeAllListeners() that 
> calls listenerBus.removeAllListeners (added here: 
> [https://github.com/apache/spark/commit/9690eba16efe6d25261934d8b73a221972b684f3]).
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to