description: "Monitoring a topology that is required to be a replica set" uri: "mongodb://a,b/?replicaSet=rs" phases: - responses: - - "a:27017" - { ok: 1, helloOk: true, isWritablePrimary: true, setName: "rs", setVersion: 1.0, primary: "a:27017", hosts: [ "a:27017", "b:27017" ], minWireVersion: 0, maxWireVersion: 6 } outcome: events: - topology_opening_event: topologyId: "42" - topology_description_changed_event: topologyId: "42" previousDescription: topologyType: "Unknown" servers: [] newDescription: topologyType: "ReplicaSetNoPrimary" setName: "rs" servers: - address: "a:27017" arbiters: [] hosts: [] passives: [] type: "Unknown" - address: "b:27017" arbiters: [] hosts: [] passives: [] type: "Unknown" - server_opening_event: topologyId: "42" address: "a:27017" - server_opening_event: topologyId: "42" address: "b:27017" - server_description_changed_event: topologyId: "42" address: "a:27017" previousDescription: address: "a:27017" arbiters: [] hosts: [] passives: [] type: "Unknown" newDescription: address: "a:27017" arbiters: [] hosts: [ "a:27017", "b:27017" ] passives: [] primary: "a:27017" setName: "rs" type: "RSPrimary" - topology_description_changed_event: topologyId: "42" previousDescription: topologyType: "ReplicaSetNoPrimary" setName: "rs" servers: - address: "a:27017" arbiters: [] hosts: [] passives: [] type: "Unknown" - address: "b:27017" arbiters: [] hosts: [] passives: [] type: "Unknown" newDescription: topologyType: "ReplicaSetWithPrimary" setName: "rs" servers: - address: "a:27017" arbiters: [] hosts: [ "a:27017", "b:27017" ] passives: [] primary: "a:27017" setName: "rs" type: "RSPrimary" - address: "b:27017" arbiters: [] hosts: [] passives: [] type: "Unknown"