Sha256: ffe4bb3cd0a57e123cfb23e3edf870281fcedb4cc9fbcb3b7ad259552285cff7

Contents?: true

Size: 1.6 KB

Versions: 57

Compression:

Stored size: 1.6 KB

Contents

runOn:
    # SERVER-35388 introduced OperationNotSupportedInTransaction in 4.0.2
    -
        minServerVersion: "4.0.2"
        topology: ["replicaset"]
    -
        minServerVersion: "4.1.8"
        topology: ["sharded"]

database_name: &database_name "transaction-tests"
collection_name: &collection_name "test"

data: &data
  - {_id: 1}
  - {_id: 2}
  - {_id: 3}
  - {_id: 4}

tests:
  - description: count

    operations:
      - name: startTransaction
        object: session0
      - name: count
        object: collection
        arguments:
          session: session0
          filter:
            _id: 1
        result:
          errorCodeName: OperationNotSupportedInTransaction
          errorLabelsOmit: ["TransientTransactionError", "UnknownTransactionCommitResult"]
      - name: abortTransaction
        object: session0

    expectations:
      - command_started_event:
          command:
            count: *collection_name
            query:
              _id: 1
            readConcern:
            lsid: session0
            txnNumber:
              $numberLong: "1"
            startTransaction: true
            autocommit: false
            writeConcern:
          command_name: count
          database_name: *database_name
      - command_started_event:
          command:
            abortTransaction: 1
            lsid: session0
            txnNumber:
              $numberLong: "1"
            startTransaction:
            autocommit: false
            writeConcern:
          command_name: abortTransaction
          database_name: admin

    outcome:
      collection:
        data:
          *data

Version data entries

57 entries across 57 versions & 2 rubygems

Version Path
mongo-2.17.1 spec/spec_tests/data/transactions/count.yml
mongo-2.16.1 spec/spec_tests/data/transactions/count.yml
mongo-2.17.0 spec/spec_tests/data/transactions/count.yml
mongo-2.16.0 spec/spec_tests/data/transactions/count.yml
mongo-2.13.3 spec/spec_tests/data/transactions/count.yml
mongo-2.14.1 spec/spec_tests/data/transactions/count.yml
mongo-2.15.1 spec/spec_tests/data/transactions/count.yml
mongo-2.16.0.alpha1 spec/spec_tests/data/transactions/count.yml
mongo-2.15.0 spec/spec_tests/data/transactions/count.yml
mongo-2.15.0.alpha spec/spec_tests/data/transactions/count.yml
mongo-2.13.2 spec/spec_tests/data/transactions/count.yml
mongo-2.14.0 spec/spec_tests/data/transactions/count.yml
mongo-2.14.0.rc1 spec/spec_tests/data/transactions/count.yml
mongo-2.13.1 spec/spec_tests/data/transactions/count.yml
mongo-2.12.4 spec/spec_tests/data/transactions/count.yml
mongo-2.11.6 spec/spec_tests/data/transactions/count.yml
mongo-2.13.0 spec/spec_tests/data/transactions/count.yml
mongo-2.12.3 spec/spec_tests/data/transactions/count.yml
mongo-2.13.0.rc1 spec/spec_tests/data/transactions/count.yml
mongo-2.12.2 spec/spec_tests/data/transactions/count.yml