You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/11/16 20:57:11 UTC

[jira] [Commented] (SPARK-11761) Prevent the call to StreamingContext#stop() in the listener bus's thread

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

Apache Spark commented on SPARK-11761:
--------------------------------------

User 'tedyu' has created a pull request for this issue:
https://github.com/apache/spark/pull/9741

> Prevent the call to StreamingContext#stop() in the listener bus's thread
> ------------------------------------------------------------------------
>
>                 Key: SPARK-11761
>                 URL: https://issues.apache.org/jira/browse/SPARK-11761
>             Project: Spark
>          Issue Type: Bug
>          Components: Streaming
>            Reporter: Ted Yu
>
> Quoting Shixiong's comment from https://github.com/apache/spark/pull/9723 :
> {code}
> The user should not call stop or other long-time work in a listener since it will block the listener thread, and prevent from stopping SparkContext/StreamingContext.
> I cannot see an approach since we need to stop the listener bus's thread before stopping SparkContext/StreamingContext totally.
> {code}
> Proposed solution is to prevent the call to StreamingContext#stop() in the listener bus's thread.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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