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

replSetReconfig.js should check ismaster before running the reconfig command

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.7, 4.4.0-rc2, 4.7.0
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.4, v4.2
    • Repl 2020-04-20
    • 42

      replSetReconfig.js currently runs an ismaster command on a node, but checks for the primary field. Doing so would just indicate that the node has been elected.

      We really want to check the ismaster field, which implies that the node is ready to accept writes.

      This change should be backported to all earlier affected versions.

            Assignee:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: