File: MaxStalenessTooSmall.yml

package info (click to toggle)
golang-mongodb-mongo-driver 1.8.4%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 18,520 kB
  • sloc: perl: 533; ansic: 491; python: 432; makefile: 187; sh: 72
file content (15 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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