diff options
author | Antonio <alupher@eecs.berkeley.edu> | 2012-04-20 14:46:43 -0700 |
---|---|---|
committer | Antonio <alupher@eecs.berkeley.edu> | 2012-04-20 14:46:43 -0700 |
commit | 39d99168dceb17414fdee0451014e50a4d56d6b0 (patch) | |
tree | 191b914f524ff0a695e162e6847392bcb78d21e4 /core | |
parent | f709b3ad8fc957ecac94b1a2572b83ef9d1d5bcb (diff) | |
download | spark-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.scala | 3 |
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) } } } |