-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 3.1.7
-
Component/s: JavaScript, Querying, Shell
-
None
-
Fully Compatible
-
ALL
-
Platform 8 08/28/15
This code assumes the read preference mode has been set, but in some cases it is uninitialized (undefined), in which case it is not equal to "primary", so the slaveOk option is set. If a read preference is not specified, it should default to "primary".
This seems to be the root cause of the linked build failure.
The attached patch helped diagnose the issue, and could be useful for debugging.
- is depended on by
-
SERVER-19341 Finalize how read preference and slaveOk are passed for the find command
- Closed
- related to
-
SERVER-20147 fsm_all_sharded_replication.js - agg_base.js fails due to missing documents in aggregation response
- Closed