From f0c40709cdddc953834b827509b817766d9c528d Mon Sep 17 00:00:00 2001 From: fjy Date: Tue, 20 May 2014 13:20:43 -0700 Subject: [PATCH] fix coordinator dynamic configs --- .../io/druid/server/coordinator/CoordinatorDynamicConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ); }