diff --git a/server/src/main/java/org/apache/druid/indexing/worker/config/WorkerConfig.java b/server/src/main/java/org/apache/druid/indexing/worker/config/WorkerConfig.java index 49e3c2a7b9b..607cf51e6c4 100644 --- a/server/src/main/java/org/apache/druid/indexing/worker/config/WorkerConfig.java +++ b/server/src/main/java/org/apache/druid/indexing/worker/config/WorkerConfig.java @@ -56,10 +56,10 @@ public class WorkerConfig private Period intermediaryPartitionTimeout = new Period("P1D"); @JsonProperty - private final long globalIngestionHeapLimitBytes = (long) (Runtime.getRuntime().maxMemory() / 6); + private final long globalIngestionHeapLimitBytes = Runtime.getRuntime().maxMemory() / 6; @JsonProperty - private final int numConcurrentMerges = (int) Math.max(1, capacity / 2); + private final int numConcurrentMerges = Math.max(1, capacity / 2); public String getIp() {