This image shows the actions of the transaction manager and participants in a two-phase commit protocol as implemented by TimesTen Scaleout.
Prepare phase:
State 1: The transaction manager sends a prepare message to all participants.
State 2: Participants write a prepare log record. The log record is durable only if the Durability
attribute is set to 1
or the transaction is promoted to epoch.
State 3: Participants send a prepare message to the transaction manager.
Commit phase:
State 1: The transaction manager writes a prepare log with the commit decision. The log record is durable only if the Durability
attribute is set to 1
or the transaction is promoted to epoch.
State 2: The transaction manager sends the commit decision to all the participants.
State 3: All participants, including the transaction manager, write a commit log record. The log record is durable only if the transaction is promoted to epoch.