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

Require ReplSetMetadata.isPrimary, remove OplogQueryMetadata.primaryIndex

    • Minor Change
    • Repl 2020-04-20, Repl 2020-05-04

      The ReplSetMetadata.isPrimary field was introduced in 4.4, with logic to handle conversations with 4.2 nodes that lack the field. In 4.6 we can assume the field is present and remove this logic. I plan to store isPrimary as boost::optional<bool> in 4.4, it can be a bool in 4.6. Remove compatibility logic from ReplSetMetadata::readFromMetadata.

      Remove from src/mongo/db/repl/README.md the claim that ReplSetHeartbeatResponse contains "The node the receiving node thinks is primary"? Check whether that claim is only about ReplSetMetadata.

      The OplogQueryMetadata.primaryIndex field is meaningless, since we don't know what version of the replica set config the index is valid for, see SERVER-47097. Remove it.

      Do not backport this ticket.

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

              Created:
              Updated:
              Resolved: