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

Exception class not reported when ismaster failures are reported

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.11.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible

      Currently when ismaster fails, the exception class is not logged. For example, the driver can produce this message when it is instructed to use a nonexistent path with ssl_ca_cert option:

      MONGODB | Error running ismaster on localhost:27741: system lib
      

      The "system lib" part is coming from openssl. With the exception class included, the message looks like this which immediately identifies the source of the problem:

      MONGODB | Error running ismaster on localhost:27741: OpenSSL::X509::StoreError: system lib
      

      This situation was encountered by a SO user in https://stackoverflow.com/questions/58053353/ibmcloud-how-can-i-connect-to-mongodb/58071056.

            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: