-
Type:
Improvement
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
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.