1{
2 "description": "Set version rolls back after new primary with higher election Id",
3 "uri": "mongodb://a/?replicaSet=rs",
4 "phases": [
5 {
6 "responses": [
7 [
8 "a:27017",
9 {
10 "ok": 1,
11 "helloOk": true,
12 "isWritablePrimary": true,
13 "hosts": [
14 "a:27017",
15 "b:27017"
16 ],
17 "setName": "rs",
18 "setVersion": 2,
19 "electionId": {
20 "$oid": "000000000000000000000001"
21 },
22 "minWireVersion": 0,
23 "maxWireVersion": 17
24 }
25 ]
26 ],
27 "outcome": {
28 "servers": {
29 "a:27017": {
30 "type": "RSPrimary",
31 "setName": "rs",
32 "setVersion": 2,
33 "electionId": {
34 "$oid": "000000000000000000000001"
35 }
36 },
37 "b:27017": {
38 "type": "Unknown",
39 "setName": null,
40 "electionId": null
41 }
42 },
43 "topologyType": "ReplicaSetWithPrimary",
44 "logicalSessionTimeoutMinutes": null,
45 "setName": "rs",
46 "maxSetVersion": 2,
47 "maxElectionId": {
48 "$oid": "000000000000000000000001"
49 }
50 }
51 },
52 {
53 "responses": [
54 [
55 "b:27017",
56 {
57 "ok": 1,
58 "helloOk": true,
59 "isWritablePrimary": true,
60 "hosts": [
61 "a:27017",
62 "b:27017"
63 ],
64 "setName": "rs",
65 "setVersion": 1,
66 "electionId": {
67 "$oid": "000000000000000000000002"
68 },
69 "minWireVersion": 0,
70 "maxWireVersion": 17
71 }
72 ]
73 ],
74 "outcome": {
75 "servers": {
76 "a:27017": {
77 "type": "Unknown",
78 "setName": null,
79 "electionId": null
80 },
81 "b:27017": {
82 "type": "RSPrimary",
83 "setName": "rs",
84 "setVersion": 1,
85 "electionId": {
86 "$oid": "000000000000000000000002"
87 }
88 }
89 },
90 "topologyType": "ReplicaSetWithPrimary",
91 "logicalSessionTimeoutMinutes": null,
92 "setName": "rs",
93 "maxSetVersion": 1,
94 "maxElectionId": {
95 "$oid": "000000000000000000000002"
96 }
97 }
98 },
99 {
100 "responses": [
101 [
102 "a:27017",
103 {
104 "ok": 1,
105 "helloOk": true,
106 "isWritablePrimary": true,
107 "hosts": [
108 "a:27017",
109 "b:27017"
110 ],
111 "setName": "rs",
112 "setVersion": 2,
113 "electionId": {
114 "$oid": "000000000000000000000001"
115 },
116 "minWireVersion": 0,
117 "maxWireVersion": 17
118 }
119 ]
120 ],
121 "outcome": {
122 "servers": {
123 "a:27017": {
124 "type": "Unknown",
125 "setName": null,
126 "electionId": null
127 },
128 "b:27017": {
129 "type": "RSPrimary",
130 "setName": "rs",
131 "setVersion": 1,
132 "electionId": {
133 "$oid": "000000000000000000000002"
134 }
135 }
136 },
137 "topologyType": "ReplicaSetWithPrimary",
138 "logicalSessionTimeoutMinutes": null,
139 "setName": "rs",
140 "maxSetVersion": 1,
141 "maxElectionId": {
142 "$oid": "000000000000000000000002"
143 }
144 }
145 }
146 ]
147}
View as plain text