HBASE-26114 when “hbase.mob.compaction.threads.max” is set to a negative number, HMaster cannot start normally (#3541)
Signed-off-by: Anoop <anoopsamjohn@apache.org>
This commit is contained in:
parent
f049301606
commit
6df4cb1cf4
|
@ -863,7 +863,8 @@ public final class MobUtils {
|
|||
public static ExecutorService createMobCompactorThreadPool(Configuration conf) {
|
||||
int maxThreads = conf.getInt(MobConstants.MOB_COMPACTION_THREADS_MAX,
|
||||
MobConstants.DEFAULT_MOB_COMPACTION_THREADS_MAX);
|
||||
if (maxThreads == 0) {
|
||||
// resets to default mob compaction thread number when the user sets this value incorrectly
|
||||
if (maxThreads <= 0) {
|
||||
maxThreads = 1;
|
||||
}
|
||||
final SynchronousQueue<Runnable> queue = new SynchronousQueue<>();
|
||||
|
|
Loading…
Reference in New Issue