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 2f2faa68d1
commit 1426f85b15
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) {
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;
}