mukulmurthy commented on a change in pull request #25518: [SPARK-26046][SS] Add
StreamingQueryManager.removeAllListeners()
URL: https://github.com/apache/spark/pull/25518#discussion_r316337069
##########
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:
Hi @HyukjinKwon, thanks for sharing your concerns. I've looked through this
and I agree with you; I think I'm trying to use this as a workaround for not
properly keeping track of my streaming query listeners. At some point in the
future this may still be a useful thing to expose but for now I'll close this
PR.
cc @jose-torres
----------------------------------------------------------------
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]