aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorlianhuiwang <lianhuiwang09@gmail.com>2014-05-27 11:53:38 -0700
committerAaron Davidson <aaron@databricks.com>2014-05-27 11:53:38 -0700
commit95e4c9c6fb153b7f0aa4c442c4bdb6552d326640 (patch)
treec4cecba5c0cfd65f2840b0009eb10813467dbeac /core
parent549830b0db2c8b069391224f3a73bb0d7f397f71 (diff)
downloadspark-95e4c9c6fb153b7f0aa4c442c4bdb6552d326640.tar.gz
spark-95e4c9c6fb153b7f0aa4c442c4bdb6552d326640.tar.bz2
spark-95e4c9c6fb153b7f0aa4c442c4bdb6552d326640.zip
bugfix worker DriverStateChanged state should match DriverState.FAILED
bugfix worker DriverStateChanged state should match DriverState.FAILED Author: lianhuiwang <lianhuiwang09@gmail.com> Closes #864 from lianhuiwang/master and squashes the following commits: 480ce94 [lianhuiwang] address aarondav comments f2b5970 [lianhuiwang] bugfix worker DriverStateChanged state should match DriverState.FAILED
Diffstat (limited to 'core')
-rwxr-xr-xcore/src/main/scala/org/apache/spark/deploy/worker/Worker.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/main/scala/org/apache/spark/deploy/worker/Worker.scala b/core/src/main/scala/org/apache/spark/deploy/worker/Worker.scala
index 8b6747977e..100de26170 100755
--- a/core/src/main/scala/org/apache/spark/deploy/worker/Worker.scala
+++ b/core/src/main/scala/org/apache/spark/deploy/worker/Worker.scala
@@ -317,10 +317,14 @@ private[spark] class Worker(
state match {
case DriverState.ERROR =>
logWarning(s"Driver $driverId failed with unrecoverable exception: ${exception.get}")
+ case DriverState.FAILED =>
+ logWarning(s"Driver $driverId exited with failure")
case DriverState.FINISHED =>
logInfo(s"Driver $driverId exited successfully")
case DriverState.KILLED =>
logInfo(s"Driver $driverId was killed by user")
+ case _ =>
+ logDebug(s"Driver $driverId changed state to $state")
}
masterLock.synchronized {
master ! DriverStateChanged(driverId, state, exception)