Skip to content

Commit

Permalink
Only catch NonFatal exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
darabos committed Jul 8, 2014
1 parent 361e962 commit 52c22ba
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import scala.concurrent.Await
import scala.concurrent.duration._
import scala.language.postfixOps
import scala.reflect.ClassTag
import scala.util.control.NonFatal

import akka.actor._
import akka.actor.OneForOneStrategy
Expand Down Expand Up @@ -768,7 +769,7 @@ class DAGScheduler(
abortStage(stage, "Task not serializable: " + e.toString)
runningStages -= stage
return
case e: Throwable => // Other exceptions, such as IllegalArgumentException from Kryo.
case NonFatal(e) => // Other exceptions, such as IllegalArgumentException from Kryo.
abortStage(stage, "Task serialization failed: " + e.toString)
runningStages -= stage
return
Expand Down

0 comments on commit 52c22ba

Please sign in to comment.