flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject flink git commit: [hotfix] Use AccumulatorSnapshot's class loader for deserializing accumulators
Date Fri, 15 Jan 2016 13:26:58 GMT
Repository: flink
Updated Branches:
  refs/heads/master 2c556f74e -> cfcb5d7ba


[hotfix] Use AccumulatorSnapshot's class loader for deserializing accumulators

This closes #1511


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/cfcb5d7b
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/cfcb5d7b
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/cfcb5d7b

Branch: refs/heads/master
Commit: cfcb5d7ba5c22295c0ae628f8d9a2447e2286985
Parents: 2c556f7
Author: Prez Cannady <revprez@opencorrelate.org>
Authored: Thu Jan 14 18:58:41 2016 -0500
Committer: Stephan Ewen <sewen@apache.org>
Committed: Fri Jan 15 12:23:42 2016 +0100

----------------------------------------------------------------------
 .../org/apache/flink/runtime/accumulators/AccumulatorSnapshot.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/cfcb5d7b/flink-runtime/src/main/java/org/apache/flink/runtime/accumulators/AccumulatorSnapshot.java
----------------------------------------------------------------------
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/accumulators/AccumulatorSnapshot.java
b/flink-runtime/src/main/java/org/apache/flink/runtime/accumulators/AccumulatorSnapshot.java
index b813153..d0f4bad 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/accumulators/AccumulatorSnapshot.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/accumulators/AccumulatorSnapshot.java
@@ -71,7 +71,7 @@ public class AccumulatorSnapshot implements Serializable {
 	 * @return the serialized map
 	 */
 	public Map<AccumulatorRegistry.Metric, Accumulator<?, ?>> deserializeFlinkAccumulators()
throws IOException, ClassNotFoundException {
-		return flinkAccumulators.deserializeValue(ClassLoader.getSystemClassLoader());
+		return flinkAccumulators.deserializeValue(getClass().getClassLoader());
 	}
 
 	/**


Mime
View raw message