...

Text file src/go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/errors/non-stale-topologyVersion-missing-ShutdownInProgress.json

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

     1{
     2  "description": "Non-stale topologyVersion missing ShutdownInProgress error",
     3  "uri": "mongodb://a/?replicaSet=rs",
     4  "phases": [
     5    {
     6      "description": "Primary A is discovered",
     7      "responses": [
     8        [
     9          "a:27017",
    10          {
    11            "ok": 1,
    12            "helloOk": true,
    13            "isWritablePrimary": true,
    14            "hosts": [
    15              "a:27017"
    16            ],
    17            "setName": "rs",
    18            "minWireVersion": 0,
    19            "maxWireVersion": 9,
    20            "topologyVersion": {
    21              "processId": {
    22                "$oid": "000000000000000000000001"
    23              },
    24              "counter": {
    25                "$numberLong": "1"
    26              }
    27            }
    28          }
    29        ]
    30      ],
    31      "outcome": {
    32        "servers": {
    33          "a:27017": {
    34            "type": "RSPrimary",
    35            "setName": "rs",
    36            "topologyVersion": {
    37              "processId": {
    38                "$oid": "000000000000000000000001"
    39              },
    40              "counter": {
    41                "$numberLong": "1"
    42              }
    43            },
    44            "pool": {
    45              "generation": 0
    46            }
    47          }
    48        },
    49        "topologyType": "ReplicaSetWithPrimary",
    50        "logicalSessionTimeoutMinutes": null,
    51        "setName": "rs"
    52      }
    53    },
    54    {
    55      "description": "Non-stale topologyVersion missing ShutdownInProgress error marks server Unknown",
    56      "applicationErrors": [
    57        {
    58          "address": "a:27017",
    59          "when": "afterHandshakeCompletes",
    60          "maxWireVersion": 9,
    61          "type": "command",
    62          "response": {
    63            "ok": 0,
    64            "errmsg": "ShutdownInProgress",
    65            "code": 91
    66          }
    67        }
    68      ],
    69      "outcome": {
    70        "servers": {
    71          "a:27017": {
    72            "type": "Unknown",
    73            "topologyVersion": null,
    74            "pool": {
    75              "generation": 1
    76            }
    77          }
    78        },
    79        "topologyType": "ReplicaSetNoPrimary",
    80        "logicalSessionTimeoutMinutes": null,
    81        "setName": "rs"
    82      }
    83    }
    84  ]
    85}

View as plain text