Debian Codegraph @

testdata/server-discovery-and-monitoring/errors/pre-42-NotWritablePrimary.yml

raw symbols SCIP
1 # Autogenerated tests for SDAM error handling, see generate-error-tests.py
2 description: Pre-4.2 NotWritablePrimary error
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: 7
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: Pre-4.2 NotWritablePrimary error marks server Unknown and clears the pool
29 applicationErrors:
30 - address: a:27017
31 when: afterHandshakeCompletes
32 maxWireVersion: 7
33 type: command
34 response:
35 ok: 0
36 errmsg: NotWritablePrimary
37 code: 10107
38 outcome:
39 servers:
40 a:27017:
41 type: Unknown
42 topologyVersion: null
43 pool:
44 generation: 1
45 topologyType: ReplicaSetNoPrimary
46 logicalSessionTimeoutMinutes: null
47 setName: rs