Skip to content

Commit 9a47c30

Browse files
authored
PYTHON-2971 PossiblePrimary must not be checked for wire version compatibility of MaxStalenessSeconds (#778)
1 parent 2f3acb6 commit 9a47c30

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"topology_description": {
3+
"type": "ReplicaSetNoPrimary",
4+
"servers": [
5+
{
6+
"address": "a:27017",
7+
"type": "PossiblePrimary",
8+
"avg_rtt_ms": 5,
9+
"maxWireVersion": 0
10+
},
11+
{
12+
"address": "b:27017",
13+
"type": "Unknown",
14+
"avg_rtt_ms": 5,
15+
"maxWireVersion": 0
16+
},
17+
{
18+
"address": "c:27017",
19+
"type": "RSSecondary",
20+
"maxWireVersion": 6,
21+
"avg_rtt_ms": 5,
22+
"lastWrite": {
23+
"lastWriteDate": {
24+
"$numberLong": "1"
25+
}
26+
}
27+
}
28+
]
29+
},
30+
"read_preference": {
31+
"mode": "Nearest",
32+
"maxStalenessSeconds": 120
33+
},
34+
"suitable_servers": [
35+
{
36+
"address": "c:27017",
37+
"type": "RSSecondary",
38+
"maxWireVersion": 6,
39+
"avg_rtt_ms": 5,
40+
"lastWrite": {
41+
"lastWriteDate": {
42+
"$numberLong": "1"
43+
}
44+
}
45+
}
46+
],
47+
"in_latency_window": [
48+
{
49+
"address": "c:27017",
50+
"type": "RSSecondary",
51+
"maxWireVersion": 6,
52+
"avg_rtt_ms": 5,
53+
"lastWrite": {
54+
"lastWriteDate": {
55+
"$numberLong": "1"
56+
}
57+
}
58+
}
59+
]
60+
}

0 commit comments

Comments
 (0)