Skip to content

Commit 361e962

Browse files
committed
Catch all errors during serialization in DAGScheduler.
1 parent 56e009d commit 361e962

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,10 @@ class DAGScheduler(
768768
abortStage(stage, "Task not serializable: " + e.toString)
769769
runningStages -= stage
770770
return
771+
case e: Throwable => // Other exceptions, such as IllegalArgumentException from Kryo.
772+
abortStage(stage, "Task serialization failed: " + e.toString)
773+
runningStages -= stage
774+
return
771775
}
772776

773777
logInfo("Submitting " + tasks.size + " missing tasks from " + stage + " (" + stage.rdd + ")")

0 commit comments

Comments
 (0)