...

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

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

     1{
     2  "description": "Replica set member with large maxWireVersion",
     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            "isWritablePrimary": false,
    28            "secondary": true,
    29            "setName": "rs",
    30            "hosts": [
    31              "a:27017",
    32              "b:27017"
    33            ],
    34            "minWireVersion": 0,
    35            "maxWireVersion": 1000
    36          }
    37        ]
    38      ],
    39      "outcome": {
    40        "servers": {
    41          "a:27017": {
    42            "type": "RSPrimary",
    43            "setName": "rs"
    44          },
    45          "b:27017": {
    46            "type": "RSSecondary",
    47            "setName": "rs"
    48          }
    49        },
    50        "topologyType": "ReplicaSetWithPrimary",
    51        "setName": "rs",
    52        "logicalSessionTimeoutMinutes": null,
    53        "compatible": true
    54      }
    55    }
    56  ]
    57}

View as plain text