diff --git a/server/src/main/java/io/druid/server/coordinator/CoordinatorDynamicConfig.java b/server/src/main/java/io/druid/server/coordinator/CoordinatorDynamicConfig.java index 395646ad0c2..ea0c15f2c17 100644 --- a/server/src/main/java/io/druid/server/coordinator/CoordinatorDynamicConfig.java +++ b/server/src/main/java/io/druid/server/coordinator/CoordinatorDynamicConfig.java @@ -55,7 +55,7 @@ public class CoordinatorDynamicConfig this.emitBalancingStats = emitBalancingStats; this.balancerComputeThreads = Math.min( Math.max(balancerComputeThreads, 1), - Runtime.getRuntime().availableProcessors() - 1 + Math.max(Runtime.getRuntime().availableProcessors() - 1, 1) ); }