Giter VIP home page Giter VIP logo

cs380d-proj2's Introduction

CS380D-proj2

In this project, we present an abstract implementation of 2PC, extended with failure handling. Nodes are implemented as thread objects, and messages are transfered in queue objects. We simulate the messenge delays by assuming an internal clock for each node.

Project Spec: https://docs.google.com/document/d/167ZNK8qxkkPh6bU4sqloyBiIub3WGYpdjwu2_6Z-jKA/edit?fbclid=IwAR0wo1P5XRtxDsEQiKOjyseEtyrIzc_z1EGeczANBc8mMr93db7GyZdPWzg

Name, UT EIDs, UTCS IDs

Dian Chen, dc44632, dchen
Ruei-Bang Chen, rc46658, rbchen
Changan Chen, cc68838, changan

Prerequisites

python (>=3.7)

Implementation

We implemented the termination protocol and the loggings to handle node crash failures, link failures, and network partitions.

  • algo/nodes.py contains the code for the participant and coordinator logic for 2PC, including part of the logging and the termination protocol logic.
  • algo/messages.py implements messages, including VoteReq, Vote, DecisionReq, Commit and Abort.
  • algo/tasks.py implements nodes' tasks such as node crashes and recovery.
  • tests contains our unittest code. There are 8 testing scenarios, 5 of which test for node crash failures, 1 tests for link failures, and 1 test for network partition.

Run Tests

To run the tests, run python -m tests -v.

cs380d-proj2's People

Contributors

changanvr avatar dianchen96 avatar dotchen avatar ruei-bang avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

0xack13

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.