A.1.1.3 Saga State Machine

A Saga transitions through the following states during its lifetime. For an example of this state transition, see the following section on “Troubleshooting Steps”.

State Description

Initiated

A new Saga is marked Initiated on the initiator PDB.

Joining

The Joining state in a Saga implies that the given participant is joining the Saga. This state is only relevant on the participant’s PDB while the participant waits for an acknowledgment from the Saga coordinator to join the Saga.

Joined

A Saga is in the Joined state when it is successfully acknowledged by the Saga coordinator. This state is only relevant on the participant’s PDB.

Finalization

A Saga undergoing commit or rollback has the Finalization state. Sagas undergoing finalization are listed in the DBA_HIST_SAGAS view.

Committed/Rolled back

A Saga that is committed or rolled back has this sate. Finalized Saga are listed in DBA_HIST_SAGAS view.

Auto Rolledback

A Saga is marked auto rolled back if it exceeds the Saga duration and is automatically rolled back by the initiator.