Removed redundant TaskSetManager.error() function.

This function was leftover from a while ago, and now just
passes all calls through to the abort() function, so this
commit deletes it.
This commit is contained in:
Kay Ousterhout 2013-12-30 12:23:18 -08:00
parent 3713f8129a
commit 5a3c00c958
2 changed files with 1 additions and 6 deletions

View file

@ -328,7 +328,7 @@ private[spark] class TaskSchedulerImpl(
// Have each task set throw a SparkException with the error
for ((taskSetId, manager) <- activeTaskSets) {
try {
manager.error(message)
manager.abort(message)
} catch {
case e: Exception => logError("Exception in error callback", e)
}

View file

@ -548,11 +548,6 @@ private[spark] class TaskSetManager(
}
}
def error(message: String) {
// Save the error message
abort("Error: " + message)
}
def abort(message: String) {
// TODO: Kill running tasks if we were not terminated due to a Mesos error
sched.dagScheduler.taskSetFailed(taskSet, message)