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

two_nodes_priority_takeover.js should run replSetReconfig command directly instead of using reconfig helper

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc5, 4.7.0
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.4
    • Repl 2020-05-18
    • 13

      The two_nodes_priority_takeover.js test does a reconfig to swap the priority of two nodes in a replica set, and then expects the new, higher priority node to take over and become primary. Right now, it uses this reconfig helper which may execute a single config change as a series of multiple reconfigs. This makes the test unstable, since the final reconfig executed by that helper may occur after the priorities have switched, so it may interfere with the nodes stepping down. We should execute the reconfig with a plain reconfig command so it can happen in a single step and avoid this issue.

            Assignee:
            william.schultz@mongodb.com William Schultz (Inactive)
            Reporter:
            william.schultz@mongodb.com William Schultz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: