Sha256: 56d3a7be1c86fd859e0de64828eaf3d76501d7b5dd7352f7a5768146b9eedf9f

Contents?: true

Size: 1.75 KB

Versions: 11

Compression:

Stored size: 1.75 KB

Contents

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

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

tests:
    -
        description: "InsertMany succeeds after PrimarySteppedDown"
        clientOptions:
            retryWrites: true
        failPoint:
            configureFailPoint: failCommand
            mode: { times: 1 }
            data:
                failCommands: ["insert"]
                errorCode: 189
        operation:
            name: "insertMany"
            arguments:
                documents:
                    - { _id: 2, x: 22 }
                    - { _id: 3, x: 33 }
                options: { ordered: true }
        outcome:
            result:
                insertedIds: { 0: 2, 1: 3 }
            collection:
                data:
                    - { _id: 1, x: 11 }
                    - { _id: 2, x: 22 }
                    - { _id: 3, x: 33 }
    -
        description: "InsertMany succeeds after WriteConcernError ShutdownInProgress"
        clientOptions:
            retryWrites: true
        failPoint:
            configureFailPoint: failCommand
            mode: { times: 1 }
            data:
                failCommands: ["insert"]
                writeConcernError:
                    code: 91
                    errmsg: Replication is being shut down
        operation:
            name: "insertMany"
            arguments:
                documents:
                    - { _id: 2, x: 22 }
                    - { _id: 3, x: 33 }
                options: { ordered: true }
        outcome:
            result:
                insertedIds: { 0: 2, 1: 3 }
            collection:
                data:
                    - { _id: 1, x: 11 }
                    - { _id: 2, x: 22 }
                    - { _id: 3, x: 33 }

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/insertMany-serverErrors.yml
mongo-2.8.0 spec/spec_tests/data/retryable_writes/insertMany-serverErrors.yml
mongo-2.7.2 spec/spec_tests/data/retryable_writes/insertMany-serverErrors.yml
mongo-2.8.0.rc0 spec/spec_tests/data/retryable_writes/insertMany-serverErrors.yml
mongo-2.7.1 spec/spec_tests/data/retryable_writes/insertMany-serverErrors.yml
mongo-2.7.0 spec/spec_tests/data/retryable_writes/insertMany-serverErrors.yml
mongo-2.7.0.rc0 spec/spec_tests/data/retryable_writes/insertMany-serverErrors.yml
mongo-2.6.4 spec/support/retryable_writes_tests/insertMany-serverErrors.yml
mongo-2.6.2 spec/support/retryable_writes_tests/insertMany-serverErrors.yml
mongo-2.6.1 spec/support/retryable_writes_tests/insertMany-serverErrors.yml
mongo-2.6.0 spec/support/retryable_writes_tests/insertMany-serverErrors.yml