marmbrus commented on a change in pull request #25518: [SPARK-26046][SS] Add 
StreamingQueryManager.listListeners()
URL: https://github.com/apache/spark/pull/25518#discussion_r320450356
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/streaming/StreamingQueryManager.scala
 ##########
 @@ -199,6 +199,15 @@ class StreamingQueryManager private[sql] (sparkSession: 
SparkSession) extends Lo
     listenerBus.removeListener(listener)
   }
 
+  /**
+   * Deregister all [[StreamingQueryListener]]s attached to this 
[[StreamingQueryManager]].
+   *
+   * @since 3.0.0
+   */
+  def removeAllListeners(): Unit = {
+    listenerBus.removeAllListeners()
 
 Review comment:
   If use cases like zepplin want isolation between users, then they should use 
the isolation mechanism already present (i.e. `SparkSession.newSession`), right?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to