"retrywrites=false" in connection string not working.

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor - P4
    • 100.2.1
    • Affects Version/s: None
    • Component/s: None
    • None

      On the master branch.

      I just copied the mongoimport/main.go did relevant code on my project (since the project provides the feature to upload file to cosmos DB) did `go mod tidy`

      now with correct mongo-URI, it seems the master branch does not respect the retrywrites options and throws the following error

       

       {{2020-08-27T15:34:46.205+0530 connected to: mongodb://[**REDACTED**]@db-driver.mongo.cosmos.azure.com:10255/cdr_test?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@db-archiver@
      2020-08-27T15:34:46.781+0530 Failed: (BadValue) Retryable writes are not supported. Please disable retryable writes by specifying "retrywrites=false" in the connection string or an equivalent driver specific config.
      2020-08-27T15:34:46.781+0530 0 document(s) imported successfully. 0 document(s) failed to import.
      (BadValue) Retryable writes are not supported. Please disable retryable writes by specifying "retrywrites=false" in the connection string or an equivalent driver specific config.}}

       
       

              Assignee:
              Huan Li (Inactive)
              Reporter:
              Virendra Negi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: