提交 37dca4d4 编写于 作者: F fjy

make sure the dynamic config has at least 1 thread

上级 e5454b47
......@@ -53,7 +53,10 @@ public class CoordinatorDynamicConfig
this.replicantLifetime = replicantLifetime;
this.replicationThrottleLimit = replicationThrottleLimit;
this.emitBalancingStats = emitBalancingStats;
this.balancerComputeThreads = Math.min(balancerComputeThreads, Runtime.getRuntime().availableProcessors() - 1);
this.balancerComputeThreads = Math.min(
Math.max(balancerComputeThreads, 1),
Runtime.getRuntime().availableProcessors() - 1
);
}
@JsonProperty
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册