You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2014/06/30 20:23:07 UTC

git commit: HBASE-11433 LruBlockCache does not respect its configurable parameters

Repository: hbase
Updated Branches:
  refs/heads/master d797fc872 -> cfba8ccba


HBASE-11433 LruBlockCache does not respect its configurable parameters


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

Branch: refs/heads/master
Commit: cfba8ccbad160b7f5ea0d4304d6331eecabb7002
Parents: d797fc8
Author: stack <st...@apache.org>
Authored: Mon Jun 30 11:22:44 2014 -0700
Committer: stack <st...@apache.org>
Committed: Mon Jun 30 11:22:53 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/cfba8ccb/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheConfig.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheConfig.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheConfig.java
index 223e933..cf98102 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheConfig.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheConfig.java
@@ -541,7 +541,7 @@ public class CacheConfig {
       }
       LOG.info("Allocating LruBlockCache size=" +
         StringUtils.byteDesc(lruCacheSize) + ", blockSize=" + StringUtils.byteDesc(blockSize));
-      LruBlockCache lruCache = new LruBlockCache(lruCacheSize, blockSize);
+      LruBlockCache lruCache = new LruBlockCache(lruCacheSize, blockSize, true, conf);
       lruCache.setVictimCache(bucketCache);
       if (bucketCache != null && combinedWithLru) {
         GLOBAL_BLOCK_CACHE_INSTANCE = new CombinedBlockCache(lruCache, bucketCache);