Skip to content

Commit 21d380b

Browse files
committed
add some error messages
1 parent 506cea6 commit 21d380b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private[spark] class ExecutorRunner(
6161
// Shutdown hook that kills actors on shutdown.
6262
shutdownHook = new Thread() {
6363
override def run() {
64-
killProcess(None)
64+
killProcess(Some("Worker shutting down"))
6565
}
6666
}
6767
Runtime.getRuntime.addShutdownHook(shutdownHook)
@@ -159,7 +159,7 @@ private[spark] class ExecutorRunner(
159159
case e: Exception => {
160160
logError("Error running executor", e)
161161
state = ExecutorState.FAILED
162-
killProcess(Some(e.getClass + ":" + e.getMessage))
162+
killProcess(Some(e.toString))
163163
}
164164
}
165165
}

0 commit comments

Comments
 (0)