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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.0-rc5, 4.7.0
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Sprint:
      Repl 2020-05-18
    • Linked BF Score:
      13

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: