...

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

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

     1# Autogenerated tests for SDAM error handling, see generate-error-tests.py
     2description: Post-4.2 InterruptedDueToReplStateChange error
     3uri: mongodb://a/?replicaSet=rs
     4phases:
     5- description: Primary A is discovered
     6  responses:
     7  - - a:27017
     8    - ok: 1
     9      helloOk: true
    10      isWritablePrimary: true
    11      hosts:
    12      - a:27017
    13      setName: rs
    14      minWireVersion: 0
    15      maxWireVersion: 8
    16  outcome: &outcome
    17    servers:
    18      a:27017:
    19        type: RSPrimary
    20        setName: rs
    21        topologyVersion: null
    22        pool:
    23          generation: 0
    24    topologyType: ReplicaSetWithPrimary
    25    logicalSessionTimeoutMinutes: null
    26    setName: rs
    27
    28- description: Post-4.2 InterruptedDueToReplStateChange error marks server Unknown
    29  applicationErrors:
    30  - address: a:27017
    31    when: afterHandshakeCompletes
    32    maxWireVersion: 8
    33    type: command
    34    response:
    35      ok: 0
    36      errmsg: InterruptedDueToReplStateChange
    37      code: 11602
    38  outcome:
    39    servers:
    40      a:27017:
    41        type: Unknown
    42        topologyVersion: null
    43        pool:
    44          generation: 0
    45    topologyType: ReplicaSetNoPrimary
    46    logicalSessionTimeoutMinutes: null
    47    setName: rs

View as plain text