Debian Codegraph @

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

raw symbols SCIP
1 description: "Secondary with mismatched 'me' tells us who the primary is"
2
3 uri: "mongodb://a/?replicaSet=rs"
4
5 phases: [
6
7 # A is a secondary with mismatched "me". Remove A, add PossiblePrimary B.
8 {
9 responses: [
10 ["a:27017", {
11 ok: 1,
12 helloOk: true,
13 isWritablePrimary: false,
14 secondary: true,
15 me: "c:27017",
16 hosts: ["b:27017"],
17 setName: "rs",
18 primary: "b:27017",
19 minWireVersion: 0,
20 maxWireVersion: 6
21 }]
22 ],
23
24 outcome: {
25 servers: {
26 "b:27017": {
27 type: "PossiblePrimary",
28 setName:
29 }
30 },
31 topologyType: "ReplicaSetNoPrimary",
32 logicalSessionTimeoutMinutes: null,
33 setName: "rs",
34 }
35 },
36
37 # Discover B is primary.
38 {
39 responses: [
40 ["b:27017", {
41 ok: 1,
42 helloOk: true,
43 isWritablePrimary: true,
44 me: "b:27017",
45 hosts: ["b:27017"],
46 setName: "rs",
47 minWireVersion: 0,
48 maxWireVersion: 6
49 }]
50 ],
51
52 outcome: {
53 servers: {
54 "b:27017": {
55 type: "RSPrimary",
56 setName: "rs"
57 }
58 },
59 topologyType: "ReplicaSetWithPrimary",
60 logicalSessionTimeoutMinutes: null,
61 setName: "rs"
62 }
63 }
64 ]