We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb615ba commit 3107aebCopy full SHA for 3107aeb
core/src/main/scala/org/apache/spark/deploy/worker/ExecutorRunner.scala
@@ -68,17 +68,15 @@ private[spark] class ExecutorRunner(
68
}
69
70
private def killProcess() {
71
- if (process != null) {
72
- logInfo("Killing process!")
73
- process.destroy()
74
- process.waitFor()
75
- process = null
76
- }
+ logInfo("Killing process!")
+ process.destroy()
+ process.waitFor()
77
78
79
/** Stop this executor runner, including killing the process it launched */
80
def kill() {
81
if (workerThread != null) {
+ // the workerThread will kill the child process when interrupted
82
workerThread.interrupt()
83
workerThread = null
84
state = ExecutorState.KILLED
0 commit comments