Sha256: 8db84e290a2fd8842f0e6bc88aee6e6bfa66dc0ae2b15d932920277960807a80

Contents?: true

Size: 1.46 KB

Versions: 11

Compression:

Stored size: 1.46 KB

Contents

data:
    - { _id: 1, x: 11 }
    - { _id: 2, x: 22 }

# TODO: this should change to 4.0 once 4.0.0 is released.
minServerVersion: '3.99'

tests:
    -
        description: "FindOneAndDelete succeeds after PrimarySteppedDown"
        clientOptions:
            retryWrites: true
        failPoint:
            configureFailPoint: failCommand
            mode: { times: 1 }
            data:
                failCommands: ["findAndModify"]
                errorCode: 189
        operation:
            name: "findOneAndDelete"
            arguments:
                filter: { x: { $gte: 11 }}
                sort: { x: 1 }
        outcome:
            result: { _id: 1, x: 11 }
            collection:
                data:
                    - { _id: 2, x: 22 }
    -
        description: "FindOneAndDelete succeeds after WriteConcernError ShutdownInProgress"
        clientOptions:
            retryWrites: true
        failPoint:
            configureFailPoint: failCommand
            mode: { times: 1 }
            data:
                failCommands: ["findAndModify"]
                writeConcernError:
                    code: 91
                    errmsg: Replication is being shut down
        operation:
            name: "findOneAndDelete"
            arguments:
                filter: { x: { $gte: 11 }}
                sort: { x: 1 }
        outcome:
            result: { _id: 1, x: 11 }
            collection:
                data:
                    - { _id: 2, x: 22 }

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/mongo-2.8.0/spec/spec_tests/data/retryable_writes/findOneAndDelete-serverErrors.yml
mongo-2.8.0 spec/spec_tests/data/retryable_writes/findOneAndDelete-serverErrors.yml
mongo-2.7.2 spec/spec_tests/data/retryable_writes/findOneAndDelete-serverErrors.yml
mongo-2.8.0.rc0 spec/spec_tests/data/retryable_writes/findOneAndDelete-serverErrors.yml
mongo-2.7.1 spec/spec_tests/data/retryable_writes/findOneAndDelete-serverErrors.yml
mongo-2.7.0 spec/spec_tests/data/retryable_writes/findOneAndDelete-serverErrors.yml
mongo-2.7.0.rc0 spec/spec_tests/data/retryable_writes/findOneAndDelete-serverErrors.yml
mongo-2.6.4 spec/support/retryable_writes_tests/findOneAndDelete-serverErrors.yml
mongo-2.6.2 spec/support/retryable_writes_tests/findOneAndDelete-serverErrors.yml
mongo-2.6.1 spec/support/retryable_writes_tests/findOneAndDelete-serverErrors.yml
mongo-2.6.0 spec/support/retryable_writes_tests/findOneAndDelete-serverErrors.yml