Fix numLookupLoadingThreads default value (#5097)

This commit is contained in:
Jonathan Wei 2017-11-16 15:13:52 -08:00 committed by GitHub
parent 486159ba8c
commit ec6774039e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ public class LookupConfig
@Min(1)
@JsonProperty("numLookupLoadingThreads")
private int numLookupLoadingThreads = Runtime.getRuntime().availableProcessors() / 2;
private int numLookupLoadingThreads = Math.max(1, Runtime.getRuntime().availableProcessors() / 2);
@Min(1)
@JsonProperty("coordinatorFetchRetries")