...
1description: "Primary becomes ghost"
2
3uri: "mongodb://a/?replicaSet=rs"
4
5phases: [
6
7 {
8 responses: [
9
10 ["a:27017", {
11
12 ok: 1,
13 helloOk: true,
14 isWritablePrimary: true,
15 hosts: ["a:27017"],
16 setName: "rs",
17 minWireVersion: 0,
18 maxWireVersion: 6
19 }]
20 ],
21
22 outcome: {
23
24 servers: {
25
26 "a:27017": {
27
28 type: "RSPrimary",
29 setName: "rs"
30 }
31 },
32 topologyType: "ReplicaSetWithPrimary",
33 logicalSessionTimeoutMinutes: null,
34 setName: "rs"
35 }
36 },
37
38 {
39 responses: [
40 ["a:27017", {
41 ok: 1,
42 helloOk: true,
43 isWritablePrimary: false,
44 isreplicaset: true,
45 minWireVersion: 0,
46 maxWireVersion: 6
47 }]
48 ],
49
50 outcome: {
51
52 servers: {
53
54 "a:27017": {
55
56 type: "RSGhost",
57 setName:
58 }
59 },
60 topologyType: "ReplicaSetNoPrimary",
61 logicalSessionTimeoutMinutes: null,
62 setName: "rs"
63 }
64 }
65]
View as plain text