[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: |
|
||||||||||||||||
| 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 |