Debian Codegraph @

testdata/server-discovery-and-monitoring/rs/stepdown_change_set_name.yml

raw symbols SCIP
1 description: "Primary becomes a secondary with wrong setName"
2
3 uri: "mongodb://a/?replicaSet=rs"
4
5 phases: [
6
7 # Primary is discovered normally.
8 {
9 responses: [
10
11 ["a:27017", {
12
13 ok: 1,
14 helloOk: true,
15 isWritablePrimary: true,
16 hosts: ["a: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 topologyType: "ReplicaSetWithPrimary",
34 logicalSessionTimeoutMinutes: null,
35 setName: "rs"
36 }
37 },
38
39 # Primary changes its setName and becomes secondary.
40 # Remove it and change the topologyType.
41 {
42 responses: [
43
44 ["a:27017", {
45
46 ok: 1,
47 helloOk: true,
48 isWritablePrimary: false,
49 secondary: true,
50 hosts: ["a:27017"],
51 setName: "wrong",
52 minWireVersion: 0,
53 maxWireVersion: 6
54 }]
55 ],
56
57 outcome: {
58
59 servers: {},
60 topologyType: "ReplicaSetNoPrimary",
61 logicalSessionTimeoutMinutes: null,
62 setName: "rs"
63 }
64 }
65 ]