APACHE-KYLIN-2826: change hashmap to concurrentmap for the allDescendantsCache 
of CuboidStats


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

Branch: refs/heads/yaho-cube-planner
Commit: 844a6fc766ce6a3516d55406fc240b26fc8fc1f0
Parents: bd78cf1
Author: Zhong <[email protected]>
Authored: Mon Sep 4 20:40:27 2017 +0800
Committer: Zhong <[email protected]>
Committed: Fri Sep 8 11:33:05 2017 +0800

----------------------------------------------------------------------
 .../java/org/apache/kylin/cube/cuboid/algorithm/CuboidStats.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/844a6fc7/core-cube/src/main/java/org/apache/kylin/cube/cuboid/algorithm/CuboidStats.java
----------------------------------------------------------------------
diff --git 
a/core-cube/src/main/java/org/apache/kylin/cube/cuboid/algorithm/CuboidStats.java
 
b/core-cube/src/main/java/org/apache/kylin/cube/cuboid/algorithm/CuboidStats.java
index e4b0167..a1c191e 100755
--- 
a/core-cube/src/main/java/org/apache/kylin/cube/cuboid/algorithm/CuboidStats.java
+++ 
b/core-cube/src/main/java/org/apache/kylin/cube/cuboid/algorithm/CuboidStats.java
@@ -192,7 +192,7 @@ public class CuboidStats {
         this.directChildrenCache = ImmutableMap.<Long, List<Long>> builder()
                 
.putAll(CuboidStatsUtil.createDirectChildrenCache(statistics.keySet())).build();
 
-        this.allDescendantsCache = Maps.newHashMap();
+        this.allDescendantsCache = Maps.newConcurrentMap();
     }
 
     private long getExpScanCount(long sourceCuboid, Map<Long, Long> statistics,

Reply via email to