-
- Downloads
[SPARK-16003] SerializationDebugger runs into infinite loop
## What changes were proposed in this pull request? This fixes SerializationDebugger to not recurse forever when `writeReplace` returns an object of the same class, which is the case for at least the `SQLMetrics` class. See also the OpenJDK unit tests on the behavior of recursive `writeReplace()`: https://github.com/openjdk-mirror/jdk7u-jdk/blob/f4d80957e89a19a29bb9f9807d2a28351ed7f7df/test/java/io/Serializable/nestedReplace/NestedReplace.java cc davies cloud-fan ## How was this patch tested? Unit tests for SerializationDebugger. Author: Eric Liang <ekl@databricks.com> Closes #13814 from ericl/spark-16003.
Showing
- core/src/main/scala/org/apache/spark/serializer/SerializationDebugger.scala 4 additions, 5 deletions...a/org/apache/spark/serializer/SerializationDebugger.scala
- core/src/test/scala/org/apache/spark/serializer/SerializationDebuggerSuite.scala 12 additions, 1 deletion.../apache/spark/serializer/SerializationDebuggerSuite.scala
Please register or sign in to comment