Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1284

mongosh does not pass retryWrites parameter correctly

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.6.1
    • Affects Version/s: 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4
    • Component/s: Connectivity
    • Labels:
      None
    • 2
    • Not Needed
    • Iteration Narwhal

      Problem Statement/Rationale

      using MongoSH with --retryWrites=false does not pass it and the connection string appearing in the "Connection to" does not show it.{}

      Steps to Reproduce

      Initiate a connection using --retryWrites=false

       

       mongosh --username <pass> --password <pass> --retryWrites=false

      In the "Connection to" section no retryWrites is specified:

      Connecting to:        mongodb://<credentials>@127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.5.0

       

      initiating a connection using string URI and inline retryWrites=false

       

      mongosh "mongodb://<user>:<pass>@127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.5.0&retryWrites=false"

       

      In the "Connection to" section no retryWrites is specified:

      Connecting to:        mongodb://<credentials>@127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.5.0&retryWrites=false

      Expected Results

      When the connection parameter --retryWrites=false is specified it's expected to be picked up correctly.

      Actual Results

      The parameter --retryWrites gets ignored if passed as a connection parameter, but gets picked up properly if inserted inline in the connection string URI

       

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            elshafey89@gmail.com Mohamed Elshafey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'slack.nextup.jira:slack-integration-plus'. Please contact your Jira administrators.