You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by pw...@apache.org on 2013/12/25 01:35:43 UTC
[12/20] git commit: Fixed error message in ClusterScheduler to be
consistent with the old LocalScheduler
Fixed error message in ClusterScheduler to be consistent with the old LocalScheduler
Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/2b0a6e7d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/2b0a6e7d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/2b0a6e7d
Branch: refs/heads/master
Commit: 2b0a6e7d9210ed828395243027c7001f7dae77a4
Parents: 0913c22
Author: Kay Ousterhout <ka...@gmail.com>
Authored: Fri Nov 15 18:34:28 2013 -0800
Committer: Kay Ousterhout <ka...@gmail.com>
Committed: Fri Nov 15 18:34:28 2013 -0800
----------------------------------------------------------------------
.../scala/org/apache/spark/scheduler/TaskSetManager.scala | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/2b0a6e7d/core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala b/core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala
index e3929e6..7989e6a 100644
--- a/core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala
+++ b/core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala
@@ -468,6 +468,7 @@ private[spark] class TaskSetManager(
removeRunningTask(tid)
val index = info.index
info.markFailed()
+ var failureReason = "unknown"
if (!successful(index)) {
logWarning("Lost TID %s (task %s:%d)".format(tid, taskSet.id, index))
copiesRunning(index) -= 1
@@ -500,6 +501,7 @@ private[spark] class TaskSetManager(
return
}
val key = ef.description
+ failureReason = "Exception failure: %s".format(ef.description)
val now = clock.getTime()
val (printFull, dupCount) = {
if (recentExceptions.contains(key)) {
@@ -525,7 +527,8 @@ private[spark] class TaskSetManager(
}
case TaskResultLost =>
- logWarning("Lost result for TID %s on host %s".format(tid, info.host))
+ failureReason = "Lost result for TID %s on host %s".format(tid, info.host)
+ logWarning(failureReason)
sched.dagScheduler.taskEnded(tasks(index), TaskResultLost, null, null, info, null)
case _ => {}
@@ -537,7 +540,8 @@ private[spark] class TaskSetManager(
if (numFailures(index) > maxTaskFailures) {
logError("Task %s:%d failed more than %d times; aborting job".format(
taskSet.id, index, maxTaskFailures))
- abort("Task %s:%d failed more than %d times".format(taskSet.id, index, maxTaskFailures))
+ abort("Task %s:%d failed more than %d times (most recent failure: %s)".format(
+ taskSet.id, index, maxTaskFailures, failureReason))
}
}
} else {