[SERVER-80918] Handle mongos retryable timeseries update WriteConcernErrors Created: 08/Sep/23  Updated: 29/Oct/23  Resolved: 27/Sep/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Vishnu Kaushik Assignee: Vishnu Kaushik
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-76954 Support write concern and handle writ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-09-18, Repl 2023-10-02
Participants:

 Description   

See the TODO here (note that the TODO number will have changed).

Code that roughly looks like the following should work, although testing may be a bit hard:

else if (response.isWriteConcernErrorSet()) {
    auto wceStatus = response.getWriteConcernError()->toStatus();
    BulkWriteWriteConcernError wce(wceStatus.code(), wceStatus.reason());
    replyInfo.wcErrors = wce;
}



 Comments   
Comment by Githook User [ 27/Sep/23 ]

Author:

{'name': 'kauboy26', 'email': 'vishnu.kaushik@mongodb.com', 'username': 'kauboy26'}

Message: SERVER-80918 implement bulkWrite WriteConcernError handling for retryable timeseries updates.
Branch: master
https://github.com/mongodb/mongo/commit/6ed18a7aca044c29d9147851d94ac47e7fbf94c8

Generated at Thu Feb 08 06:44:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.