Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-64445

Create MultipleReplicatorFixture

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Repl 2022-03-21, Repl 2022-04-04

      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.

            Assignee:
            huayu.ouyang@mongodb.com Huayu Ouyang
            Reporter:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: