Skip to content

Commit

Permalink
Bug fix and better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mateiz committed Jun 8, 2014
1 parent 4f681ba commit ac56831
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ private[spark] class ShuffleMapTask(
}

override def runTask(context: TaskContext): MapStatus = {
metrics = Some(context.taskMetrics)
var writer: ShuffleWriter[Any, Any] = null
try {
val manager = SparkEnv.get.shuffleManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
})
Expand Down

0 comments on commit ac56831

Please sign in to comment.