[DRIVERS-298] Update Command Spec to include setVersion, electionId and lastOp Created: 06/Apr/16  Updated: 04/Oct/16  Resolved: 04/Oct/16

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: David Golden
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-13909 Update Command Spec to include setVer... Closed

 Description   

Returning the current setVersion, electionId and lastOp 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



 Comments   
Comment by David Golden [ 04/Oct/16 ]

With updates to SDAM and the implementation of Max Staleness, the need for this is largely addressed.

Comment by Bernie Hackett [ 25/Jun/16 ]

david.golden, is this ticket still relevant? For maxStalenessMS we decided not to use information returned by write commands.

Comment by Bernie Hackett [ 06/Apr/16 ]

Is the idea here to re-evaluate the topology after every command (literally every operation with MongoDB 3.2+)?

Comment by Bernie Hackett [ 06/Apr/16 ]

I don't think we can stop pinging the server with ismaster until we drop support for all server versions that don't already return this information.

Generated at Thu Feb 08 08:21:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.