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

Scanner nodes don't record connection errors

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.2-rc0
    • Affects Version/s: 1.2-beta1
    • Component/s: libmongoc
    • Labels:
      None

      Starting in version 1.2, the driver discovers and monitors the server topology using an event loop with a non-blocking socket per server, to check all servers in parallel.

      If one of those checks times out or the connection is refused, the driver does not record the error.

      The Server Discovery And Monitoring spec suggests recording each server check's error and summing all errors to report why no server is available:

      https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#network-error-when-calling-ismaster

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

              Created:
              Updated:
              Resolved: