hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jingchen...@apache.org
Subject hbase git commit: HBASE-17005 Improve log message in MobFileCache (huaxiang sun)
Date Mon, 07 Nov 2016 08:41:23 GMT
Repository: hbase
Updated Branches:
  refs/heads/master a34a9adb2 -> 4ca668dd1


HBASE-17005 Improve log message in MobFileCache (huaxiang sun)


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

Branch: refs/heads/master
Commit: 4ca668dd11aee2a4b4d862ff30080dce2ac6a7ab
Parents: a34a9ad
Author: Jingcheng Du <jingcheng.du@intel.com>
Authored: Mon Nov 7 16:38:14 2016 +0800
Committer: Jingcheng Du <jingcheng.du@intel.com>
Committed: Mon Nov 7 16:38:14 2016 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/mob/MobFileCache.java    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/4ca668dd/hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobFileCache.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobFileCache.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobFileCache.java
index de3439b..fd62340 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobFileCache.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobFileCache.java
@@ -117,8 +117,12 @@ public class MobFileCache {
       }
       this.scheduleThreadPool.scheduleAtFixedRate(new EvictionThread(this), period, period,
           TimeUnit.SECONDS);
+
+      LOG.info("MobFileCache enabled with cacheSize=" + mobFileMaxCacheSize +
+          ", evictPeriods=" +  period + "sec, evictRemainRatio=" + evictRemainRatio);
+    } else {
+      LOG.info("MobFileCache disabled");
     }
-    LOG.info("MobFileCache is initialized, and the cache size is " + mobFileMaxCacheSize);
   }
 
   /**


Mime
View raw message