HeartSaVioR commented on a change in pull request #26201: [SPARK-29543][SS][UI]
Init structured streaming ui
URL: https://github.com/apache/spark/pull/26201#discussion_r348941680
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/streaming/StreamingQueryManager.scala
##########
@@ -393,7 +392,7 @@ class StreamingQueryManager private[sql] (sparkSession:
SparkSession) extends Lo
private def unregisterTerminatedStream(terminatedQueryId: UUID): Unit = {
activeQueriesLock.synchronized {
// remove from shared state only if the streaming query manager also
matches
-
sparkSession.sharedState.activeStreamingQueries.remove(terminatedQueryId, this)
+ sparkSession.sharedState.streamQueryStore.terminate(terminatedQueryId)
Review comment:
Please rebase your PR with latest master branch - the code has been changed.
And the logic is not same - if `remove` is called with both key and value, the
pair is removed only if the value for the key "equals" with given value. The
changed logic is not accounting the isolation among sessions.
----------------------------------------------------------------
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]