[CDRIVER-3873] A successful findAndModify retry leaves output bson_error_t set to initial error Created: 23/Jan/21  Updated: 28/Oct/23  Resolved: 25/Jan/21

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.17.4

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-3422 Unified test format Closed

 Description   

If mongoc_collection_find_and_modify_with_opts or mongoc_collection_find_and_modify succeeds after retrying due to retryable writes being enabled, it correctly returns "true" but leaves the output bson_error_t set to the original error. The error should be cleared in case caller code is checking the resulting error domain/code.



 Comments   
Comment by Githook User [ 23/Mar/21 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-3873 clear fam error on retry (#727)
Branch: csot
https://github.com/mongodb/mongo-c-driver/commit/cdeb7b4fae0f1ed744ba8cb65ecaf4920acdd62b

Comment by Githook User [ 25/Jan/21 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-3873 clear fam error on retry (#727)
Branch: r1.17
https://github.com/mongodb/mongo-c-driver/commit/d21ab4b092fb8e0c49d5720046453967b1b8856f

Comment by Githook User [ 25/Jan/21 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-3873 clear fam error on retry (#727)
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/cdeb7b4fae0f1ed744ba8cb65ecaf4920acdd62b

Generated at Wed Feb 07 21:19:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.