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

Update Command Spec to include setVersion, electionId, lastOp, lastWriteDate

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • None
    • None
    • Replication
    • None
    • Replication
    • Repl 17 (07/15/16), Repl 18 (08/05/16), Repl 2016-08-29, Repl 2016-10-10

    Description

      Returning the current setVersion, electionId, lastOp, lastWriteDate would allow drivers to avoid pinging the server using ismaster continuously to establish the topology of the replicaset as well as provide monotonic read operations.

      In case of a primary election a new electionId would be returned and in the case of a new secondary being added or removed a new setVersion would be returned.

      If adding a new secondary that caused an election the server might return both a new setVersion and a new electionId.

      the lastOp field would allow for simpler monotonic read operations.
      lastWriteDate could be used for staleness calculations. It will become necessary to have it separate from lastOp once we remove the embedded timestamp from the lastOp field.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-repl Backlog - Replication Team
              david.golden@mongodb.com David Golden
              Votes:
              3 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: