[SERVER-33931] Make sharded cluster fixture start shards as single node replica sets Created: 16/Mar/18  Updated: 29/Oct/23  Resolved: 10/Oct/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Task Priority: Major - P3
Reporter: Janna Golden Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: ShardsAsReplicaSetsInTest
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-38898 Update suites using ShardedClusterFix... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2019-10-07, Sharding 2019-10-21
Participants:
Linked BF Score: 60

 Description   

The fuzzer starts sharded clusters using shardedcluster.py, which still starts shards as standalones. We should change this to starting shards as single node replica sets.



 Comments   
Comment by Githook User [ 10/Oct/19 ]

Author:

{'username': 'cheahuychou', 'email': 'cheahuychou.mao@mongodb.com', 'name': 'Cheahuychou Mao'}

Message: SERVER-33931 Make sharded cluster fixture start shards as single node replica sets
Branch: master
https://github.com/mongodb/mongo/commit/4a82f6d5587d043dffccd6c7944ab01bf2a12438

Comment by Esha Maharishi (Inactive) [ 26/Sep/19 ]

The commit for SERVER-28968 introduced a way for ShardedClusterFixture to use replica set shards, but the default is still to use standalone shards.

Many suites do override the default:

// Total number of suites that use the ShardedClusterFixture
$ grep -rIn ShardedClusterFixture buildscripts/resmokeconfig/suites/ | wc -l
58
 
// Number of suites that override num_rs_nodes_per_shard
$ grep -rIn num_rs_nodes_per_shard buildscripts/resmokeconfig/suites/ | wc -l
44

 This ticket is to attempt to change the default in ShardedClusterFixture to "1" so that by default, the fixture uses single node replica set shards.

If any suites require standalone shards, the default should be overridden in them to be "None" and a comment should be placed above this describing why.

Generated at Thu Feb 08 04:35:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.