Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1203

Include ismaster errors in server-selection error for pooled client

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: 1.2.0
    • Component/s: None
    • None

      derick points out that server selection error messages from pooled clients are less helpful than from single clients. E.g., a single client that can't reach MongoDB says:

      No suitable servers found (`serverselectiontryonce` set): [connection timeout calling ismaster on 'localhost:44444']

      A pooled client says:

      Timed out trying to select a server

      Bring the pooled client's error message up to spec. Server Selection Spec says "Drivers should use server descriptions and their error attributes (if set) to return useful error messages".

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: