[SERVER-6707] Add better messages for read preference errors Created: 03/Aug/12  Updated: 24/Feb/17  Resolved: 24/Feb/17

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: 2.2.0-rc0
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Randolph Tan Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: cxxcopy
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-4464 drivers and mongos should support 5 r... Closed
Participants:

 Description   

Drivers should return useful error messages, as in the following examples, when there are no members matching the ReadPreference:

"PRIMARY cannot be combined with tags"
"No replica set primary available for query with ReadPreference PRIMARY"
"No replica set secondary available for query with ReadPreference SECONDARY"
For NEAREST, PRIMARY_PREFERRED, or SECONDARY_PREFERRED, "No replica set members available for query"
"No replica set member available for query with ReadPreference " + pref + " and tags " + tags


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