hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject git commit: HBASE-11433 LruBlockCache does not respect its configurable parameters
Date Mon, 30 Jun 2014 18:27:43 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.96 0c374ceea -> c3af2d25c


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

Branch: refs/heads/0.96
Commit: c3af2d25c85fbb17ca0d481f68f1549d23d60921
Parents: 0c374ce
Author: stack <stack@apache.org>
Authored: Mon Jun 30 11:27:29 2014 -0700
Committer: stack <stack@apache.org>
Committed: Mon Jun 30 11:27:29 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/c3af2d25/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 fb6b1a6..67512b8 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
@@ -406,7 +406,7 @@ public class CacheConfig {
       }
       LOG.info("Allocating LruBlockCache with maximum size " +
         StringUtils.humanReadableInt(lruCacheSize));
-      LruBlockCache lruCache = new LruBlockCache(lruCacheSize, StoreFile.DEFAULT_BLOCKSIZE_SMALL);
+      LruBlockCache lruCache = new LruBlockCache(lruCacheSize, StoreFile.DEFAULT_BLOCKSIZE_SMALL,
true, conf);
       lruCache.setVictimCache(bucketCache);
       if (bucketCache != null && combinedWithLru) {
         globalBlockCache = new CombinedBlockCache(lruCache, bucketCache);


Mime
View raw message