Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-730

Better error messaging for when we ignore read preference

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0
    • 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.

            Assignee:
            sridhar Sridhar Nanjundeswaran (Inactive)
            Reporter:
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: