Skip to content

Commit 520608f

Browse files
committed
Remove redundant assert
1 parent 287f350 commit 520608f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/ClusterBalanceStats.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ private static NodeBalanceStats createFrom(
233233
for (ShardRouting shardRouting : routingNode) {
234234
var indexMetadata = metadata.indexMetadata(shardRouting.index());
235235
var shardSize = clusterInfo.getShardSize(shardRouting, 0L);
236-
assert indexMetadata != null;
237236
forecastWriteLoad += writeLoadForecaster.getForecastedWriteLoad(indexMetadata).orElse(0.0);
238237
forecastShardSize += indexMetadata.getForecastedShardSizeInBytes().orElse(shardSize);
239238
actualShardSize += shardSize;

0 commit comments

Comments
 (0)