aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynold Xin <rxin@apache.org>2014-06-25 00:19:33 -0700
committerReynold Xin <rxin@apache.org>2014-06-25 00:19:33 -0700
commitc68be53d0cfc4ba689ee29a8dc0befd8cbd31eeb (patch)
tree1d43b9a6a1e472f64ef9c730d72ed003708701b4
parent65a559cfc3e893c4fdc58810e63f24b670a192e0 (diff)
downloadspark-c68be53d0cfc4ba689ee29a8dc0befd8cbd31eeb.tar.gz
spark-c68be53d0cfc4ba689ee29a8dc0befd8cbd31eeb.tar.bz2
spark-c68be53d0cfc4ba689ee29a8dc0befd8cbd31eeb.zip
[SPARK-2267] Log exception when TaskResultGetter fails to fetch/deserialze task result
Note that this is only for branch-1.0 because master's been fixed. Author: Reynold Xin <rxin@apache.org> Closes #1202 from rxin/SPARK-2267 and squashes the following commits: ce1b19b [Reynold Xin] [SPARK-2267] Log exception when TaskResultGetter fails to fetch/deserialize task result
-rw-r--r--core/src/main/scala/org/apache/spark/scheduler/TaskResultGetter.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/scheduler/TaskResultGetter.scala b/core/src/main/scala/org/apache/spark/scheduler/TaskResultGetter.scala
index 99d305b36a..df59f444b7 100644
--- a/core/src/main/scala/org/apache/spark/scheduler/TaskResultGetter.scala
+++ b/core/src/main/scala/org/apache/spark/scheduler/TaskResultGetter.scala
@@ -71,7 +71,8 @@ private[spark] class TaskResultGetter(sparkEnv: SparkEnv, scheduler: TaskSchedul
val loader = Thread.currentThread.getContextClassLoader
taskSetManager.abort("ClassNotFound with classloader: " + loader)
case ex: Exception =>
- taskSetManager.abort("Exception while deserializing and fetching task: %s".format(ex))
+ logError("Exception while getting task result", ex)
+ taskSetManager.abort("Exception while getting task result: %s".format(ex))
}
}
})