[SERVER-80221] mongos should not attach write concern to bulkWrite batches sent to shards when in a transaction Created: 17/Aug/23  Updated: 29/Oct/23  Resolved: 18/Aug/23

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

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

Issue Links:
Depends
is depended on by SERVER-79506 Get all bulkWrite js core tests runni... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2023-08-21
Participants:

 Description   

Transactions do not support per-operation write concern and so we should not add it to the commands we send to shards if in a transaction.

Equivalent code for insert/update/delete: https://github.com/mongodb/mongo/blob/6888a1472e002d9e1fe741a670261b28e45b2ab7/src/mongo/s/write_ops/batch_write_op.cpp#L634-L645



 Comments   
Comment by Githook User [ 18/Aug/23 ]

Author:

{'name': 'Kaitlin Mahar', 'email': 'kaitlin.mahar@mongodb.com', 'username': 'kmahar'}

Message: SERVER-80221 mongos should not attach write concern to bulkWrite batches sent to shards when in a transaction
Branch: master
https://github.com/mongodb/mongo/commit/9c09b22301b1ebef12f09d7e634cc148e4acac9f

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