...

Text file src/go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/rs/discover_ghost_replicaset.json

Documentation: go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/rs

     1{
     2  "description": "Discover ghost with replicaSet URI option",
     3  "uri": "mongodb://a,b/?replicaSet=rs",
     4  "phases": [
     5    {
     6      "responses": [
     7        [
     8          "b:27017",
     9          {
    10            "ok": 1,
    11            "helloOk": true,
    12            "isWritablePrimary": false,
    13            "isreplicaset": true,
    14            "minWireVersion": 0,
    15            "maxWireVersion": 6
    16          }
    17        ]
    18      ],
    19      "outcome": {
    20        "servers": {
    21          "a:27017": {
    22            "type": "Unknown",
    23            "setName": null
    24          },
    25          "b:27017": {
    26            "type": "RSGhost",
    27            "setName": null
    28          }
    29        },
    30        "topologyType": "ReplicaSetNoPrimary",
    31        "logicalSessionTimeoutMinutes": null,
    32        "setName": "rs"
    33      }
    34    }
    35  ]
    36}

View as plain text