diff --git a/server/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDecider.java b/server/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDecider.java index fe001480e5f46..db32ec08ee46e 100644 --- a/server/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDecider.java +++ b/server/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/DiskThresholdDecider.java @@ -27,6 +27,7 @@ import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.settings.SettingsException; import org.elasticsearch.common.unit.ByteSizeValue; +import org.elasticsearch.snapshots.SnapshotShardSizeInfo; import java.util.Map; @@ -146,7 +147,7 @@ public static long sizeOfUnaccountedShards( routing, Math.max(routing.getExpectedShardSize(), 0L), clusterInfo, - null, + SnapshotShardSizeInfo.EMPTY, metadata, routingTable );