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: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: Transactions
    • None
    • Needed

      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:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: