You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Terence Yim (JIRA)" <ji...@apache.org> on 2016/04/10 06:17:25 UTC

[jira] [Created] (SPARK-14513) Threads left behind after stopping SparkContext

Terence Yim created SPARK-14513:
-----------------------------------

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


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