From bab4b1cf8c57456794e15e556a7483b88c504ae2 Mon Sep 17 00:00:00 2001 From: Guanghao Zhang Date: Fri, 15 May 2020 09:05:25 +0800 Subject: [PATCH] HBASE-23702 hbase.hstore.flusher.count setting to 0 breaks HMaster (#1703) Co-authored-by: Ctest Signed-off-by: Anoop Sam John Signed-off-by: Wellington Chevreuil --- .../java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java index b94afabf26..9f4d881149 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java @@ -129,6 +129,11 @@ class MemStoreFlusher implements FlushRequester { this.blockingWaitTime = conf.getInt("hbase.hstore.blockingWaitTime", 90000); 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]; LOG.info("globalMemStoreLimit=" + TraditionalBinaryPrefix -- 2.11.4.GIT