



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




2/2/ 05 1
2/2/ 05 2
2/2/ 05 3
2/2/ 05 5
2/2/ 05 6
2
2/2/ 05 7
The Protocol
votes Prepared if it’s ready to com m it m ay vote No forany reason m ay delay voting indefinitely
2/2/ 05 8
The Protocol(cont’d)
2/2/ 05 9
Case 1:Com m it
Coordinator Participant Request-to-Prepare Prepared
Commit Done
2/2/ 05 10
Case 2:A bort
Coordinator Request-to-Prepare
No Abort Done
Participant
2/2/ 05 11
Perform ance
2/2/ 05 12
U ncertainty
Coordinator Participant Request-to-Prepare Prepared
Commit Done
U ncertainty Period
4
2/2/ 05 19
CoordinatorRecovery
ParticipantRecovery
2/2/ 05 21
H euristic Com m it
2/2/ 05 22
7.4 2PC O ptim izations and V ariations
2/2/ 05 23
Read-only Transaction
2/2/ 05 24
Presum ed A bort
Abort
Log abort (forgetT) Log abort(forgetT)
Log prepared
Log Start2PC
5
2/2/ 05 25
TransferofCoordination If there is one participant,you can save a round ofm essages 1.Coordinatorasks participantto prepare and becom e the coordinator. 2.The participant(now coordinator) prepares,com m its,and tells the form ercoordinatorto com m it. 3.The coordinatorcom m its and replies D one. Coordinator Participant Request-to-Prepare-and -transfer-coordination Log com m it Commit
Log com m itted
Log prepared
Done
Cooperative Term ination Protocol(CTP)
2/2/ 05 27
Cooperative Term ination Issues
2/2/ 05 28
Reinfection
2/2/ 05 29
Phase Zero
7.5 Process Structuring
Transaction M anager
ResResourourcece M anager^ M anager Resource M anager
A pplication
Enlist and 2PC ops
RM ops StartTransaction, TX Commit, Rollback
XA 2PC ops O ther TM s
7
2/2/ 05 37
7.6 Three Phase Com m it-The Idea
Three Phase Com m it-The Protocol 1.(Begin phase 1)CoordinatorC sendsRequest-to-prepare to allparticipants 2.Participants vote Prepared orN o,justlike 2PC. 3.IfC receives Prepared from allparticipants,then (begin phase 2)itsends Pre-Com m itto allparticipants. 4.Participants w aitforA bortorPre-Com m it. Participantacknow ledges Pre-com m it. 5.A fterC receives acksfrom allparticipants,ortim es outon som e ofthem ,it(begin third phase)sends Com m itto all participants (thatare up)
2/2/ 05 39
3PC Failure H andling