...

Text file src/go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/errors/non-stale-network-timeout-error.json

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

     1{
     2  "description": "Non-stale network timeout 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 network timeout error does not mark server Unknown",
    56      "applicationErrors": [
    57        {
    58          "address": "a:27017",
    59          "when": "afterHandshakeCompletes",
    60          "maxWireVersion": 9,
    61          "type": "timeout"
    62        }
    63      ],
    64      "outcome": {
    65        "servers": {
    66          "a:27017": {
    67            "type": "RSPrimary",
    68            "setName": "rs",
    69            "topologyVersion": {
    70              "processId": {
    71                "$oid": "000000000000000000000001"
    72              },
    73              "counter": {
    74                "$numberLong": "1"
    75              }
    76            },
    77            "pool": {
    78              "generation": 0
    79            }
    80          }
    81        },
    82        "topologyType": "ReplicaSetWithPrimary",
    83        "logicalSessionTimeoutMinutes": null,
    84        "setName": "rs"
    85      }
    86    }
    87  ]
    88}

View as plain text