Skip to content

Commit 5fbd0f9

Browse files
committed
not preferred
1 parent b9dc835 commit 5fbd0f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ public ShardAllocationDecision decideShardAllocation(ShardRouting shard, Routing
606606
@Override
607607
public Decision canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) {
608608
// Move command works every decision except NO
609-
return randomFrom(Decision.YES, Decision.THROTTLE, Decision.THROTTLE);
609+
return randomFrom(Decision.YES, Decision.THROTTLE, Decision.NOT_PREFERRED);
610610
}
611611
})), clusterState, ClusterInfo.EMPTY, SnapshotShardSizeInfo.EMPTY, 0L),
612612
List.of()

0 commit comments

Comments
 (0)