Skip to content

Commit 506cea6

Browse files
committed
add some docs for killProcess()
1 parent a0b9860 commit 506cea6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/scala/org/apache/spark/deploy/worker/ExecutorRunner.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ private[spark] class ExecutorRunner(
6767
Runtime.getRuntime.addShutdownHook(shutdownHook)
6868
}
6969

70+
/**
71+
* kill executor process, wait for exit and notify worker to update resource status
72+
*
73+
* @param message the exception message which caused the executor's death
74+
*/
7075
private def killProcess(message: Option[String]) {
7176
if (process != null) {
7277
logInfo("Killing process!")

0 commit comments

Comments
 (0)