hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject hbase git commit: HBASE-16300 LruBlockCache.CACHE_FIXED_OVERHEAD should calculate LruBlockCache size correctly
Date Fri, 29 Jul 2016 06:33:39 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 60b02ec24 -> 88c991e4a


HBASE-16300 LruBlockCache.CACHE_FIXED_OVERHEAD should calculate LruBlockCache size correctly

Signed-off-by: Yu Li <liyu@apache.org>


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

Branch: refs/heads/branch-1.2
Commit: 88c991e4a65a224e98b8db610d08458454c90db4
Parents: 60b02ec
Author: Yu Sun <sunyu1949@sina.com>
Authored: Fri Jul 29 14:27:12 2016 +0800
Committer: Yu Li <liyu@apache.org>
Committed: Fri Jul 29 14:30:02 2016 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/io/hfile/LruBlockCache.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/88c991e4/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/LruBlockCache.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/LruBlockCache.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/LruBlockCache.java
index c568146..2781833 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/LruBlockCache.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/LruBlockCache.java
@@ -903,7 +903,7 @@ public class LruBlockCache implements ResizableBlockCache, HeapSize {
   }
 
   public final static long CACHE_FIXED_OVERHEAD = ClassSize.align(
-      (3 * Bytes.SIZEOF_LONG) + (10 * ClassSize.REFERENCE) +
+      (4 * Bytes.SIZEOF_LONG) + (9 * ClassSize.REFERENCE) +
       (5 * Bytes.SIZEOF_FLOAT) + (2 * Bytes.SIZEOF_BOOLEAN)
       + ClassSize.OBJECT);
 


Mime
View raw message