Skip to content

Commit

Permalink
2516
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Apr 21, 2021
1 parent 16af76b commit cbfd6c2
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions spec/spec_tests/data/sdam/errors/write_errors_ignored.yml
@@ -0,0 +1,41 @@
description: writeErrors field is ignored
uri: mongodb://a/?replicaSet=rs
phases:
- description: Primary A is discovered
responses:
- - a:27017
- ok: 1
ismaster: true
hosts:
- a:27017
setName: rs
minWireVersion: 0
maxWireVersion: 9
topologyVersion: &topologyVersion_1_1
processId:
"$oid": '000000000000000000000001'
counter:
"$numberLong": '1'
outcome: &outcome
servers:
a:27017:
type: RSPrimary
setName: rs
topologyVersion: *topologyVersion_1_1
pool:
generation: 0
topologyType: ReplicaSetWithPrimary
logicalSessionTimeoutMinutes: null
setName: rs

- description: Ignore command error with writeErrors field
applicationErrors:
- address: a:27017
when: afterHandshakeCompletes
maxWireVersion: 9
type: command
response:
ok: 1
writeErrors:
- { errmsg: NotMasterNoSlaveOk, code: 13435, index: 0 }
outcome: *outcome

0 comments on commit cbfd6c2

Please sign in to comment.