Two-phase Commit Protocol - Assumptions

Assumptions

The protocol works in the following manner: one node is designated the coordinator, which is the master site, and the rest of the nodes in the network are designated the cohorts. The protocol assumes that there is stable storage at each node with a write-ahead log, that no node crashes forever, that the data in the write-ahead log is never lost or corrupted in a crash, and that any two nodes can communicate with each other. The last assumption is not too restrictive, as network communication can typically be rerouted. The first two assumptions are much stronger; if a node is totally destroyed then data can be lost.

The protocol is initiated by the coordinator after the last step of the transaction has been reached. The cohorts then respond with an agreement message or an abort message depending on whether the transaction has been processed successfully at the cohort.

Read more about this topic:  Two-phase Commit Protocol

Famous quotes containing the word assumptions:

    All of the assumptions once made about a parent’s role have been undercut by the specialists. The psychiatric specialists, the psychological specialists, the educational specialists, all have mystified child development. They have fostered the idea that understanding children and promoting their intellectual well-being is too complex for mothers and requires the intervention of experts.
    Elaine Heffner (20th century)

    Why did he think adding meant increase?
    To me it was dilution. Where do these
    Innate assumptions come from?
    Philip Larkin (1922–1986)

    What a man believes may be ascertained, not from his creed, but from the assumptions on which he habitually acts.
    George Bernard Shaw (1856–1950)