Debian Codegraph @

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

raw symbols SCIP
1 description: Primary mismatched me is not removed
2 uri: mongodb://localhost:27017,localhost:27018/?replicaSet=rs
3
4 phases: [
5 {
6 responses: [
7 ["localhost:27017", {
8 ok: 1,
9 hosts: [
10 "localhost:27017",
11 "localhost:27018"
12 ],
13 helloOk: true,
14 isWritablePrimary: true,
15 setName: "rs",
16 primary: "localhost:27017",
17 # me does not match the primary responder's address, but the server
18 # is still added because we don't me mismatch check the primary and all
19 # servers from a primary isWritablePrimary are added to the working server set
20 me: "a:27017",
21 minWireVersion: 0,
22 maxWireVersion: 7
23 }]
24 ],
25 outcome: {
26 servers: {
27 "localhost:27017": {
28 type: "RSPrimary",
29 setName: "rs"
30 },
31 "localhost:27018": {
32 type: "Unknown",
33 setName: null
34 }
35 },
36 topologyType: "ReplicaSetWithPrimary",
37 logicalSessionTimeoutMinutes: null,
38 setName: "rs"
39 }
40 },
41 {
42 responses: [
43 ["localhost:27018", {
44 ok: 1,
45 hosts: [
46 "localhost:27017",
47 "localhost:27018"
48 ],
49 helloOk: true,
50 isWritablePrimary: false,
51 secondary: true,
52 setName: "rs",
53 primary: "localhost:27017",
54 me: "localhost:27018",
55 minWireVersion: 0,
56 maxWireVersion: 7
57 }]
58 ],
59 outcome: {
60 servers: {
61 "localhost:27017": {
62 type: "RSPrimary",
63 setName: "rs"
64 },
65 "localhost:27018": {
66 type: "RSSecondary",
67 setName: "rs"
68 }
69 },
70 topologyType: "ReplicaSetWithPrimary",
71 logicalSessionTimeoutMinutes: null,
72 setName: "rs"
73 }
74 }
75 ]