mirror of https://github.com/apache/druid.git
make sure the dynamic config has at least 1 thread
This commit is contained in:
parent
e5454b47f1
commit
37dca4d437
|
@ -53,7 +53,10 @@ public class CoordinatorDynamicConfig
|
||||||
this.replicantLifetime = replicantLifetime;
|
this.replicantLifetime = replicantLifetime;
|
||||||
this.replicationThrottleLimit = replicationThrottleLimit;
|
this.replicationThrottleLimit = replicationThrottleLimit;
|
||||||
this.emitBalancingStats = emitBalancingStats;
|
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
|
@JsonProperty
|
||||||
|
|
Loading…
Reference in New Issue