[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: |
|
||||||||
| 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: |