aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAntonio <alupher@eecs.berkeley.edu>2012-04-20 14:46:43 -0700
committerAntonio <alupher@eecs.berkeley.edu>2012-04-20 14:46:43 -0700
commit39d99168dceb17414fdee0451014e50a4d56d6b0 (patch)
tree191b914f524ff0a695e162e6847392bcb78d21e4 /core
parentf709b3ad8fc957ecac94b1a2572b83ef9d1d5bcb (diff)
downloadspark-39d99168dceb17414fdee0451014e50a4d56d6b0.tar.gz
spark-39d99168dceb17414fdee0451014e50a4d56d6b0.tar.bz2
spark-39d99168dceb17414fdee0451014e50a4d56d6b0.zip
Added exception handling instead of just exiting in LocalScheduler for tasks that throw exceptions
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/spark/LocalScheduler.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/scala/spark/LocalScheduler.scala b/core/src/main/scala/spark/LocalScheduler.scala
index c86b967aa5..c675eb5462 100644
--- a/core/src/main/scala/spark/LocalScheduler.scala
+++ b/core/src/main/scala/spark/LocalScheduler.scala
@@ -58,7 +58,8 @@ private class LocalScheduler(threads: Int, maxFailures: Int) extends DAGSchedule
submitTask(task, idInJob)
} else {
// TODO: Do something nicer here to return all the way to the user
- System.exit(1)
+ //System.exit(1)
+ taskEnded(task, new ExceptionFailure(t), null, null)
}
}
}