...

Text file src/go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/errors/post-42-InterruptedDueToReplStateChange.json

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

     1{
     2  "description": "Post-4.2 InterruptedDueToReplStateChange 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": 8
    20          }
    21        ]
    22      ],
    23      "outcome": {
    24        "servers": {
    25          "a:27017": {
    26            "type": "RSPrimary",
    27            "setName": "rs",
    28            "topologyVersion": null,
    29            "pool": {
    30              "generation": 0
    31            }
    32          }
    33        },
    34        "topologyType": "ReplicaSetWithPrimary",
    35        "logicalSessionTimeoutMinutes": null,
    36        "setName": "rs"
    37      }
    38    },
    39    {
    40      "description": "Post-4.2 InterruptedDueToReplStateChange error marks server Unknown",
    41      "applicationErrors": [
    42        {
    43          "address": "a:27017",
    44          "when": "afterHandshakeCompletes",
    45          "maxWireVersion": 8,
    46          "type": "command",
    47          "response": {
    48            "ok": 0,
    49            "errmsg": "InterruptedDueToReplStateChange",
    50            "code": 11602
    51          }
    52        }
    53      ],
    54      "outcome": {
    55        "servers": {
    56          "a:27017": {
    57            "type": "Unknown",
    58            "topologyVersion": null,
    59            "pool": {
    60              "generation": 0
    61            }
    62          }
    63        },
    64        "topologyType": "ReplicaSetNoPrimary",
    65        "logicalSessionTimeoutMinutes": null,
    66        "setName": "rs"
    67      }
    68    }
    69  ]
    70}

View as plain text