[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: |
|
||||
| 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: (cherry picked from commit 6a66e646c41071c5bf0e28d885a758e05f353536) |
| Comment by Githook User [ 07/Jun/18 ] |
|
Author: {'username': 'pvselvan', 'name': 'Pavi Vetriselvan', 'email': 'pvselvan@umich.edu'}Message: |