hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-12897 Minimum memstore size is a percentage (Churro Morales)
Date Sat, 07 Feb 2015 00:15:42 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 2f2faa68d -> 1426f85b1


HBASE-12897 Minimum memstore size is a percentage (Churro Morales)


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

Branch: refs/heads/master
Commit: 1426f85b15b5b613e0d36693758ce2fc2ade82bf
Parents: 2f2faa6
Author: stack <stack@apache.org>
Authored: Fri Feb 6 16:15:29 2015 -0800
Committer: stack <stack@apache.org>
Committed: Fri Feb 6 16:15:29 2015 -0800

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/1426f85b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/util/HeapMemorySizeUtil.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/io/util/HeapMemorySizeUtil.java
b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/util/HeapMemorySizeUtil.java
index 250a984..7cfa35d 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/io/util/HeapMemorySizeUtil.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/util/HeapMemorySizeUtil.java
@@ -79,10 +79,10 @@ public class HeapMemorySizeUtil {
   public static float getGlobalMemStorePercent(final Configuration c, final boolean logInvalid)
{
     float limit = c.getFloat(MEMSTORE_SIZE_KEY,
         c.getFloat(MEMSTORE_SIZE_OLD_KEY, DEFAULT_MEMSTORE_SIZE));
-    if (limit > 0.8f || limit < 0.05f) {
+    if (limit > 0.8f || limit <= 0.0f) {
       if (logInvalid) {
         LOG.warn("Setting global memstore limit to default of " + DEFAULT_MEMSTORE_SIZE
-            + " because supplied value outside allowed range of 0.05 -> 0.8");
+            + " because supplied value outside allowed range of (0 -> 0.8]");
       }
       limit = DEFAULT_MEMSTORE_SIZE;
     }


Mime
View raw message