You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2016/04/12 22:49:25 UTC
[jira] [Resolved] (SPARK-14513) Threads left behind after stopping
SparkContext
[ https://issues.apache.org/jira/browse/SPARK-14513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reynold Xin resolved SPARK-14513.
---------------------------------
Resolution: Fixed
Assignee: Terence Yim
Fix Version/s: 2.0.0
> Threads left behind after stopping SparkContext
> -----------------------------------------------
>
> Key: SPARK-14513
> URL: https://issues.apache.org/jira/browse/SPARK-14513
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Affects Versions: 1.6.1
> Reporter: Terence Yim
> Assignee: Terence Yim
> Fix For: 2.0.0
>
>
> After {{SparkContext}} is stopped, there are couple threads that are left behind. After some digging it is caused by couple bugs:
> 1. The {{HttpBasedFileServer.shutdown()}} is not getting called during {{NettyRpcEnv.shutdown()}}, hence a thread is left and block on the {{ServerSocket.accept()}} from the underlying Jetty {{Server}}.
> 2. {{QueuedThreadPool}} created in the {{HttpServer}} and through the {{JettyUtils.startJettyServer}} method are never getting stopped. This is due to the fact that thread pool used by Jetty {{Server}} won't get closed automatically when the {{Server}} is stopped.
> I'll send out a patch soon.
--
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