[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: |
|
||||
| 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. |