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

replSetReconfig.js should check ismaster before running the reconfig command

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: