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