Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1274

commitTransaction retry sometimes fails with InvalidOptions error

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.2.2, 2.3.0
    • Affects Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None

      The operation executor currently only gets a transaction ID after a connection has been checked out, which means when a retry occurs in response to a check out failure, a transaction ID is never added to the command. This leads to an error, since it is invalid to specify autocommit: false without a transaction id.

      example failure: https://evergreen.mongodb.com/test_log/mongo_rust_driver_tests__async_runtime~tokio_auth_and_tls~openssl_auth_and_tls_compressor~zlib_compression_os~ubuntu_18.04_test_4.2_sharded_cluster_patch_13d3b4c5ddf24af6584ee09f052f4a072531d5b4_625dac0f1e2d177a9fad5a11_22_04_18_18_21_05/0?test_name=40ddb092f8ca520814c8224f52999b78&group_id=#L21

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: