HBASE-3934 MemStoreFlusher.getMemStoreLimit() doesn't honor defaultLimit
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1129469 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6bd9abf44d
commit
13a0e22c4b
|
@ -113,6 +113,8 @@ Release 0.91.0 - Unreleased
|
|||
HBASE-3903 A successful write to client write-buffer may be lost or not
|
||||
visible (Doug Meil)
|
||||
HBASE-3894 Thread contention over row locks set monitor (Dave Latham)
|
||||
HBASE-3934 MemStoreFlusher.getMemStoreLimit() doesn't honor defaultLimit
|
||||
(Ted Yu)
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)
|
||||
|
|
|
@ -134,11 +134,13 @@ class MemStoreFlusher extends Thread implements FlushRequester {
|
|||
|
||||
static long getMemStoreLimit(final long max, final float limit,
|
||||
final float defaultLimit) {
|
||||
float effectiveLimit = limit;
|
||||
if (limit >= 0.9f || limit < 0.1f) {
|
||||
LOG.warn("Setting global memstore limit to default of " + defaultLimit +
|
||||
" because supplied value outside allowed range of 0.1 -> 0.9");
|
||||
effectiveLimit = defaultLimit;
|
||||
}
|
||||
return (long)(max * limit);
|
||||
return (long)(max * effectiveLimit);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue