Sha256: 0df06ff13dd3c965b66f1df1c5222dedf39f54c072b87fa86bad2f330ac9b7b4

Contents?: true

Size: 1.65 KB

Versions: 12

Compression:

Stored size: 1.65 KB

Contents

description: "do not retry read in a transaction"

schemaVersion: "1.4"

runOnRequirements:
  - minServerVersion: "4.0.0"
    topologies: [ replicaset ]
  - minServerVersion: "4.2.0"
    topologies: [ sharded, load-balanced ]

createEntities:
  - client:
      id: &client0 client0
      useMultipleMongoses: false
      observeEvents: [commandStartedEvent]
      uriOptions: { retryReads: true }
  - database:
      id: &database0 database0
      client: *client0
      databaseName: &databaseName retryable-read-in-transaction-test
  - collection:
      id: &collection0 collection0
      database: *database0
      collectionName: &collectionName coll
  - session:
      id: &session0 session0
      client: *client0

tests:
  - description: "find does not retry in a transaction"
    operations:

      - name: startTransaction
        object: *session0

      - name: failPoint # fail the following find command
        object: testRunner
        arguments:
          client: *client0
          failPoint:
            configureFailPoint: failCommand
            mode: { times: 1 }
            data:
              failCommands: [find]
              closeConnection: true

      - name: find
        object: *collection0
        arguments:
          filter: {}
          session: *session0
        expectError:
          isError: true
          errorLabelsContain: ["TransientTransactionError"]
    expectEvents:
      - client: *client0
        events:
          - commandStartedEvent:
              command:
                find: *collectionName
                filter: {}
                startTransaction: true
              commandName: find
              databaseName: *databaseName

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
mongo-2.21.0 spec/spec_tests/data/transactions_unified/do-not-retry-read-in-transaction.yml
mongo-2.20.1 spec/spec_tests/data/transactions_unified/do-not-retry-read-in-transaction.yml
mogno-2.20.0 spec/spec_tests/data/transactions_unified/do-not-retry-read-in-transaction.yml
mogno-1.0.0 spec/spec_tests/data/transactions_unified/do-not-retry-read-in-transaction.yml
mongo-2.20.0 spec/spec_tests/data/transactions_unified/do-not-retry-read-in-transaction.yml
mongo-2.19.3 spec/spec_tests/data/transactions_unified/do-not-retry-read-in-transaction.yml
mongo-2.18.3 spec/spec_tests/data/transactions_unified/do-not-retry-read-in-transaction.yml
mongo-2.19.2 spec/spec_tests/data/transactions_unified/do-not-retry-read-in-transaction.yml
mongo-2.19.1 spec/spec_tests/data/transactions_unified/do-not-retry-read-in-transaction.yml
mongo-2.19.0 spec/spec_tests/data/transactions_unified/do-not-retry-read-in-transaction.yml
mongo-2.18.2 spec/spec_tests/data/transactions_unified/do-not-retry-read-in-transaction.yml
mongo-2.18.1 spec/spec_tests/data/transactions_unified/do-not-retry-read-in-transaction.yml