You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tz...@apache.org on 2018/10/10 08:08:20 UTC

[flink] 07/07: [hotfix] [core] Do not initialize serializer snapshot class when loading it

This is an automated email from the ASF dual-hosted git repository.

tzulitai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 2f9d955099f62c12ced65ab9f9cc6ca39a62f469
Author: Tzu-Li (Gordon) Tai <tz...@apache.org>
AuthorDate: Mon Oct 8 15:38:56 2018 +0800

    [hotfix] [core] Do not initialize serializer snapshot class when loading it
    
    This lets errors during static initialization happen not in the
    deserialization stack, but upon use of the class later, which is often a
    bit easier to understand.
---
 .../api/common/typeutils/TypeSerializerSnapshotSerializationUtil.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flink-core/src/main/java/org/apache/flink/api/common/typeutils/TypeSerializerSnapshotSerializationUtil.java b/flink-core/src/main/java/org/apache/flink/api/common/typeutils/TypeSerializerSnapshotSerializationUtil.java
index 110b2ab..0bcff93 100644
--- a/flink-core/src/main/java/org/apache/flink/api/common/typeutils/TypeSerializerSnapshotSerializationUtil.java
+++ b/flink-core/src/main/java/org/apache/flink/api/common/typeutils/TypeSerializerSnapshotSerializationUtil.java
@@ -149,7 +149,7 @@ public class TypeSerializerSnapshotSerializationUtil {
 			Class<? extends TypeSerializerSnapshot> serializerConfigSnapshotClass;
 			try {
 				serializerConfigSnapshotClass = (Class<? extends TypeSerializerSnapshot>)
-					Class.forName(serializerConfigClassname, true, userCodeClassLoader);
+					Class.forName(serializerConfigClassname, false, userCodeClassLoader);
 			} catch (ClassNotFoundException e) {
 				throw new IOException(
 					"Could not find requested TypeSerializerConfigSnapshot class "