Sha256: e6ecb42343937bb5d8d5f1f14da80f8f2a41efe4cda3d3f88e91a5e5a8280b20

Contents?: true

Size: 1.46 KB

Versions: 27

Compression:

Stored size: 1.46 KB

Contents

description: "Primary becomes a secondary with wrong setName"

uri: "mongodb://a/?replicaSet=rs"

phases: [

    # Primary is discovered normally.
    {
        responses: [

                ["a:27017", {

                    ok: 1,
                    helloOk: true,
                    isWritablePrimary: true,
                    hosts: ["a:27017"],
                    setName: "rs",
                    minWireVersion: 0,
                    maxWireVersion: 6
                }]
        ],

        outcome: {

            servers: {

                "a:27017": {

                    type: "RSPrimary",
                    setName: "rs"
                }
            },
            topologyType: "ReplicaSetWithPrimary",
            logicalSessionTimeoutMinutes: null,
            setName: "rs"
        }
    },

    # Primary changes its setName and becomes secondary.
    # Remove it and change the topologyType.
    {
        responses: [

                ["a:27017", {

                    ok: 1,
                    helloOk: true,
                    isWritablePrimary: false,
                    secondary: true,
                    hosts: ["a:27017"],
                    setName: "wrong",
                    minWireVersion: 0,
                    maxWireVersion: 6
                }]
        ],

        outcome: {

            servers: {},
            topologyType: "ReplicaSetNoPrimary",
            logicalSessionTimeoutMinutes: null,
            setName: "rs"
        }
    }
]

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
mongo-2.21.0 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.20.1 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mogno-2.20.0 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mogno-1.0.0 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.20.0 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.19.3 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.16.4 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.17.4 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.18.3 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.19.2 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.19.1 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.19.0 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.18.2 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.17.3 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.18.1 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.18.0 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.17.2 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.16.3 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.18.0.beta1 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml
mongo-2.16.2 spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml