diff options
author | Eric Liang <ekl@databricks.com> | 2016-06-22 12:12:34 -0700 |
---|---|---|
committer | Davies Liu <davies.liu@gmail.com> | 2016-06-22 12:12:34 -0700 |
commit | 6f915c9ec24003877d1ef675a59145699780a2ff (patch) | |
tree | 07fd03c29e7045b60c535baa6e2fae2cfe578330 /licenses/LICENSE-kryo.txt | |
parent | 472d611a70da02d95e36da754435a3ac562f8b24 (diff) | |
download | spark-6f915c9ec24003877d1ef675a59145699780a2ff.tar.gz spark-6f915c9ec24003877d1ef675a59145699780a2ff.tar.bz2 spark-6f915c9ec24003877d1ef675a59145699780a2ff.zip |
[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.
Diffstat (limited to 'licenses/LICENSE-kryo.txt')
0 files changed, 0 insertions, 0 deletions