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:58 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 f982f50f5 -> 27c583467


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/27c58346
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/27c58346
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/27c58346

Branch: refs/heads/0.98
Commit: 27c583467e53cb52667eff45afabb1ffb8547be5
Parents: f982f50
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:31:49 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/27c58346/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 b7cbbf8..65683b7 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
@@ -877,7 +877,7 @@ public class LruBlockCache implements BlockCache, 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