You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2015/10/26 10:08:02 UTC

[16/45] incubator-kylin git commit: KYLIN-1048 fix CPU and memory killer in Cuboid.findById()

KYLIN-1048 fix CPU and memory killer in Cuboid.findById()

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

Branch: refs/heads/master
Commit: 6adf4a159f86272ce8194ebf758bd9a486033158
Parents: e82eb00
Author: shaofengshi <sh...@apache.org>
Authored: Mon Sep 28 15:36:21 2015 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Mon Sep 28 15:36:21 2015 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/6adf4a15/cube/src/main/java/org/apache/kylin/cube/cuboid/Cuboid.java
----------------------------------------------------------------------
diff --git a/cube/src/main/java/org/apache/kylin/cube/cuboid/Cuboid.java b/cube/src/main/java/org/apache/kylin/cube/cuboid/Cuboid.java
index 9080115..5ef0c37 100644
--- a/cube/src/main/java/org/apache/kylin/cube/cuboid/Cuboid.java
+++ b/cube/src/main/java/org/apache/kylin/cube/cuboid/Cuboid.java
@@ -126,7 +126,7 @@ public class Cuboid implements Comparable<Cuboid> {
         long cuboidWithoutMandatory = cuboidID & ~rowkey.getMandatoryColumnMask();
         long leftover;
         for (AggrGroupMask mask : rowkey.getAggrGroupMasks()) {
-            if ((cuboidWithoutMandatory & mask.uniqueMask) == mask.uniqueMask) {
+            if ((cuboidWithoutMandatory & mask.uniqueMask) > 0) {
                 leftover = cuboidWithoutMandatory & ~mask.groupMask;
 
                 if (leftover == 0) {