Ensure new Mongo shell connection creation returns informative error code

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0, 8.2.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.2
    • CAR Team 2025-07-21, CAR Team 2025-08-04
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When creating a new Mongo connection to a shard in a test (such as `let host = new Mongo(st.shard0.host);`), the error code thrown while creating the connection is converted into an internal error. This has already been changed by SERVER-87954 to return the correct error code when TLS parameters are specified. We should extend this so that we always return an accurate error code.

            Assignee:
            Allison Easton
            Reporter:
            Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: