...

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

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

     1{
     2  "description": "Pre 6.0 Primaries with and without electionIds",
     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              "c:27017"
    17            ],
    18            "setVersion": 1,
    19            "setName": "rs",
    20            "minWireVersion": 0,
    21            "maxWireVersion": 6
    22          }
    23        ]
    24      ],
    25      "outcome": {
    26        "servers": {
    27          "a:27017": {
    28            "type": "RSPrimary",
    29            "setName": "rs",
    30            "setVersion": 1,
    31            "electionId": null
    32          },
    33          "b:27017": {
    34            "type": "Unknown",
    35            "setName": null,
    36            "electionId": null
    37          },
    38          "c:27017": {
    39            "type": "Unknown",
    40            "setName": null,
    41            "electionId": null
    42          }
    43        },
    44        "topologyType": "ReplicaSetWithPrimary",
    45        "logicalSessionTimeoutMinutes": null,
    46        "setName": "rs",
    47        "maxSetVersion": 1
    48      }
    49    },
    50    {
    51      "responses": [
    52        [
    53          "b:27017",
    54          {
    55            "ok": 1,
    56            "helloOk": true,
    57            "isWritablePrimary": true,
    58            "hosts": [
    59              "a:27017",
    60              "b:27017",
    61              "c:27017"
    62            ],
    63            "setName": "rs",
    64            "setVersion": 1,
    65            "electionId": {
    66              "$oid": "000000000000000000000002"
    67            },
    68            "minWireVersion": 0,
    69            "maxWireVersion": 6
    70          }
    71        ]
    72      ],
    73      "outcome": {
    74        "servers": {
    75          "a:27017": {
    76            "type": "Unknown",
    77            "setName": null,
    78            "electionId": null
    79          },
    80          "b:27017": {
    81            "type": "RSPrimary",
    82            "setName": "rs",
    83            "setVersion": 1,
    84            "electionId": {
    85              "$oid": "000000000000000000000002"
    86            }
    87          },
    88          "c:27017": {
    89            "type": "Unknown",
    90            "setName": null,
    91            "electionId": null
    92          }
    93        },
    94        "topologyType": "ReplicaSetWithPrimary",
    95        "logicalSessionTimeoutMinutes": null,
    96        "setName": "rs",
    97        "maxSetVersion": 1,
    98        "maxElectionId": {
    99          "$oid": "000000000000000000000002"
   100        }
   101      }
   102    },
   103    {
   104      "responses": [
   105        [
   106          "a:27017",
   107          {
   108            "ok": 1,
   109            "helloOk": true,
   110            "isWritablePrimary": true,
   111            "hosts": [
   112              "a:27017",
   113              "b:27017",
   114              "c:27017"
   115            ],
   116            "setVersion": 1,
   117            "setName": "rs",
   118            "minWireVersion": 0,
   119            "maxWireVersion": 6
   120          }
   121        ]
   122      ],
   123      "outcome": {
   124        "servers": {
   125          "a:27017": {
   126            "type": "RSPrimary",
   127            "setName": "rs",
   128            "setVersion": 1,
   129            "electionId": null
   130          },
   131          "b:27017": {
   132            "type": "Unknown",
   133            "setName": null,
   134            "electionId": null
   135          },
   136          "c:27017": {
   137            "type": "Unknown",
   138            "setName": null,
   139            "electionId": null
   140          }
   141        },
   142        "topologyType": "ReplicaSetWithPrimary",
   143        "logicalSessionTimeoutMinutes": null,
   144        "setName": "rs",
   145        "maxSetVersion": 1,
   146        "maxElectionId": {
   147          "$oid": "000000000000000000000002"
   148        }
   149      }
   150    },
   151    {
   152      "responses": [
   153        [
   154          "c:27017",
   155          {
   156            "ok": 1,
   157            "helloOk": true,
   158            "isWritablePrimary": true,
   159            "hosts": [
   160              "a:27017",
   161              "b:27017",
   162              "c:27017"
   163            ],
   164            "setName": "rs",
   165            "setVersion": 1,
   166            "electionId": {
   167              "$oid": "000000000000000000000001"
   168            },
   169            "minWireVersion": 0,
   170            "maxWireVersion": 6
   171          }
   172        ]
   173      ],
   174      "outcome": {
   175        "servers": {
   176          "a:27017": {
   177            "type": "RSPrimary",
   178            "setName": "rs",
   179            "setVersion": 1,
   180            "electionId": null
   181          },
   182          "b:27017": {
   183            "type": "Unknown",
   184            "setName": null,
   185            "electionId": null
   186          },
   187          "c:27017": {
   188            "type": "Unknown",
   189            "setName": null,
   190            "electionId": null
   191          }
   192        },
   193        "topologyType": "ReplicaSetWithPrimary",
   194        "logicalSessionTimeoutMinutes": null,
   195        "setName": "rs",
   196        "maxSetVersion": 1,
   197        "maxElectionId": {
   198          "$oid": "000000000000000000000002"
   199        }
   200      }
   201    }
   202  ]
   203}

View as plain text