[SERVER-59717] Remove stmtId from internal session id for retryable internal transactions Created: 01/Sep/21  Updated: 29/Oct/23  Resolved: 13/Oct/21

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

Type: Task Priority: Major - P3
Reporter: Jack Mulrow Assignee: Jonathan Lee
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-10-18
Participants:
Story Points: 2

 Description   

Per the latest version of the design, retryable internal transactions will run in internal sessions with lsid of the form (id, uid, txnNumber, txnUUID) as supposed to (id, uid, txnNumber, stmtId). So we should:

  • Remove stmtId from the InternalSessionFields struct.
  • Make getParentSessionId only check for txnUUID.
  • Update unittests and jstests that use lsids of the form (id, uid, txnNumber, stmtId). 


 Comments   
Comment by Githook User [ 13/Oct/21 ]

Author:

{'name': 'Jonathan Lee', 'email': 'jonathan.lee@mongodb.com', 'username': 'jonatlee'}

Message: SERVER-59717 Remove stmtId from internal session id for retryable internal transactions
Branch: master
https://github.com/mongodb/mongo/commit/14e1d821b6d728450d3e560fbbb0ad188c6e09fa

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