...

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

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

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

View as plain text