...

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

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

     1{
     2  "description": "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": 17
    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": 17
    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": 17
   120          }
   121        ]
   122      ],
   123      "outcome": {
   124        "servers": {
   125          "a:27017": {
   126            "type": "Unknown",
   127            "setName": null,
   128            "setVersion": null,
   129            "electionId": null
   130          },
   131          "b:27017": {
   132            "type": "RSPrimary",
   133            "setName": "rs",
   134            "setVersion": 1,
   135            "electionId": {
   136              "$oid": "000000000000000000000002"
   137            }
   138          },
   139          "c:27017": {
   140            "type": "Unknown",
   141            "setName": null,
   142            "electionId": null
   143          }
   144        },
   145        "topologyType": "ReplicaSetWithPrimary",
   146        "logicalSessionTimeoutMinutes": null,
   147        "setName": "rs",
   148        "maxSetVersion": 1,
   149        "maxElectionId": {
   150          "$oid": "000000000000000000000002"
   151        }
   152      }
   153    },
   154    {
   155      "responses": [
   156        [
   157          "c:27017",
   158          {
   159            "ok": 1,
   160            "helloOk": true,
   161            "isWritablePrimary": true,
   162            "hosts": [
   163              "a:27017",
   164              "b:27017",
   165              "c:27017"
   166            ],
   167            "setName": "rs",
   168            "setVersion": 1,
   169            "electionId": {
   170              "$oid": "000000000000000000000001"
   171            },
   172            "minWireVersion": 0,
   173            "maxWireVersion": 17
   174          }
   175        ]
   176      ],
   177      "outcome": {
   178        "servers": {
   179          "a:27017": {
   180            "type": "Unknown",
   181            "setName": null,
   182            "setVersion": null,
   183            "electionId": null
   184          },
   185          "b:27017": {
   186            "type": "RSPrimary",
   187            "setName": "rs",
   188            "setVersion": 1,
   189            "electionId": {
   190              "$oid": "000000000000000000000002"
   191            }
   192          },
   193          "c:27017": {
   194            "type": "Unknown",
   195            "setName": null,
   196            "electionId": null
   197          }
   198        },
   199        "topologyType": "ReplicaSetWithPrimary",
   200        "logicalSessionTimeoutMinutes": null,
   201        "setName": "rs",
   202        "maxSetVersion": 1,
   203        "maxElectionId": {
   204          "$oid": "000000000000000000000002"
   205        }
   206      }
   207    }
   208  ]
   209}

View as plain text