bson/testdata/max-staleness/ReplicaSetNoPrimary/MaxStalenessTooSmall.yml
2025-03-17 20:58:26 +01:00

16 lines
320 B
YAML

# maxStalenessSeconds must be at least 90 seconds, even with no known servers.
---
topology_description:
type: ReplicaSetNoPrimary
servers:
- &1
address: a:27017
type: Unknown
- &2
address: b:27017
type: Unknown
read_preference:
mode: Nearest
maxStalenessSeconds: 1 # Too small.
error: true