Coder Social home page Coder Social logo

zeta1999 / 2-phase-commit-protocol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ja030019/2-phase-commit-protocol

0.0 0.0 0.0 522 KB

Use TLA+/PlusCal to explore what problems may arise, and how to properly design the protocol to overcome those problems.

TLA 22.86% TeX 77.14%

2-phase-commit-protocol's Introduction

2-phase-commit-protocol


UB Distributed System Course Project
In a distributed system, a transaction is performed by a collection of pro- cesses called resource managers (RMs), each executing on a different node. The transaction ends when the transaction manager (TM) issues a request either to commit or to abort the transaction. For the transaction to be com- mitted, each participating RM must be willing to commit it. Otherwise, the transaction must be aborted. Prior to the commit request, any RM may spontaneously decide to abort its part of the transaction. The fundamental requirement is that all RMs must eventually agree on whether the transaction is committed or aborted. (https://www.microsoft.com/en-us/research/ wp-content/uploads/2016/02/tr-2003-96.pdf)

Below find a model of 2-phase commit. (This was built by modifying the P2TCommit.tla at http://lamport.azurewebsites.net/tla/two-phase. html to add a TM agent). We will start with that code as the basis for what comes next.

If no faults occur, the 2-phase commit algorithm is correct. In the pres- ence of a crash fault, however, problems can arise. In the questions below, we will use TLA+/PlusCal to explore what problems may arise, and how to properly design the protocol to overcome those problems.

2-phase-commit-protocol's People

Contributors

ja030019 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.