Tune datanode count and shards count to improve test run time (#1170) (#1176)

Signed-off-by: Abbas Hussain <abbas_10690@yahoo.com>
This commit is contained in:
Abbas Hussain 2021-08-31 00:14:38 +05:30 committed by GitHub
parent 079fd77062
commit 04d56cf676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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());