...

Text file src/go.mongodb.org/mongo-driver/testdata/max-staleness/ReplicaSetNoPrimary/ZeroMaxStaleness.json

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

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

View as plain text