Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1876

Can't disable retryable read/writes via URI options

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.10.0.rc0, 2.9.1.rc0
    • Affects Version/s: 2.9.0
    • Component/s: None
    • None
    • Environment:
      MongoDB 3.6.12, MongoDB 4.0.2; ruby 2.3.7
    • Fully Compatible

      Steps to reproduce:

      1. Deploy a single node replica set with MMAPv1:

      mongod --port 27017 --fork --dbpath ./data/ --logappend --storageEngine mmapv1 --logpath "./mongodb.log" --replSet rubyTest

      2. Initiate the replica set

      mongo --port 27017
      use admin
      rs.initiate()

      3. Connect to the deployment with a connection string containing arguments retryWrites=false&retryReads=false. See test3.rb attached.

      4. Attempting to results in "Transaction numbers are only allowed on storage engines that support document-level locking" error. See error.txt attached.

      I was able to reproduce this on 4.0 as well.

        1. error.txt
          5 kB
          Adam Harrison
        2. test3.rb
          0.2 kB
          Adam Harrison

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            adam.harrison@mongodb.com Adam Harrison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: