Sha256: ccab2446e3a6caacd1e25ce062e1e56b800654abc279241b757cf73b9a6c4009

Contents?: true

Size: 652 Bytes

Versions: 2

Compression:

Stored size: 652 Bytes

Contents

# A driver MUST raise an error
# if the TopologyType is ReplicaSetWithPrimary or ReplicaSetNoPrimary
# and ``maxStalenessMS`` is less than twice the client's `heartbeatFrequencyMS`.
---
topology_description:
  type: ReplicaSetWithPrimary
  servers:
  - &1
    address: a:27017
    type: RSPrimary
    avg_rtt_ms: 5
    lastUpdateTime: 0
    maxWireVersion: 5
    lastWrite: {lastWriteDate: {$numberLong: "1"}}
  - &2
    address: b:27017
    type: RSSecondary
    avg_rtt_ms: 5
    lastUpdateTime: 0
    maxWireVersion: 5
    lastWrite: {lastWriteDate: {$numberLong: "1"}}
read_preference:
  mode: Nearest
  maxStalenessMS: 1  # Too small.
error: true

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongo-2.4.0.rc1 spec/support/max_staleness/ReplicaSetWithPrimary/MaxStalenessTooSmall.yml
mongo-2.4.0.rc0 spec/support/max_staleness/ReplicaSetWithPrimary/MaxStalenessTooSmall.yml