Repository: kylin Updated Branches: refs/heads/yaho-cube-planner d216eba3e -> 0b1730ce4
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/0b1730ce Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/0b1730ce Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/0b1730ce Branch: refs/heads/yaho-cube-planner Commit: 0b1730ce430b9a12aa374416314d50551130796e Parents: d216eba Author: Zhong <nju_y...@apache.org> Authored: Mon Sep 4 20:40:27 2017 +0800 Committer: Zhong <nju_y...@apache.org> Committed: Mon Sep 4 20:49:14 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/0b1730ce/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,