From 04d56cf6765000e6cdc26eec2b12a13d8fed93db Mon Sep 17 00:00:00 2001 From: Abbas Hussain Date: Tue, 31 Aug 2021 00:14:38 +0530 Subject: [PATCH] Tune datanode count and shards count to improve test run time (#1170) (#1176) Signed-off-by: Abbas Hussain --- .../org/opensearch/snapshots/SnapshotResiliencyTests.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/src/test/java/org/opensearch/snapshots/SnapshotResiliencyTests.java b/server/src/test/java/org/opensearch/snapshots/SnapshotResiliencyTests.java index 2e0c7193642..7cf1933b59a 100644 --- a/server/src/test/java/org/opensearch/snapshots/SnapshotResiliencyTests.java +++ b/server/src/test/java/org/opensearch/snapshots/SnapshotResiliencyTests.java @@ -873,16 +873,15 @@ public class SnapshotResiliencyTests extends OpenSearchTestCase { * Simulates concurrent restarts of data and master nodes as well as relocating a primary shard, while starting and subsequently * deleting a snapshot. */ - @AwaitsFix(bugUrl = "https://github.com/opensearch-project/OpenSearch/issues/579") public void testSnapshotPrimaryRelocations() { final int masterNodeCount = randomFrom(1, 3, 5); - setupTestCluster(masterNodeCount, randomIntBetween(2, 10)); + setupTestCluster(masterNodeCount, randomIntBetween(2, 5)); String repoName = "repo"; String snapshotName = "snapshot"; final String index = "test"; - final int shards = randomIntBetween(1, 10); + final int shards = randomIntBetween(1, 5); final TestClusterNodes.TestClusterNode masterNode = testClusterNodes.currentMaster(testClusterNodes.nodes.values().iterator().next().clusterService.state());