aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorStephen Haberman <stephen@exigencecorp.com>2013-01-30 16:56:46 -0600
committerStephen Haberman <stephen@exigencecorp.com>2013-01-30 16:56:46 -0600
commit871476d506a2d543482defb923a42a2a01f206ab (patch)
treeb8b9343df08dd3e3a38dc8e34ee1c18f2ffada5e /core
parentd54b10b6ad25ebf29f8ca7f438131ed6a9af24ab (diff)
downloadspark-871476d506a2d543482defb923a42a2a01f206ab.tar.gz
spark-871476d506a2d543482defb923a42a2a01f206ab.tar.bz2
spark-871476d506a2d543482defb923a42a2a01f206ab.zip
Include message and exitStatus if availalbe.
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/spark/deploy/worker/Worker.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/main/scala/spark/deploy/worker/Worker.scala b/core/src/main/scala/spark/deploy/worker/Worker.scala
index 5a83a42daf..8b41620d98 100644
--- a/core/src/main/scala/spark/deploy/worker/Worker.scala
+++ b/core/src/main/scala/spark/deploy/worker/Worker.scala
@@ -134,7 +134,9 @@ private[spark] class Worker(
val fullId = jobId + "/" + execId
if (ExecutorState.isFinished(state)) {
val executor = executors(fullId)
- logInfo("Executor " + fullId + " finished with state " + state)
+ logInfo("Executor " + fullId + " finished with state " + state +
+ message.map(" message " + _).getOrElse("") +
+ exitStatus.map(" exitStatus " + _).getOrElse(""))
finishedExecutors(fullId) = executor
executors -= fullId
coresUsed -= executor.cores