Repository: spark Updated Branches: refs/heads/master 649e9d0f5 -> ae0309a88
[SPARK-10911] Executors should System.exit on clean shutdown. Call system.exit explicitly to make sure non-daemon user threads terminate. Without this, user applications might live forever if the cluster manager does not appropriately kill them. E.g., YARN had this bug: HADOOP-12441. Author: zhuol <zh...@yahoo-inc.com> Closes #9946 from zhuoliu/10911. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/ae0309a8 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/ae0309a8 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/ae0309a8 Branch: refs/heads/master Commit: ae0309a8812a4fade3a0ea67d8986ca870aeb9eb Parents: 649e9d0 Author: zhuol <zh...@yahoo-inc.com> Authored: Tue Jan 26 09:40:02 2016 -0600 Committer: Tom Graves <tgra...@yahoo-inc.com> Committed: Tue Jan 26 09:40:02 2016 -0600 ---------------------------------------------------------------------- .../org/apache/spark/executor/CoarseGrainedExecutorBackend.scala | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/ae0309a8/core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala ---------------------------------------------------------------------- diff --git a/core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala b/core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala index e3a6c4c..136cf4a 100644 --- a/core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala +++ b/core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala @@ -241,6 +241,7 @@ private[spark] object CoarseGrainedExecutorBackend extends Logging { } run(driverUrl, executorId, hostname, cores, appId, workerUrl, userClassPath) + System.exit(0) } private def printUsageAndExit() = { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org