[JAVA-809] Better error message when ignoring user-specified read preference results in a failure Created: 18/Apr/13 Updated: 25/Nov/15 Resolved: 25/Nov/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Monitoring |
| Affects Version/s: | 2.11.1 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| 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 | ||
| Issue Links: |
|
||||
| Description |
|
The driver has an internal list of commands that are allowed to be sent to a secondary. If the command is not on the list, we redirect it to primary, regardless of the requested read preference. The driver tell the user this and error messages that result from not being able to talk to a primary are misleading. Error messages should indicate clearly that the read preference was switched to primary. |
| Comments |
| Comment by Jeffrey Yemin [ 25/Nov/15 ] |
|
As of 3.0.0 the driver no longer ignores the user-specified read preference for a pre-defined list of commands. |