| 1 |
|
| 2 |
description: Stale generation timeout error afterHandshakeCompletes |
| 3 |
uri: mongodb://a/?replicaSet=rs |
| 4 |
phases: |
| 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: 9 |
| 16 |
topologyVersion: &topologyVersion_1_1 |
| 17 |
processId: |
| 18 |
"$oid": '000000000000000000000001' |
| 19 |
counter: |
| 20 |
"$numberLong": '1' |
| 21 |
outcome: |
| 22 |
servers: |
| 23 |
a:27017: |
| 24 |
type: RSPrimary |
| 25 |
setName: rs |
| 26 |
topologyVersion: *topologyVersion_1_1 |
| 27 |
pool: |
| 28 |
generation: 0 |
| 29 |
topologyType: ReplicaSetWithPrimary |
| 30 |
logicalSessionTimeoutMinutes: null |
| 31 |
setName: rs |
| 32 |
|
| 33 |
|
| 34 |
- description: Non-stale application network error |
| 35 |
applicationErrors: |
| 36 |
- address: a:27017 |
| 37 |
when: afterHandshakeCompletes |
| 38 |
maxWireVersion: 9 |
| 39 |
type: network |
| 40 |
outcome: |
| 41 |
servers: |
| 42 |
a:27017: |
| 43 |
type: Unknown |
| 44 |
topologyVersion: null |
| 45 |
pool: |
| 46 |
generation: 1 |
| 47 |
topologyType: ReplicaSetNoPrimary |
| 48 |
logicalSessionTimeoutMinutes: null |
| 49 |
setName: rs |
| 50 |
|
| 51 |
- description: Primary A is rediscovered |
| 52 |
responses: |
| 53 |
- - a:27017 |
| 54 |
- ok: 1 |
| 55 |
helloOk: true |
| 56 |
isWritablePrimary: true |
| 57 |
hosts: |
| 58 |
- a:27017 |
| 59 |
setName: rs |
| 60 |
minWireVersion: 0 |
| 61 |
maxWireVersion: 9 |
| 62 |
topologyVersion: *topologyVersion_1_1 |
| 63 |
outcome: &outcome |
| 64 |
servers: |
| 65 |
a:27017: |
| 66 |
type: RSPrimary |
| 67 |
setName: rs |
| 68 |
topologyVersion: *topologyVersion_1_1 |
| 69 |
pool: |
| 70 |
generation: 1 |
| 71 |
topologyType: ReplicaSetWithPrimary |
| 72 |
logicalSessionTimeoutMinutes: null |
| 73 |
setName: rs |
| 74 |
|
| 75 |
- description: Ignore stale timeout error (stale generation) |
| 76 |
applicationErrors: |
| 77 |
- address: a:27017 |
| 78 |
generation: 0 |
| 79 |
when: afterHandshakeCompletes |
| 80 |
maxWireVersion: 9 |
| 81 |
type: timeout |
| 82 |
outcome: *outcome |