Sha256: a9f4ba832088d27bef6847b113d274e4d4f9b28bedaf775aa4c4bac9afe53b09

Contents?: true

Size: 1.5 KB

Versions: 8

Compression:

Stored size: 1.5 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",
                setVersion: 1,
                electionId: {"$oid": "000000000000000000000001"},
                minWireVersion: 0,
                maxWireVersion: 6
            }],
            ["b:27017", {
                ok: 1,
                ismaster: true,
                hosts: ["a:27017", "b:27017"],
                setName: "rs",
                setVersion: 1,
                electionId: {"$oid": "000000000000000000000001"},
                minWireVersion: 0,
                maxWireVersion: 6
            }]
        ],

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

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
mongo-2.6.4 spec/support/sdam/rs/equal_electionids.yml
mongo-2.6.2 spec/support/sdam/rs/equal_electionids.yml
mongo-2.6.1 spec/support/sdam/rs/equal_electionids.yml
mongo-2.6.0 spec/support/sdam/rs/equal_electionids.yml
mongo-2.5.3 spec/support/sdam/rs/equal_electionids.yml
mongo-2.5.2 spec/support/sdam/rs/equal_electionids.yml
tdiary-5.0.8 vendor/bundle/gems/mongo-2.5.1/spec/support/sdam/rs/equal_electionids.yml
mongo-2.5.1 spec/support/sdam/rs/equal_electionids.yml