Skip to content

Commit

Permalink
Minor fix for the flaky test to reduce concurrency (#1361) (#1364)
Browse files Browse the repository at this point in the history
Fixes flakiness for test testReplicaThreadedThroughputDegradationAndRejection.

Reduced the number of threads concurrently executing from the initial range between (100-120) to a new range between (80-100), as the previous range was breaking the node limits set as 10kb, for every execution where number of threads were greater than 110.

Signed-off-by: Saurabh Singh <[email protected]>
  • Loading branch information
getsaurabh02 authored Oct 14, 2021
1 parent d151082 commit 24fd89a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ public void testReplicaThreadedThroughputDegradationAndRejection() throws Except
.put(ShardIndexingPressureMemoryManager.THROUGHPUT_DEGRADATION_LIMITS.getKey(), 1)
.put(ShardIndexingPressureSettings.REQUEST_SIZE_WINDOW.getKey(), 100)
.build();
final int NUM_THREADS = scaledRandomIntBetween(100, 120);
final int NUM_THREADS = scaledRandomIntBetween(80, 100);
ShardIndexingPressure shardIndexingPressure = new ShardIndexingPressure(settings, clusterService);
Index index = new Index("IndexName", "UUID");
ShardId shardId1 = new ShardId(index, 0);
Expand Down

0 comments on commit 24fd89a

Please sign in to comment.