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

When users run ‘replSetReconfig’ to add a new node with ‘votes:1’, add 'newlyAdded' field

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • Replication
    • None
    • Fully Compatible
    • Repl 2020-03-09, Repl 2020-03-23

    Description

      ‘replSetReconfig’ will internally rewrite the requested config to give the new node’s MemberConfig (an entry in the ‘members’ section of the ReplicaSetConfig) a ‘newlyAdded’ field indicating that the set should not count it towards the current number of voters and that the primary of the set should automatically initiate a ‘replSetReconfig’ to remove the field once initial sync completes.

      Define a ‘new node’ as any node with an ‘_id’ field that is not present in the current config.
      This matches the definition used in Safe Reconfig.

      Log any rewritten configs.

      Attachments

        Activity

          People

            xuerui.fa@mongodb.com Xuerui Fa
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: