...

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

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

     1{
     2  "description": "setVersion that is greater than maxSetVersion is used if there is no electionId",
     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            "setName": "rs",
    18            "setVersion": 1,
    19            "minWireVersion": 0,
    20            "maxWireVersion": 17
    21          }
    22        ]
    23      ],
    24      "outcome": {
    25        "servers": {
    26          "a:27017": {
    27            "type": "RSPrimary",
    28            "setName": "rs",
    29            "setVersion": 1,
    30            "electionId": null
    31          },
    32          "b:27017": {
    33            "type": "Unknown",
    34            "setName": null,
    35            "electionId": null
    36          }
    37        },
    38        "topologyType": "ReplicaSetWithPrimary",
    39        "logicalSessionTimeoutMinutes": null,
    40        "setName": "rs",
    41        "maxSetVersion": 1
    42      }
    43    },
    44    {
    45      "responses": [
    46        [
    47          "b:27017",
    48          {
    49            "ok": 1,
    50            "helloOk": true,
    51            "isWritablePrimary": true,
    52            "hosts": [
    53              "a:27017",
    54              "b:27017"
    55            ],
    56            "setName": "rs",
    57            "setVersion": 2,
    58            "minWireVersion": 0,
    59            "maxWireVersion": 17
    60          }
    61        ]
    62      ],
    63      "outcome": {
    64        "servers": {
    65          "a:27017": {
    66            "type": "Unknown",
    67            "setName": null,
    68            "electionId": null
    69          },
    70          "b:27017": {
    71            "type": "RSPrimary",
    72            "setName": "rs",
    73            "setVersion": 2,
    74            "electionId": null
    75          }
    76        },
    77        "topologyType": "ReplicaSetWithPrimary",
    78        "logicalSessionTimeoutMinutes": null,
    79        "setName": "rs",
    80        "maxSetVersion": 2
    81      }
    82    }
    83  ]
    84}

View as plain text