-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 3.2.1
-
Component/s: Replication, Sharding
-
None
-
Fully Compatible
-
ALL
-
-
Sharding 18 (08/05/16), Sharding 2016-08-29
-
(copied to CRM)
This ticket is to improve the sharding handling of very stale secondary config servers (although it would apply to shards as well). The proposed solution is for the isMaster response to include the latest optime it has replicated to, so that the replica set monitor, in addition to selecting 'nearer' hosts will also prefer those with most recent optimes.
This problem is also present in the case of fsyncLocked secondaries. It seems that mongos is unable to work properly if one of the config servers (RS) secondaries is locked with db.fsyncLock(). I have tried running some write concern / read concern operations directly on the replica set while a secondary is locked that way and found no problem. Thus it must be the problem of the mongos alone.
- is duplicated by
-
SERVER-24678 Allow select a CSRS node with the smallest maxStalenessMS value
- Closed
- is related to
-
SERVER-22627 ShardRegistry should mark hosts which failed due to OperationTimeout as faulty
- Closed