Debian Codegraph @

testdata/max-staleness/ReplicaSetWithPrimary/MaxStalenessWithModePrimary.yml

raw
1 # Drivers MUST raise an error if maxStalenessSeconds is defined and not -1
2 # and the ``mode`` field is 'primary'.
3 ---
4 topology_description:
5 type: ReplicaSetWithPrimary
6 servers:
7 - &1
8 address: a:27017
9 type: RSPrimary
10 avg_rtt_ms: 5
11 lastUpdateTime: 0
12 maxWireVersion: 6
13 lastWrite: {lastWriteDate: {$numberLong: "1"}}
14 - &2
15 address: b:27017
16 type: RSSecondary
17 avg_rtt_ms: 5
18 lastUpdateTime: 0
19 maxWireVersion: 6
20 lastWrite: {lastWriteDate: {$numberLong: "1"}}
21 read_preference:
22 maxStalenessSeconds: 120
23 error: true