...

Text file src/go.mongodb.org/mongo-driver/testdata/max-staleness/ReplicaSetNoPrimary/MaxStalenessTooSmall.yml

Documentation: go.mongodb.org/mongo-driver/testdata/max-staleness/ReplicaSetNoPrimary

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

View as plain text