You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by mx...@apache.org on 2016/05/10 10:21:30 UTC
flink git commit: [FLINK-3880] remove mutex for user accumulators
hash map
Repository: flink
Updated Branches:
refs/heads/master a27208da8 -> 9fccd6e5d
[FLINK-3880] remove mutex for user accumulators hash map
This cloes #1976
Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/9fccd6e5
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/9fccd6e5
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/9fccd6e5
Branch: refs/heads/master
Commit: 9fccd6e5d626455174c830ba32eff06e60173020
Parents: a27208d
Author: Maximilian Michels <mx...@apache.org>
Authored: Fri May 6 10:40:51 2016 +0200
Committer: Maximilian Michels <mx...@apache.org>
Committed: Tue May 10 12:19:42 2016 +0200
----------------------------------------------------------------------
.../apache/flink/runtime/accumulators/AccumulatorRegistry.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flink/blob/9fccd6e5/flink-runtime/src/main/java/org/apache/flink/runtime/accumulators/AccumulatorRegistry.java
----------------------------------------------------------------------
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/accumulators/AccumulatorRegistry.java b/flink-runtime/src/main/java/org/apache/flink/runtime/accumulators/AccumulatorRegistry.java
index 0ef3650..97deeb7 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/accumulators/AccumulatorRegistry.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/accumulators/AccumulatorRegistry.java
@@ -26,7 +26,6 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
-import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
@@ -46,8 +45,7 @@ public class AccumulatorRegistry {
new HashMap<Metric, Accumulator<?, ?>>();
/* User-defined Accumulator values stored for the executing task. */
- private final Map<String, Accumulator<?, ?>> userAccumulators =
- Collections.synchronizedMap(new HashMap<String, Accumulator<?, ?>>());
+ private final Map<String, Accumulator<?, ?>> userAccumulators = new HashMap<>();
/* The reporter reference that is handed to the reporting tasks. */
private final ReadWriteReporter reporter;