spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shixiong Zhu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-19594) StreamingQueryListener fails to handle QueryTerminatedEvent if more then one listeners exists
Date Wed, 15 Feb 2017 19:52:41 GMT

    [ https://issues.apache.org/jira/browse/SPARK-19594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15868469#comment-15868469
] 

Shixiong Zhu commented on SPARK-19594:
--------------------------------------

I suggest that overriding "def postToAll(event: E)" and remove the query id after all listeners
process the event.

> StreamingQueryListener fails to handle QueryTerminatedEvent if more then one listeners
exists
> ---------------------------------------------------------------------------------------------
>
>                 Key: SPARK-19594
>                 URL: https://issues.apache.org/jira/browse/SPARK-19594
>             Project: Spark
>          Issue Type: Bug
>          Components: Structured Streaming
>    Affects Versions: 2.1.0
>            Reporter: Eyal Zituny
>            Priority: Minor
>
> reproduce:
> *create a spark session
> *add multiple streaming query listeners
> *create a simple query
> *stop the query
> result -> only the first listener handle the QueryTerminatedEvent
> this might happen because the query run id is being removed from activeQueryRunIds once
the onQueryTerminated is called (StreamingQueryListenerBus:115)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message