[SERVER-35094] Allow retrying commitTransaction even if the transaction has already committed Created: 18/May/18  Updated: 29/Oct/23  Resolved: 07/Jun/18

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.0.0-rc5, 4.1.1

Type: Task Priority: Major - P3
Reporter: Pavithra Vetriselvan Assignee: Pavithra Vetriselvan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0
Sprint: Repl 2018-06-04, Repl 2018-06-18
Participants:

 Description   

Currently, this is not possible since abortTransaction and commitTransaction change the state of a transaction to "Inactive". We will need to add a third state, "Done". We should also explore adding a "Starting" and "None" state (in line with the state diagram in the driver's spec).

commitTransaction will now transition the state to "Done", which will allow users to retry this command on a committed transaction.



 Comments   
Comment by Githook User [ 11/Jun/18 ]

Author:

{'username': 'pvselvan', 'name': 'Pavi Vetriselvan', 'email': 'pvselvan@umich.edu'}

Message: SERVER-35094 add new txn states and allow retrying commitTransaction cmd

(cherry picked from commit 6a66e646c41071c5bf0e28d885a758e05f353536)
Branch: v4.0
https://github.com/mongodb/mongo/commit/111eba5431e23688838a0d33520e13d32d1575f8

Comment by Githook User [ 07/Jun/18 ]

Author:

{'username': 'pvselvan', 'name': 'Pavi Vetriselvan', 'email': 'pvselvan@umich.edu'}

Message: SERVER-35094 add new txn states and allow retrying commitTransaction cmd
Branch: master
https://github.com/mongodb/mongo/commit/6a66e646c41071c5bf0e28d885a758e05f353536

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