[SERVER-64105] Support stmtIds in the transaction API Created: 02/Mar/22 Updated: 29/Oct/23 Resolved: 02/Mar/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Jack Mulrow | Assignee: | Jack Mulrow |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Sharding 2022-03-07 |
| Participants: |
| Description |
|
The transaction API has a helper method for crud ops that accepts a stmtIds argument meant to simplify sending writes in transactions spawned for retryable writes. The argument is currently ignored, so the API should be updated to actually use it. We should add comments explaining how to use stmtIds in internal transactions and possibly some invariants/asserts to prevent misuse, e.g. forgetting to send stmtIds and having the server infer the same ids for different commands. |
| Comments |
| Comment by Githook User [ 02/Mar/22 ] |
|
Author: {'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}Message: |