Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6707

Add better messages for read preference errors

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Incomplete
    • 2.2.0-rc0
    • None
    • Internal Client

    Description

      Drivers should return useful error messages, as in the following examples, when there are no members matching the ReadPreference:

      "PRIMARY cannot be combined with tags"
      "No replica set primary available for query with ReadPreference PRIMARY"
      "No replica set secondary available for query with ReadPreference SECONDARY"
      For NEAREST, PRIMARY_PREFERRED, or SECONDARY_PREFERRED, "No replica set members available for query"
      "No replica set member available for query with ReadPreference " + pref + " and tags " + tags

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              randolph@mongodb.com Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: