[SERVER-61418] Handle write concern for internal transactions Created: 11/Nov/21  Updated: 29/Oct/23  Resolved: 14/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc2, 6.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Jack Mulrow
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0
Sprint: Sharding 2022-01-10, Sharding 2022-02-07, Sharding NYC 2022-03-21, Sharding NYC 2022-04-04, Sharding NYC 2022-04-18
Participants:
Story Points: 3

 Description   

When running an internal transaction on behalf of a client's command, we should respect the write concern specified in command, i.e. use it for the initial commitTransaction command (based on the driver spec we may need to use w: majority when retrying commitTransaction).



 Comments   
Comment by Githook User [ 20/Apr/22 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-61418 Use majority write concern for commit retries in transaction API

(cherry picked from commit c7c2fe1556b7eea593a0a4308a2c068c1eba9c44)
Branch: v6.0
https://github.com/mongodb/mongo/commit/db1f183c4e7339c4a13d7e8345bb187d6d0348fa

Comment by Githook User [ 14/Apr/22 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-61418 Use majority write concern for commit retries in transaction API
Branch: master
https://github.com/mongodb/mongo/commit/c7c2fe1556b7eea593a0a4308a2c068c1eba9c44

Comment by Jack Mulrow [ 16/Nov/21 ]

We should use w majority for commit retries at least when the transaction is on an owned session to match the driver spec.

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