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 2016/12/06 22:45:59 UTC

[jira] [Commented] (SPARK-18751) Deadlock when SparkContext.stop is called in Utils.tryOrStopSparkContext

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

Apache Spark commented on SPARK-18751:
--------------------------------------

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

> Deadlock when SparkContext.stop is called in Utils.tryOrStopSparkContext
> ------------------------------------------------------------------------
>
>                 Key: SPARK-18751
>                 URL: https://issues.apache.org/jira/browse/SPARK-18751
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 1.6.3, 2.0.2
>            Reporter: Shixiong Zhu
>            Assignee: Shixiong Zhu
>
> When SparkContext.stop is called in Utils.tryOrStopSparkContext (the following three places), it will cause deadlock because the stop method needs to wait for the thread running stop to exit.
> - ContextCleaner.keepCleaning
> - LiveListenerBus.listenerThread.run
> - TaskSchedulerImpl.start



--
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