[SERVER-76954] Support write concern and handle write concern errors on mongos Created: 09/May/23  Updated: 29/Oct/23  Resolved: 15/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: milestone-2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-72792 Implement progress bookkeeping for in... Closed
Related
related to SERVER-78311 mongos does not report writeConcernEr... Closed
related to SERVER-80918 Handle mongos retryable timeseries up... Closed
Assigned Teams:
Replication
Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-08-07, Repl 2023-08-21, Repl 2023-09-04, Repl 2023-09-18
Participants:

 Description   

It's possible for a bulk write command sent to a shard may return with a write concern error. We need to handle that case.



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

Author:

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

Message: SERVER-76954 Support write concern and handle write concern errors on mongos.
Branch: master
https://github.com/mongodb/mongo/commit/89b9f17e5db071cd5301c50f7d5dae293428e89c

Comment by Sean Zimmerman [ 21/Jun/23 ]

Since SERVER-72119 is unable to to write unit tests, and writing jstests would depend on this ticket, this ticket should try and test the logic introduced there. The test could be basic and just increase log verbosity and check if the sub batch was sent with the correct write concern.

Comment by Vishnu Kaushik [ 21/Jun/23 ]

Yeah, maybe there's an existing way. Batch write exec (existing mongos implementation) also defines it and then parses it by hand.

It's unfortunate that writeConcernError has been singled out. It's because it's missing from the list of other general arguments; see SERVER-77798.

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