[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: SERVER-64105 Support stmtIds in the transaction API
Branch: master
https://github.com/mongodb/mongo/commit/e27b00089fa1c46699b7a32b697304f7cd09386f

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