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

Expose electionId on primary in isMaster

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.10, 2.8.0-rc1
    • Component/s: Replication, Write Ops
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Backport Completed:

      Description

      By exposing the electionId so clients (drivers really) will be able to detect when an election has occurred and a new primary should be discovered. Currently this is just exposed for sharding clients, but we can expose it all the time and in isMaster which clients poll periodically.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                9 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: