Sha256: 9744add014f3fbfa137732451806fa639f9b0c2ce48c1aaa0397ab858ff0b71f

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 KB

Contents

description: "New primary with equal electionId"

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

phases: [

    # A and B claim to be primaries, with equal electionIds.
    {
        responses: [
            ["a:27017", {
                ok: 1,
                ismaster: true,
                hosts: ["a:27017", "b:27017"],
                setName: "rs",
                electionId: {"$oid": "000000000000000000000001"}
            }],
            ["b:27017", {
                ok: 1,
                ismaster: true,
                hosts: ["a:27017", "b:27017"],
                setName: "rs",
                electionId: {"$oid": "000000000000000000000001"}
            }]
        ],

        # No choice but to believe the latter response.
        outcome: {
            servers: {
                "a:27017": {
                    type: "Unknown",
                    setName: ,
                    electionId: ,
                },
                "b:27017": {
                    type: "RSPrimary",
                    setName: "rs",
                    electionId: {"$oid": "000000000000000000000001"}
                }
            },
            topologyType: "ReplicaSetWithPrimary",
            setName: "rs",
            maxElectionId: {"$oid": "000000000000000000000001"}
        }
    }
]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo-2.1.0.beta spec/support/sdam/rs/equal_electionids.yml