Skip to content

Commit

Permalink
Include stack trace for exceptions in user code.
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed Apr 15, 2014
1 parent 268b535 commit 018b06b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ private[spark] class TaskSetManager(
return
}
val key = ef.description
failureReason = "Exception failure in TID %s on host %s: %s".format(
tid, info.host, ef.description)
failureReason = "Exception failure in TID %s on host %s: %s\n%s".format(
tid, info.host, ef.description, ef.stackTrace.mkString("\n"))
val now = clock.getTime()
val (printFull, dupCount) = {
if (recentExceptions.contains(key)) {
Expand Down Expand Up @@ -582,7 +582,7 @@ private[spark] class TaskSetManager(
if (numFailures(index) >= maxTaskFailures) {
logError("Task %s:%d failed %d times; aborting job".format(
taskSet.id, index, maxTaskFailures))
abort("Task %s:%d failed %d times (most recent failure: %s)".format(
abort("Task %s:%d failed %d times, most recent failure: %s".format(
taskSet.id, index, maxTaskFailures, failureReason))
return
}
Expand Down

0 comments on commit 018b06b

Please sign in to comment.