Skip to content

Commit 123a0b9

Browse files
committed
Comments
1 parent a0c62c3 commit 123a0b9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

server/src/test/java/org/elasticsearch/cluster/routing/allocation/allocator/DesiredBalanceReconcilerTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,13 +1016,11 @@ public void testShardsAreRelocatedEvenly() {
10161016
AtomicReference<DesiredBalance> db = new AtomicReference<>(
10171017
desiredBalance(clusterState, (shardId, nodeId) -> nodeOrdinal.apply(nodeId) >= numToRemain)
10181018
);
1019-
10201019
final var allocationService = createTestAllocationService(routingAllocation -> reconcile(routingAllocation, db.get()));
1021-
10221020
clusterState = fullyReconcile(allocationService, clusterState);
10231021
logger.info("Initial state: {}", shardCounts(clusterState));
10241022

1025-
// Recalculate desired balance
1023+
// Recalculate desired balance, marking only remaining nodes as desired
10261024
db.set(desiredBalance(clusterState, (shardId, nodeId) -> nodeOrdinal.apply(nodeId) < numToRemain));
10271025

10281026
// Reconcile it

0 commit comments

Comments
 (0)