[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: |
|
||||||||
| 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. |
| 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. |