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

add 'forTest' flag to movePrimary, and if it's set, make _configsvrMovePrimary call movePrimary on the primary shard

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.3
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2018-02-12, Sharding 2018-02-26, Sharding 2018-03-12

      We want to be able to incrementally test the new movePrimary protocol as it's being developed, so let's add a temporary 'forTest' boolean flag to mongo's and the config server's movePrimary IDL definitions.

      If the flag is set, configsvrMovePrimary should call movePrimary against the primary shard; otherwise, it should execute the existing movePrimary logic.

      Add a jstest that calls movePrimary with the 'forTest' flag to ensure it's working.

            Assignee:
            blake.oler@mongodb.com Blake Oler
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: