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

Race condition in replsetprio1.js when initiating replset with nodes having different priorities

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.2.0, 4.4.11, 5.0.5, 5.1.1
    • Replication
    • None
    • Fully Compatible
    • ALL
    • v5.1, v5.0, v4.4
    • Repl 2021-11-01
    • 45

    Description

      replsetprio1.js has a race condition when initiating the replset. The nodes are initially configured with different priorities, and when initiating the replset, we add one node at a time by calling replsetReconfig. When adding the third node, there could be a concurrent priority takeover that causes primary node to stepdown and  failing replsetReconfig command to fail. As a result, the replset initiation process fails.

      Attachments

        Activity

          People

            wenbin.zhu@mongodb.com Wenbin Zhu
            wenbin.zhu@mongodb.com Wenbin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: