...

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

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

     1{
     2  "description": "Pre 6.0 Record max setVersion, even from primary without 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            "electionId": {
    20              "$oid": "000000000000000000000001"
    21            },
    22            "minWireVersion": 0,
    23            "maxWireVersion": 6
    24          }
    25        ]
    26      ],
    27      "outcome": {
    28        "servers": {
    29          "a:27017": {
    30            "type": "RSPrimary",
    31            "setName": "rs",
    32            "setVersion": 1,
    33            "electionId": {
    34              "$oid": "000000000000000000000001"
    35            }
    36          },
    37          "b:27017": {
    38            "type": "Unknown",
    39            "setName": null,
    40            "electionId": null
    41          }
    42        },
    43        "topologyType": "ReplicaSetWithPrimary",
    44        "logicalSessionTimeoutMinutes": null,
    45        "setName": "rs",
    46        "maxSetVersion": 1,
    47        "maxElectionId": {
    48          "$oid": "000000000000000000000001"
    49        }
    50      }
    51    },
    52    {
    53      "responses": [
    54        [
    55          "b:27017",
    56          {
    57            "ok": 1,
    58            "helloOk": true,
    59            "isWritablePrimary": true,
    60            "hosts": [
    61              "a:27017",
    62              "b:27017"
    63            ],
    64            "setName": "rs",
    65            "setVersion": 2,
    66            "minWireVersion": 0,
    67            "maxWireVersion": 6
    68          }
    69        ]
    70      ],
    71      "outcome": {
    72        "servers": {
    73          "a:27017": {
    74            "type": "Unknown",
    75            "setName": null,
    76            "electionId": null
    77          },
    78          "b:27017": {
    79            "type": "RSPrimary",
    80            "setName": "rs",
    81            "setVersion": 2
    82          }
    83        },
    84        "topologyType": "ReplicaSetWithPrimary",
    85        "logicalSessionTimeoutMinutes": null,
    86        "setName": "rs",
    87        "maxSetVersion": 2,
    88        "maxElectionId": {
    89          "$oid": "000000000000000000000001"
    90        }
    91      }
    92    },
    93    {
    94      "responses": [
    95        [
    96          "a:27017",
    97          {
    98            "ok": 1,
    99            "helloOk": true,
   100            "isWritablePrimary": true,
   101            "hosts": [
   102              "a:27017",
   103              "b:27017"
   104            ],
   105            "setName": "rs",
   106            "setVersion": 1,
   107            "electionId": {
   108              "$oid": "000000000000000000000002"
   109            },
   110            "minWireVersion": 0,
   111            "maxWireVersion": 6
   112          }
   113        ]
   114      ],
   115      "outcome": {
   116        "servers": {
   117          "a:27017": {
   118            "type": "Unknown",
   119            "setName": null,
   120            "electionId": null
   121          },
   122          "b:27017": {
   123            "type": "RSPrimary",
   124            "setName": "rs",
   125            "setVersion": 2
   126          }
   127        },
   128        "topologyType": "ReplicaSetWithPrimary",
   129        "logicalSessionTimeoutMinutes": null,
   130        "setName": "rs",
   131        "maxSetVersion": 2,
   132        "maxElectionId": {
   133          "$oid": "000000000000000000000001"
   134        }
   135      }
   136    }
   137  ]
   138}

View as plain text