[SERVER-6934] Make getLastError return servers that didn't get a write Created: 04/Sep/12  Updated: 20/Feb/15  Resolved: 20/Feb/15

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-15427 Add command to manage the slave map Backlog
is related to SERVER-3329 Add more response fields for getLastE... Closed
is related to SERVER-4073 getLastError should return the member... Closed
Participants:

 Description   

Scott pointed out that it would be helpful to have a list of servers that didn't get the write and the OpTime that they are replicated to. That way, if w:something fails and all the other servers are an hour behind, the driver knows that there isn't much point in retrying. Conversely, if the other servers are almost up-to-date, it might be.

However, this is quite difficult because we don't keep a good map of local.slaves entries -> replica set members. local.slaves could have members in it that have since been removed from the set and we wouldn't want to list those in getLastError's response.

Also, we'll have to do something different for master/slave.


Generated at Thu Feb 08 03:13:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.