diff --git a/processing/src/main/java/io/druid/query/lookup/LookupConfig.java b/processing/src/main/java/io/druid/query/lookup/LookupConfig.java index 18cab141dd8..810afa9d3d2 100644 --- a/processing/src/main/java/io/druid/query/lookup/LookupConfig.java +++ b/processing/src/main/java/io/druid/query/lookup/LookupConfig.java @@ -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")