Original Title and description: Some read-only operations (eg count,aggregate) fail against the config database when the config server primary is unreachable
If you have a sharded cluster where the mongos cannot reach the config server primary, and you try to run count on any collection in the config server, it fails saying it cannot find the primary, even if you set the read preference to 'secondary'. This seems to only affect 3.2, this seems to have been fixed somehow in master
- is related to
-
SERVER-22043 count helper doesn't apply read preference
- Closed
-
SERVER-23625 Some read-only operations (eg count,aggregate) hang indefinitely if the primary for the shard is unreachable from mongos
- Closed
- related to
-
SERVER-7423 Support commands for read preference
- Closed