Skip to content

Commit e8aad6c

Browse files
author
Andrew Or
committed
NonFatal
1 parent 57d0ef4 commit e8aad6c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/main/scala/org/apache/spark/serializer/SerializationDebugger.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import java.security.AccessController
2323

2424
import scala.annotation.tailrec
2525
import scala.collection.mutable
26+
import scala.util.control.NonFatal
2627

2728
import org.apache.spark.Logging
2829

@@ -39,9 +40,9 @@ private[serializer] object SerializationDebugger extends Logging {
3940
new NotSerializableException(
4041
e.getMessage + "\nSerialization stack:\n" + find(obj).map("\t- " + _).mkString("\n"))
4142
} catch {
42-
case e2: Exception =>
43+
case NonFatal(t) =>
4344
// Fall back to old exception
44-
logWarning("Exception in serialization debugger", e2)
45+
logWarning("Exception in serialization debugger", t)
4546
e
4647
}
4748
} else {

0 commit comments

Comments
 (0)