...
1description: "New primary with wrong setName"
2
3uri: "mongodb://a/?replicaSet=rs"
4
5phases: [
6
7 # Primary is discovered normally, and tells us about server B.
8 {
9 responses: [
10
11 ["a:27017", {
12
13 ok: 1,
14 helloOk: true,
15 isWritablePrimary: true,
16 hosts: ["a:27017", "b:27017"],
17 setName: "rs",
18 minWireVersion: 0,
19 maxWireVersion: 6
20 }]
21 ],
22
23 outcome: {
24
25 servers: {
26
27 "a:27017": {
28
29 type: "RSPrimary",
30 setName: "rs"
31 },
32
33 "b:27017": {
34
35 type: "Unknown",
36 setName:
37 }
38 },
39 topologyType: "ReplicaSetWithPrimary",
40 logicalSessionTimeoutMinutes: null,
41 setName: "rs"
42 }
43 },
44
45 # B is actually the primary of another replica set. It's removed, and
46 # topologyType remains ReplicaSetWithPrimary.
47 {
48 responses: [
49
50 ["b:27017", {
51
52 ok: 1,
53 helloOk: true,
54 isWritablePrimary: true,
55 hosts: ["a:27017"],
56 setName: "wrong",
57 minWireVersion: 0,
58 maxWireVersion: 6
59 }]
60 ],
61
62 outcome: {
63
64 servers: {
65
66 "a:27017": {
67
68 type: "RSPrimary",
69 setName: "rs"
70 }
71 },
72 topologyType: "ReplicaSetWithPrimary",
73 logicalSessionTimeoutMinutes: null,
74 setName: "rs"
75 }
76 }
77]
View as plain text