From ec6774039e55bbc9ad947cbf7dbaa91044e22846 Mon Sep 17 00:00:00 2001 From: Jonathan Wei Date: Thu, 16 Nov 2017 15:13:52 -0800 Subject: [PATCH] Fix numLookupLoadingThreads default value (#5097) --- .../src/main/java/io/druid/query/lookup/LookupConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")