Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2133

Require startTransaction to report an error if the driver detects that transactions are not supported

    • Type: Icon: Spec Change Spec Change
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: Transactions
    • Not Needed
    • Hide

      Summary of necessary driver changes

      •  

      Commits for syncing spec/prose tests
      (and/or refer to an existing language POC if needed)

      •  

      Context for other referenced/linked tickets

      •  
      Show
      Summary of necessary driver changes   Commits for syncing spec/prose tests (and/or refer to an existing language POC if needed)   Context for other referenced/linked tickets  
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-5764 Gone away
      CXX-3130 Gone away
      CSHARP-5367 Gone away
      GODRIVER-3388 Gone away
      JAVA-5659 Gone away
      NODE-6464 Gone away
      MOTOR-1380 Gone away
      PYTHON-4913 Gone away
      PHPLIB-1556 Gone away
      RUBY-3560 Gone away
      RUST-2063 Gone away
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-5764 Gone away CXX-3130 Gone away CSHARP-5367 Gone away GODRIVER-3388 Gone away JAVA-5659 Gone away NODE-6464 Gone away MOTOR-1380 Gone away PYTHON-4913 Gone away PHPLIB-1556 Gone away RUBY-3560 Gone away RUST-2063 Gone away

      The startTransaction section of the Transaction spec states:

      startTransaction SHOULD report an error if the driver can detect that transactions are not supported by the deployment. A deployment does not support transactions when the deployment does not support sessions, or maxWireVersion < 7, or the maxWireVersion < 8 and the topology type is Sharded.

      I recently discovered that libmongoc does not implement the maxWireVersion < 7 check and opened CDRIVER-3161 to address that. There is certainly not reason that libmongoc could not implement this.

      I would propose changing the spec to MUST unless there is a legitimate reason to keep SHOULD.

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Andreas Braun Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: