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

Add better messages for read preference errors

    • Type: Icon: Task Task
    • Resolution: Incomplete
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.2.0-rc0
    • Component/s: Internal Client
    • Labels:

      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

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

              Created:
              Updated:
              Resolved: