Uploaded image for project: 'MongoDB ETL Tools'
  1. MongoDB ETL Tools
  2. TOOLS-2070

Using --uri without a timeout parameter overrides default Timeout to zero

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Component/s: All Tools
    • Labels:
      None

      Description

      When a --uri is provided, the URI connection timeout (usually zero) overrides the default connection timeout of 3 seconds:

      // in setOptionsFromURI in common/option/options.go 
      opts.Connection.Timeout = int(cs.ConnectTimeout / time.Millisecond)
      

      This manifests as a tool hanging on connection if a topology is down or if a cluster requires TLS and the tool isn't in TLS mode.

        Attachments

          Activity

            People

            • Assignee:
              backlog-server-tools Backlog - Server Tools Team
              Reporter:
              david.golden David Golden
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: