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

Test retryable writes in transactions

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Spec Comp, Tests
    • None

      Per the discussion in #drivers, retryable writes are specified to not be performed when in transaction context. retryable_writes_spec.rb has no mention of the word "transaction", and retryable_spec.rb has the following:

      allow(session).to receive(:in_transaction?).and_return(false)
      

      These tests need to be expanded to test that writes are not retried when transactions are used.

      Neither modern nor legacy retryable writes should be performed when in a transaction.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: