Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1538

Make server description query methods spec compliant

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.0.rc0
    • Affects Version/s: None
    • Component/s: Spec Comp
    • None

      My reading of the sdam spec indicates the following problems in server description query methods (primary? etc.):

      1. They do not check for response being successful, thus requiring the calling code to check if a description is unknown before checking if it's anything other than unknown.
      2. They consider a response without `ok` field successful.
      3. "Other" server description includes unknown and ghost ones. The three should be separate and "other" is not a superset of either ghost or unknown according to my reading of the spec.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: