From cbfd6c24a2abde7d4d99c03a21e7b8aacfbf35f5 Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Fri, 9 Apr 2021 10:13:58 -0400 Subject: [PATCH] 2516 --- .../data/sdam/errors/write_errors_ignored.yml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 spec/spec_tests/data/sdam/errors/write_errors_ignored.yml diff --git a/spec/spec_tests/data/sdam/errors/write_errors_ignored.yml b/spec/spec_tests/data/sdam/errors/write_errors_ignored.yml new file mode 100644 index 0000000000..03896cad91 --- /dev/null +++ b/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