hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject hbase git commit: HBASE-12897 Minimum memstore size is a percentage
Date Thu, 12 Feb 2015 19:14:27 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 7871c9305 -> 0ffb197a6


HBASE-12897 Minimum memstore size is a percentage

Signed-off-by: Andrew Purtell <apurtell@apache.org>
Amending-Author: Andrew Purtell <apurtell@apache.org>


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

Branch: refs/heads/0.98
Commit: 0ffb197a66092eab3a2385068a68e6e384deeb6e
Parents: 7871c93
Author: rahulgidwani <rahul.gidwani@flurry.com>
Authored: Thu Feb 12 11:11:02 2015 -0800
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Thu Feb 12 11:11:19 2015 -0800

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/0ffb197a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java
index ce60aba..4d175d0 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java
@@ -141,9 +141,9 @@ class MemStoreFlusher implements FlushRequester {
   static long getMemStoreLimit(final long max, final float limit,
       final float defaultLimit) {
     float effectiveLimit = limit;
-    if (limit >= 0.9f || limit < 0.1f) {
+    if (limit >= 0.8f || limit <= 0f) {
       LOG.warn("Setting global memstore limit to default of " + defaultLimit +
-        " because supplied value outside allowed range of 0.1 -> 0.9");
+          " because supplied value outside allowed range of (0 -> 0.8]");
       effectiveLimit = defaultLimit;
     }
     return (long)(max * effectiveLimit);


Mime
View raw message