...

Text file src/go.mongodb.org/mongo-driver/testdata/max-staleness/ReplicaSetWithPrimary/LongHeartbeat2.json

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

     1{
     2  "heartbeatFrequencyMS": 120000,
     3  "topology_description": {
     4    "type": "ReplicaSetWithPrimary",
     5    "servers": [
     6      {
     7        "address": "a:27017",
     8        "type": "RSPrimary",
     9        "avg_rtt_ms": 5,
    10        "lastUpdateTime": 0,
    11        "maxWireVersion": 6,
    12        "lastWrite": {
    13          "lastWriteDate": {
    14            "$numberLong": "1"
    15          }
    16        }
    17      },
    18      {
    19        "address": "b:27017",
    20        "type": "RSSecondary",
    21        "avg_rtt_ms": 5,
    22        "lastUpdateTime": 0,
    23        "maxWireVersion": 6,
    24        "lastWrite": {
    25          "lastWriteDate": {
    26            "$numberLong": "1"
    27          }
    28        }
    29      }
    30    ]
    31  },
    32  "read_preference": {
    33    "mode": "Nearest",
    34    "maxStalenessSeconds": 129
    35  },
    36  "error": true
    37}

View as plain text