HBASE-23702 hbase.hstore.flusher.count setting to 0 breaks HMaster (#1703)

Co-authored-by: Ctest
Signed-off-by: Anoop Sam John <anoop.hbase@gmail.com>
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
This commit is contained in:
Guanghao Zhang 2020-05-15 09:05:25 +08:00
parent 94f36fdb8e
commit bab4b1cf8c
1 changed files with 5 additions and 0 deletions

View File

@ -129,6 +129,11 @@ class MemStoreFlusher implements FlushRequester {
this.blockingWaitTime = conf.getInt("hbase.hstore.blockingWaitTime", this.blockingWaitTime = conf.getInt("hbase.hstore.blockingWaitTime",
90000); 90000);
int handlerCount = conf.getInt("hbase.hstore.flusher.count", 2); int handlerCount = conf.getInt("hbase.hstore.flusher.count", 2);
if (handlerCount < 1) {
LOG.warn("hbase.hstore.flusher.count was configed to {} which is less than 1, corrected to 1",
handlerCount);
handlerCount = 1;
}
this.flushHandlers = new FlushHandler[handlerCount]; this.flushHandlers = new FlushHandler[handlerCount];
LOG.info("globalMemStoreLimit=" LOG.info("globalMemStoreLimit="
+ TraditionalBinaryPrefix + TraditionalBinaryPrefix