From 2b1cbeb28d413c81bf8296f4b3fdcda9ab3b2dec Mon Sep 17 00:00:00 2001 From: Yu Sun Date: Fri, 29 Jul 2016 14:27:12 +0800 Subject: [PATCH] HBASE-16300 LruBlockCache.CACHE_FIXED_OVERHEAD should calculate LruBlockCache size correctly Signed-off-by: Yu Li --- .../java/org/apache/hadoop/hbase/io/hfile/LruBlockCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2487aadd700..29c5922d188 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 @@ -914,7 +914,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);