Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2259

Tools do not properly check for connection establishment before executing

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

      In the new go driver, the return value of client.Connect does not actually determine whether or not a successful connection has been made to a server. A successful client.Connect followed by a successful client.Ping must be performed to properly confirm whether a connection has been made.

      The tools omit the ping step and will incorrectly declare successful connections. This leads to weird output and unexpected behavior.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: