[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 JAVA-812

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