Skip to content

Commit ed7caa4

Browse files
committed
Explicitly configure max tracking in test
1 parent 19b7475 commit ed7caa4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,7 @@ public Decision canAllocate(ShardRouting shardRouting, RoutingNode node, Routing
14551455
final var clusterSettings = createBuiltInClusterSettings(
14561456
Settings.builder()
14571457
.put(UndesiredAllocationsTracker.UNDESIRED_ALLOCATION_DURATION_LOG_THRESHOLD_SETTING.getKey(), undesiredAllocationThreshold)
1458+
.put(UndesiredAllocationsTracker.MAX_UNDESIRED_ALLOCATIONS_TO_TRACK.getKey(), 10)
14581459
.build()
14591460
);
14601461
final var timeProvider = new AdvancingTimeProvider();

0 commit comments

Comments
 (0)