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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • Repl 2020-03-09, Repl 2020-03-23
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      ‘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.

            Assignee:
            Xuerui Fa
            Reporter:
            Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: