[JAVA-813] Default read preference of primary is superseding slaveOk query option when connected to mongos Created: 23/Apr/13 Updated: 25/Jun/13 Resolved: 24/Apr/13 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Cluster Management |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The driver is setting both the slaveok bit in query options and {$readPreference : {"mode" : "primary}}, and as of mongos 2.2, the read preference wins and queries are routed to shard primaries. |
| Comments |
| Comment by Jeffrey Yemin [ 24/Apr/13 ] |
|
Duplicates |