Sha256: 9988d115176deb67bc858c6e6d7509920eb6788f5ed5d7a6727404c5cb1f1d86

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 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,
                    ismaster: true,
                    hosts: ["a:27017"],
                    setName: "rs"
                }]
        ],

        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,
                    ismaster: false,
                    secondary: true,
                    hosts: ["a:27017"],
                    setName: "wrong"
                }]
        ],

        outcome: {

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongo-2.5.0 spec/support/sdam/rs/stepdown_change_set_name.yml
mongo-2.5.0.beta spec/support/sdam/rs/stepdown_change_set_name.yml