Skip to content

Commit a017664

Browse files
Fixes DesiredBalanceComputerTests Failure (#135183)
Increases the threshold for convergence inside the DesiredBalanceComputerTests .testDesiredBalanceShouldConvergeInABigCluster from 1000 to 2000. Some randomly generated clusters have large numbers of shards, and the previous 1000 threshold was too restrictive. The test is also unmuted. Closes: 135123
1 parent 5e7f305 commit a017664

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,6 @@ tests:
591591
- class: org.elasticsearch.xpack.esql.heap_attack.HeapAttackIT
592592
method: testLookupExplosionBigString
593593
issue: https://github.com/elastic/elasticsearch/issues/135122
594-
- class: org.elasticsearch.cluster.routing.allocation.allocator.DesiredBalanceComputerTests
595-
method: testDesiredBalanceShouldConvergeInABigCluster
596-
issue: https://github.com/elastic/elasticsearch/issues/135123
597594
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
598595
method: test {p0=transform/transforms_start_stop/Test stop transform with force and wait_for_checkpoint true}
599596
issue: https://github.com/elastic/elasticsearch/issues/135135

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
@@ -717,7 +717,7 @@ public void testDesiredBalanceShouldConvergeInABigCluster() {
717717
DesiredBalance.BECOME_MASTER_INITIAL,
718718
input,
719719
queue(),
720-
ignored -> iteration.incrementAndGet() < 1000
720+
ignored -> iteration.incrementAndGet() < 2000
721721
);
722722

723723
var desiredDiskUsage = Maps.<String, Long>newMapWithExpectedSize(nodes);

0 commit comments

Comments
 (0)