replSetReconfig.js should check ismaster before running the reconfig command

XMLWordPrintableJSON

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

      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
              Reporter:
              Pavithra Vetriselvan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: