Sha256: a872787ecd1dab751b4600bc02e4128f9d805729bdbfc6e7af3d80aabb694099

Contents?: true

Size: 1.37 KB

Versions: 8

Compression:

Stored size: 1.37 KB

Contents

description: "New primary with wrong setName"

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

phases: [

    # Primary is discovered normally, and tells us about server B.
    {
        responses: [

                ["a:27017", {

                    ok: 1,
                    ismaster: true,
                    hosts: ["a", "b"],
                    setName: "rs"
                }]
        ],

        outcome: {

            servers: {

                "a:27017": {

                    type: "RSPrimary",
                    setName: "rs"
                },

                "b:27017": {

                    type: "Unknown",
                    setName:
                }
            },

            topologyType: "ReplicaSetWithPrimary",
            setName: "rs"
        }
    },

    # B is actually the primary of another replica set. It's removed, and
    # topologyType remains ReplicaSetWithPrimary.
    {
        responses: [

                ["b:27017", {

                    ok: 1,
                    ismaster: true,
                    hosts: ["a"],
                    setName: "wrong"
                }]
        ],

        outcome: {

            servers: {

                "a:27017": {

                    type: "RSPrimary",
                    setName: "rs"
                }
            },

            topologyType: "ReplicaSetWithPrimary",
            setName: "rs"
        }
    }
]

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mongo-2.0.5 spec/support/sdam/rs/new_primary_wrong_set_name.yml
mongo-2.0.4 spec/support/sdam/rs/new_primary_wrong_set_name.yml
mongo-2.0.3 spec/support/sdam/rs/new_primary_wrong_set_name.yml
mongo-2.0.2 spec/support/sdam/rs/new_primary_wrong_set_name.yml
mongo-2.0.1 spec/support/sdam/rs/new_primary_wrong_set_name.yml
mongo-2.0.0 spec/support/sdam/rs/new_primary_wrong_set_name.yml
mongo-2.0.0.rc spec/support/sdam/rs/new_primary_wrong_set_name.yml
mongo-2.0.0.beta spec/support/sdam/rs/new_primary_wrong_set_name.yml