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

Include configTerm in ReplSetMetadata

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • v4.4
    • 28

      Members include ReplSetMetadata in heartbeat requests and replies, and oplog query replies, in order to gossip their replication state. Members include their configVersion when they send ReplSetMetadata today, but configVersion alone isn't enough for members to be certain they have the same replica set config.

      In 4.4, for the Safe Reconfig project, we added a term field to replica set configs. Add this term as a "configTerm" field to ReplSetMetadata. If two nodes have the same configVersion and configTerm, then they certainly have the same config.

      There is no specific use for configTerm in ReplSetMetadata now, but I anticipate it will be useful if we add it. Adding it now in 4.4 will make it usable in 4.6 without upgrade/downgrade fuss.

      (We thought of this during the SERVER-46667 investigation.)

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: