From 24fd89a1fd435441e9a5591bb535c495d47ab57b Mon Sep 17 00:00:00 2001 From: Saurabh Singh Date: Fri, 15 Oct 2021 03:55:17 +0530 Subject: [PATCH] Minor fix for the flaky test to reduce concurrency (#1361) (#1364) 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 --- .../index/ShardIndexingPressureConcurrentExecutionTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/opensearch/index/ShardIndexingPressureConcurrentExecutionTests.java b/server/src/test/java/org/opensearch/index/ShardIndexingPressureConcurrentExecutionTests.java index ce4e7847f73fa..9dba9f92a3330 100644 --- a/server/src/test/java/org/opensearch/index/ShardIndexingPressureConcurrentExecutionTests.java +++ b/server/src/test/java/org/opensearch/index/ShardIndexingPressureConcurrentExecutionTests.java @@ -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);