We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 160d763 commit 7b356d4Copy full SHA for 7b356d4
server/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/DesiredBalanceReconciler.java
@@ -180,9 +180,7 @@ private void updateDesireBalanceMetrics(AllocationStats allocationStats) {
180
allocation.clusterInfo(),
181
desiredBalance
182
);
183
- Map<DiscoveryNode, NodeAllocationStatsAndWeight> nodeToStatsAndWeights = new HashMap<>(
184
- nodeIDsToStatsAndWeights.size()
185
- );
+ Map<DiscoveryNode, NodeAllocationStatsAndWeight> nodeToStatsAndWeights = new HashMap<>(nodeIDsToStatsAndWeights.size());
186
for (var nodeStatsAndWeight : nodeIDsToStatsAndWeights.entrySet()) {
187
var node = allocation.nodes().get(nodeStatsAndWeight.getKey());
188
assert node != null;
0 commit comments