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

This commit is contained in:
stack 2015-02-06 16:15:29 -08:00
parent ccf2975e8e
commit c234b8df96
1 changed files with 2 additions and 2 deletions

View File

@ -79,10 +79,10 @@ public class HeapMemorySizeUtil {
public static float getGlobalMemStorePercent(final Configuration c, final boolean logInvalid) { public static float getGlobalMemStorePercent(final Configuration c, final boolean logInvalid) {
float limit = c.getFloat(MEMSTORE_SIZE_KEY, float limit = c.getFloat(MEMSTORE_SIZE_KEY,
c.getFloat(MEMSTORE_SIZE_OLD_KEY, DEFAULT_MEMSTORE_SIZE)); 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) { if (logInvalid) {
LOG.warn("Setting global memstore limit to default of " + DEFAULT_MEMSTORE_SIZE 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; limit = DEFAULT_MEMSTORE_SIZE;
} }