[SERVER-83406] Test that mongos correctly "upgrades" w:0 write concern to w:1 Created: 17/Nov/23  Updated: 25/Jan/24  Resolved: 25/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc2

Type: Task Priority: Major - P3
Reporter: Kaitlin Mahar Assignee: Sean Zimmerman
Resolution: Fixed Votes: 0
Labels: milestone-2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-83407 Test that mongos correctly "upgrades"... Closed
Assigned Teams:
Replication
Backwards Compatibility: Fully Compatible
Sprint: Repl 2024-02-05
Participants:

 Description   

We talked about doing this in SERVER-72119 / SERVER-76954 but I don't believe we ended up adding a test.
This is likely unit testable if we pull out the logic to construct child batch commands into a separate helper function: https://github.com/mongodb/mongo/blob/c5da83c8e39b8211826bc29f262b7af903d93e6e/src/mongo/s/write_ops/bulk_write_exec.cpp#L121-L158



 Comments   
Comment by Githook User [ 25/Jan/24 ]

Author:

{'name': 'seanzimm', 'email': '102551488+seanzimm@users.noreply.github.com', 'username': 'seanzimm'}

Message: SERVER-83406: Add test for w0 upgrade for bulkWrite on mongos (#18331)

GitOrigin-RevId: 01a6169586ee86831ffe628388d92472ae51cff6
Branch: master
https://github.com/mongodb/mongo/commit/0341679427337a84ff755d9958448aa06bfa5790

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