[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: |
|
||||
| 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: (cherry picked from commit c7c2fe1556b7eea593a0a4308a2c068c1eba9c44) |
| Comment by Githook User [ 14/Apr/22 ] |
|
Author: {'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}Message: |
| 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. |