-
Type: New Feature
-
Resolution: Won't Fix
-
Priority: 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.
- related to
-
DRIVERS-298 Update Command Spec to include setVersion, electionId and lastOp
- Closed
-
SERVER-18717 compose electionId in OID format from term
- Closed
-
SERVER-19554 Return last visible optime in repldata metadata for all commands
- Closed
-
SERVER-13542 Expose electionId on primary in isMaster
- Closed