[SERVER-62047] [Retryability] Enforce txnNumber ordering in a session in the presence of retryable internal transactions Created: 14/Dec/21  Updated: 29/Oct/23  Resolved: 14/Jan/22

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

Type: Task Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: sharding-nyc-subteam3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-12-27, Sharding 2022-01-10, Sharding 2022-01-24
Participants:

 Description   

Make TransactionParticipant throw a TransactionTooOld error in the following cases:

  • We try to begin/continue/retry a retryable internal transaction with lsid=(id, uid, txnUUID, 5) after running retryable writes or a transaction with lsid=(id, uid) and txnNumber=6.
  • We try to begin/continue/retry retryable writes or begin/continue a transaction with lsid=(id, uid) and txnNumber=5 after running a retryable internal transaction with lsid=(id, uid, txnUUID, 6).


 Comments   
Comment by Githook User [ 14/Jan/22 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-62047 Enforce txnNumber ordering in a session in the presence of retryable internal transactions
Branch: master
https://github.com/mongodb/mongo/commit/c20c2e8525d4877eb691b6308591590fb61740f2

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