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

Include configTerm in ReplSetMetadata

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 4.4.0-rc0, 4.7.0
    • None
    • Replication
    • None
    • Fully Compatible
    • v4.4
    • 28

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: