Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-35094

Allow retrying commitTransaction even if the transaction has already committed

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0-rc5, 4.1.1
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • v4.0
    • Repl 2018-06-04, Repl 2018-06-18

      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.

            Assignee:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: