[SERVER-33210] Allow inserts to specify their statement IDs Created: 08/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: Backlog - Replication Team
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-33117 Allow single-updates to specify their... Closed
Assigned Teams:
Replication
Participants:

 Description   

Inserts 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:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.