[GODRIVER-1726] ProcessError should check for WriteCommandError, not WriteConcernError Created: 17/Aug/20  Updated: 28/Oct/23  Resolved: 25/Aug/20

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4.1

Type: Bug Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The extractError function in the operations layer creates either a driver.Error or driver.WriteCommandError, which can have a driver.WriteConcernError field inside it. The Server.ProcessError function should check for driver.WriteCommandError rather than directly checking for driver.WriteConcernError.



 Comments   
Comment by Githook User [ 25/Aug/20 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: GODRIVER-1726 Fix SDAM error handling for write concern errors (#489)
Branch: release/1.4
https://github.com/mongodb/mongo-go-driver/commit/5b5e6c99784c44eb8f2a0068e41a74f1afa28925

Comment by Githook User [ 25/Aug/20 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: GODRIVER-1726 Fix SDAM error handling for write concern errors (#489)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/b452636fd68def5c301f7f06cc8bc384ec17e01a

Comment by Divjot Arora (Inactive) [ 21/Aug/20 ]

https://github.com/mongodb/mongo-go-driver/pull/489

Generated at Thu Feb 08 08:36:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.