Debian Codegraph @

testdata/max-staleness/ReplicaSetNoPrimary/MaxStalenessTooSmall.yml

raw
1 # maxStalenessSeconds must be at least 90 seconds, even with no known servers.
2 ---
3 topology_description:
4 type: ReplicaSetNoPrimary
5 servers:
6 - &1
7 address: a:27017
8 type: Unknown
9 - &2
10 address: b:27017
11 type: Unknown
12 read_preference:
13 mode: Nearest
14 maxStalenessSeconds: 1 # Too small.
15 error: true