Debian Codegraph @

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

raw symbols SCIP
1 description: Set version rolls back after new primary with higher election Id
2 uri: mongodb://a/?replicaSet=rs
3 phases:
4 - responses:
5 - - a:27017
6 - ok: 1
7 helloOk: true
8 isWritablePrimary: true
9 hosts:
10 - a:27017
11 - b:27017
12 setName: rs
13 setVersion: 2
14 electionId:
15 $oid: '000000000000000000000001'
16 minWireVersion: 0
17 maxWireVersion: 17
18 outcome:
19 servers:
20 a:27017:
21 type: RSPrimary
22 setName: rs
23 setVersion: 2
24 electionId:
25 $oid: '000000000000000000000001'
26 b:27017:
27 type: Unknown
28 setName: null
29 electionId: null
30 topologyType: ReplicaSetWithPrimary
31 logicalSessionTimeoutMinutes: null
32 setName: rs
33 maxSetVersion: 2
34 maxElectionId:
35 $oid: '000000000000000000000001'
36 - # Response from new primary with newer election Id
37 responses:
38 - - b:27017
39 - ok: 1
40 helloOk: true
41 isWritablePrimary: true
42 hosts:
43 - a:27017
44 - b:27017
45 setName: rs
46 setVersion: 1
47 electionId:
48 $oid: '000000000000000000000002'
49 minWireVersion: 0
50 maxWireVersion: 17
51 outcome:
52 servers:
53 a:27017:
54 type: Unknown
55 setName: null
56 electionId: null
57 b:27017:
58 type: RSPrimary
59 setName: rs
60 setVersion: 1
61 electionId:
62 $oid: '000000000000000000000002'
63 topologyType: ReplicaSetWithPrimary
64 logicalSessionTimeoutMinutes: null
65 setName: rs
66 maxSetVersion: 1
67 maxElectionId:
68 $oid: '000000000000000000000002'
69 - # Response from stale primary
70 responses:
71 - - a:27017
72 - ok: 1
73 helloOk: true
74 isWritablePrimary: true
75 hosts:
76 - a:27017
77 - b:27017
78 setName: rs
79 setVersion: 2
80 electionId:
81 $oid: '000000000000000000000001'
82 minWireVersion: 0
83 maxWireVersion: 17
84 outcome:
85 servers:
86 a:27017:
87 type: Unknown
88 setName: null
89 electionId: null
90 b:27017:
91 type: RSPrimary
92 setName: rs
93 setVersion: 1
94 electionId:
95 $oid: '000000000000000000000002'
96 topologyType: ReplicaSetWithPrimary
97 logicalSessionTimeoutMinutes: null
98 setName: rs
99 maxSetVersion: 1
100 maxElectionId:
101 $oid: '000000000000000000000002'