[SERVER-33117] Allow single-updates to specify their statement id Created: 03/Feb/18  Updated: 27/Oct/23  Resolved: 14/Feb/18

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Siyuan Zhou
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-33209 Allow single-deletes to specify their... Closed
is depended on by SERVER-33210 Allow inserts to specify their statem... Closed
is depended on by SERVER-33211 Support multi-removes in transactions Closed
Sprint: Repl 2018-02-26
Participants:

 Description   

Single updates are supported by retryable writes currently, but they currently get their stmtId auto-generated by mongod. For multi-statement txns, the stmtId will be provided by the driver. We should wire the client-provided stmtId through the retryable writes machinery, and ensure we track it properly in the txn table and in-memory txn state, but only when autocommit is false.



 Comments   
Comment by Spencer Brody (Inactive) [ 14/Feb/18 ]

Retryable writes actually already allows specifying the stmtIds explicitly

Generated at Thu Feb 08 04:32:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.