...

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

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

     1{
     2  "description": "Incompatible ghost",
     3  "uri": "mongodb://a,b/?replicaSet=rs",
     4  "phases": [
     5    {
     6      "responses": [
     7        [
     8          "a:27017",
     9          {
    10            "ok": 1,
    11            "helloOk": true,
    12            "isWritablePrimary": true,
    13            "setName": "rs",
    14            "hosts": [
    15              "a:27017",
    16              "b:27017"
    17            ],
    18            "minWireVersion": 0,
    19            "maxWireVersion": 6
    20          }
    21        ],
    22        [
    23          "b:27017",
    24          {
    25            "ok": 1,
    26            "helloOk": true,
    27            "isreplicaset": true,
    28            "minWireVersion": 0,
    29            "maxWireVersion": 1
    30          }
    31        ]
    32      ],
    33      "outcome": {
    34        "servers": {
    35          "a:27017": {
    36            "type": "RSPrimary",
    37            "setName": "rs"
    38          },
    39          "b:27017": {
    40            "type": "RSGhost",
    41            "setName": null
    42          }
    43        },
    44        "topologyType": "ReplicaSetWithPrimary",
    45        "setName": "rs",
    46        "logicalSessionTimeoutMinutes": null,
    47        "compatible": false
    48      }
    49    }
    50  ]
    51}

View as plain text