[JAVA-1495] MongoClientURI ignores readPreferenceTags if there is no readPreference Created: 08/Oct/14  Updated: 06/Apr/15  Resolved: 06/Apr/15

Status: Closed
Project: Java Driver
Component/s: Configuration
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

For example, the read preference for this URI

new MongoClientURI("mongodb://localhost/?readpreferencetags=dc:ny");

will default to primary and ignore the tags. Instead, it should throw an exception.


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