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

Better error messaging for when we ignore read preference

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.0
    • None
    • None
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: