[CSHARP-730] Better error messaging for when we ignore read preference Created: 18/Apr/13  Updated: 03/Sep/14  Resolved: 03/Sep/14

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0

Type: Improvement Priority: Major - P3
Reporter: Craig Wilson Assignee: Sridhar Nanjundeswaran
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends

 Description   

When a command is run that is not on the approved list of commands allowed to be sent to secondaries, we switch the read preference to primary without telling the user. It makes subsequent error messages hard to understand and leads them and us down the wrong path.

We should indicate in any error that results that the read preference was switched because the command is not allowed to run on a secondary.


Generated at Wed Feb 07 21:37:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.