[SERVER-64445] Create MultipleReplicatorFixture Created: 11/Mar/22  Updated: 29/Oct/23  Resolved: 28/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Vishnu Kaushik Assignee: Huayu Ouyang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Repl 2022-03-21, Repl 2022-04-04
Participants:

 Description   

Create the multiple replicator fixture by copying the existing ReplicatorFixture, and then stubbing out its methods.

Create a new variable called self.replicators that is a list of replicator fixtures. These replicator fixtures can be created and initialized like this. Ensure that loggers and their prefixes are properly created for each child replicator when you create each replicator's logger, like so.

Then, in each method you have stubbed out (setup, start, stop, etc.) call the method for each of the replicators in the list by looping through (so call setup, etc. on each replicator).

In the start method (or in setup), wherever is most appropriate, you will have to set the --shardID CLI param for each ReplicatorFixture. This can be done by calling the ReplicatorFixture's set_cli method.

See comment for more info.



 Comments   
Comment by Githook User [ 25/Mar/22 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-64445 Create MultipleReplicatorFixture
Branch: master
https://github.com/mongodb/mongo/commit/b253651b0d72ac2d41cae553ba819b731a275b18

Generated at Thu Feb 08 06:00:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.