Sha256: 507f79593f3a399bee605190dcab563d3e238e04d5000ad7d2ae7b858934c9a9

Contents?: true

Size: 1.71 KB

Versions: 26

Compression:

Stored size: 1.71 KB

Contents

runOn:
    -
        minServerVersion: "4.0"
        topology: ["replicaset"]
    -
        minServerVersion: "4.1.7"
        topology: ["sharded"]

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

tests:
    -
        description: "InsertMany succeeds after PrimarySteppedDown"
        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"
        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

26 entries across 26 versions & 1 rubygems

Version Path
mongo-2.9.1 spec/spec_tests/data/retryable_writes/insertMany-serverErrors.yml
mongo-2.10.0.rc0 spec/spec_tests/data/retryable_writes/insertMany-serverErrors.yml
mongo-2.9.1.rc0 spec/spec_tests/data/retryable_writes/insertMany-serverErrors.yml
mongo-2.9.0 spec/spec_tests/data/retryable_writes/insertMany-serverErrors.yml
mongo-2.9.0.rc1 spec/spec_tests/data/retryable_writes/insertMany-serverErrors.yml
mongo-2.9.0.rc0 spec/spec_tests/data/retryable_writes/insertMany-serverErrors.yml