...

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

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

     1{
     2  "description": "Primary to no primary with mismatched me",
     3  "uri": "mongodb://a/?replicaSet=rs",
     4  "phases": [
     5    {
     6      "responses": [
     7        [
     8          "a:27017",
     9          {
    10            "ok": 1,
    11            "helloOk": true,
    12            "isWritablePrimary": true,
    13            "hosts": [
    14              "a:27017",
    15              "b:27017"
    16            ],
    17            "me": "a:27017",
    18            "setName": "rs",
    19            "minWireVersion": 0,
    20            "maxWireVersion": 6
    21          }
    22        ]
    23      ],
    24      "outcome": {
    25        "servers": {
    26          "a:27017": {
    27            "type": "RSPrimary",
    28            "setName": "rs"
    29          },
    30          "b:27017": {
    31            "type": "Unknown",
    32            "setName": null
    33          }
    34        },
    35        "topologyType": "ReplicaSetWithPrimary",
    36        "logicalSessionTimeoutMinutes": null,
    37        "setName": "rs"
    38      }
    39    },
    40    {
    41      "responses": [
    42        [
    43          "a:27017",
    44          {
    45            "ok": 1,
    46            "helloOk": true,
    47            "isWritablePrimary": true,
    48            "hosts": [
    49              "c:27017",
    50              "d:27017"
    51            ],
    52            "me": "c:27017",
    53            "setName": "rs",
    54            "minWireVersion": 0,
    55            "maxWireVersion": 6
    56          }
    57        ]
    58      ],
    59      "outcome": {
    60        "servers": {
    61          "c:27017": {
    62            "type": "Unknown",
    63            "setName": null
    64          },
    65          "d:27017": {
    66            "type": "Unknown",
    67            "setName": null
    68          }
    69        },
    70        "topologyType": "ReplicaSetNoPrimary",
    71        "logicalSessionTimeoutMinutes": null,
    72        "setName": "rs"
    73      }
    74    }
    75  ]
    76}

View as plain text