2-Paragraph Submission
Note left of Coordinator: Voting phaseCoordinator->Cohort1: queryCoordinator->Cohort2: queryCohort1-->Coordinator: yes/noNote right of Cohort1: prepare/abortCohort2-->Coordinator: yes/noNote right of Cohort2: prepare/abortNote left of Coordinator: Commit phaseCoordinator->Cohort1: commit/rollbackCoordinator->Cohort2: commit/rollbackCohort1-->Coordinator: acknowledgmentNote right of Cohort1: commit/abortCohort2-->Coordinator: acknowledgmentNote right of Cohort2: commit/abort
Submit Request Phase
- The collaborator sends the submission request to each performer;
- The performer receives the commit request, starts the execution of the transaction, and the two sides record the rollback and retry log;
- The performer executes the transaction, notifies the collaborator whether the commit can be executed, suspends the resource waiting for the collaborator's notification;
Submission Phase
- The collaborator receives all the performers ' notifications to decide whether to initiate the submission or roll back the request;
- Each performer completes the instructions of the collaborator to release the resources;
- The collaborator waits for all the performers to complete the transaction after the ACK;
3-Paragraph Submission
2 submission and 3-paragraph submission analysis