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

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

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Replication
    • Repl 17 (07/15/16), Repl 18 (08/05/16), Repl 2016-08-29, Repl 2016-10-10

      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.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            3 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: