...
1# maxStalenessSeconds=0 is prohibited.
2---
3topology_description:
4 type: ReplicaSetWithPrimary
5 servers:
6 - &1
7 address: a:27017
8 type: RSPrimary
9 avg_rtt_ms: 5
10 lastUpdateTime: 0
11 maxWireVersion: 6
12 lastWrite: {lastWriteDate: {$numberLong: "2"}}
13 - &2
14 address: b:27017
15 type: RSSecondary
16 avg_rtt_ms: 5
17 lastUpdateTime: 0
18 maxWireVersion: 6
19 lastWrite: {lastWriteDate: {$numberLong: "1"}}
20read_preference:
21 mode: Nearest
22 maxStalenessSeconds: 0
23error: true
View as plain text