Skip to content

Commit ae0309a

Browse files
zhuolTom Graves
authored andcommitted
[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 <[email protected]> Closes #9946 from zhuoliu/10911.
1 parent 649e9d0 commit ae0309a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ private[spark] object CoarseGrainedExecutorBackend extends Logging {
241241
}
242242

243243
run(driverUrl, executorId, hostname, cores, appId, workerUrl, userClassPath)
244+
System.exit(0)
244245
}
245246

246247
private def printUsageAndExit() = {

0 commit comments

Comments
 (0)