DISTRIBUTED COMMITMENT AND RECOVERY: TWO PHASE COMMIT | Blazingprojects Postgraduate Thesis
Home / Computer Science / DISTRIBUTED COMMITMENT AND RECOVERY: TWO PHASE COMMIT

DISTRIBUTED COMMITMENT AND RECOVERY: TWO PHASE COMMIT

 

Table Of Contents


  • 1 INTRODUCTION 2
  • 1.1Purpose 2
  • 1.2Objective 2
  • 1.3Definitions, Acronyms, and Abbreviations. Abbreviations: 2 1.
  • 3.1Acronyms 2 1.
  • 3.2Definitions 2 2 Literature Overview 3
  • 2.1Two Phase Commit 3
  • 2.2One Phase Commit 3
  • 2.3Presumed Abort Two Phase Commit 4
  • 2.4Presumed Commit Protocol 4
  • 2.51-2 PC Protocol 4
  • 2.6Three Phase Commit 5
  • 2.7Nonblocking Two phase commit 5
  • 2.8Utility in case of handheld 5 3 Implementation Details 5
  • 3.1Data Structures 5
  • 3.2Algorithm -Two Phase Commit 7 3.
  • 2.1Coordinating Site 7 3.
  • 2.2Participating Site 8
  • 3.3Algorithm – One Phase Commit 8 3.
  • 3.1Coordinating Site 8 3.
  • 3.2Participating Site 9
  • 3.4Directories and Files 9 3.
  • 4.1Source Code Organisation 9 3.
  • 4.2Source Files 9 3.
  • 4.3Functions 10
  • 3.5Interfaces 11 3.
  • 5.1Transaction Manager 11 3.
  • 5.2LogManager 12
  • 3.6Languages Tools and Libraries 12 3.
  • 6.1Programming Language 12 3.
  • 6.2RPC Paradigm 12 3.
  • 6.3Multi-Threading 12 3.
  • 6.4Mutexes and Locks 13 4 Testing and Build 13
  • 4.1Testcases 13 4.
  • 1.1Two Phase Commit Protocol – Testcases 14 4.
  • 1.2One Phase Commit Protocol – Testcases 14
  • 4.2Compilation 15 5 Conclusion and Future Work 15

Thesis Abstract

A formal model for atomic commit protocols for a distributed database system is introduced. The model is used to prove existence results about resilient protocols for site failures that do not partition the network and then for partitioned networks. For site failures, a pessimistic recovery technique, called independent recovery, is introduced and the class of failures for which resilient protocols exist is identified. For partitioned networks, two cases are studied the pessimistic case in which messages are lost, and the optimistic case in which no messages are lost. In all cases, fundamental limitations on the resiliency of protocols are derived.Index Terms-Commit protocols, crash recovery, distributed database systems, distributed systems, fault tolerance, transaction management.

Thesis Overview

INTRODUCTIONA formal model for transaction processing in a distributed database and then extend it to model several classes of failures and crash recovery techniques. These models are used to study whether or not resilient protocols exist for various failure classes.Crash recovery in distributed systems has been studied extensively in the literature Many protocols have been designed that are resilient in some environments. All have an “ad hoc” flavor to them in the sense that the class of failures they will survive is not clearly delineated.The purpose of this project is to formalize the crash recovery problem in a distributed database environment and then give some preliminary results concerning the existence of resilient protocols in various well-defined situations.Consequently, in the next section we give a brief introduction to transactions in a distributed database.In Section III we indicate the assumed network environment and our model for transaction processing. In Section IV we extend the model to include the possibility of site failure and give results concerning the existence of resilient protocols in this situation. Section V turns to the possibility of network failure and shows the class of failures for which a resilient protocol exists. Section VI summarizes the results in the previous two sections.1.2   BACKGROUND OF THE STUDYA distributed database management system supports a database physically distributed over multiple sites interconnected by a communications network. By definition, a transaction in a distributed database system is a (logically) atomic operation: it must be processed at all sites or at none of them. De-signing protocols resilient to various failures, including arbitrary site failures and partitioning of the communications network, is a very difficult task. Preserving transaction atomicity in the single-site case is a well-understood problem. The processing of a single transaction is viewed as follows. At some time during its execution, a “commit point” is reached where the site decides to commit or to abort the transaction. A commit is an uncon¬ditional guarantee to execute the transaction to completion, even in the event of multiple failures. Similarly, an abort is an unconditional guarantee to back out the transaction so that none of its effects persist. If a failure occurs before the commit point is reached, then immediately upon recovery the site will abort the transaction. Both commit and abort are irreversible. In the multiple site case, it is the task of a commit protocol to enforce global atomicity. Assuming that each site has a recovery strategy that provides atomicity at the local level, the problem becomes one of ensuring that the sites either unanimously abort or unanimously commit the transaction. A mixed decision results in an inconsistent database. In the absence of failures, a unanimous consensus is easily obtained by a simple protocol. The challenge then is to find protocols ensuring atomicity in the presence of inopportune and perhaps repetitive failures.A basic assumption within this project is that during the initial phase of distributed transaction processing any participating site can unilaterally abort the transaction. A site may choose to abort for any of the following reasons:1)     One or more sites fail,2)     The network fails,3)     The transaction deadlocks with another transaction,4)     The user aborts the transaction.Clearly, before any site can commit the transaction, all sites must relinquish their right to unilaterally abort it. Once a site has relinquished that right, it can abort the transaction only in concordance with the other sites.1.2 PURPOSE OF THE STUDYTo design and implement an optimized commit protocol (1 PC and 2 PC) for transactions indistributed Database Management Systems which ensure atomicity and durability, in particular for handheld devices.1.4 OBJECTIVE OF THE STUDY
  1. The protocol development involves algorithms for the coordinator and participating pro­cesses within Transaction Manager to provide global atomicity.
  2. It guarantees uniform execution of transaction ensuring that all participating sites commit or all abort even when subject to network failures, coordinating and participating site failures.
  3. The distributed computer system ensures reliability by providing redundant resources on different nodes. It leads to problems like lack of global state information, the possibility of partial failure and performing parallel operations. Hence, to maintain consistency an atomic transaction model is required.
  4. In D-DBMS, database may be replicated or fragmented on multiple sites. A single trans­action may involve the modifications in the database at multiple sites. For maintaining the consistency, more specifically, guarantying the ACID properties it is necessary for the transaction manager to ensure that the transaction gets successfully completed at all the sites participating in the transaction or on none of them. The Commit Protocol is to be designed to handle all these issues.
  5. This protocol is intended to be applicable in DBMS for handheld devices, e.g. Simputer. It has to handle the issues common to the mobile environment like frequent disconnections, high communication prices etc.
  6. Both the protocol 2PC and 1PC, have been designed and implemented
DEFINITIONS OF TERMCoordinating site: The site that initiates the transaction.Participating sites: The sites at which the transaction gets executed.Deferred constraints: The constraints checks that are validated only at the time of the com­mit.Voting phase: The phase in which the coordinating site communicate with REFERENCES[1]Ashwini G. Rao:Memory Constrained DBMSs with updates, 2003.[2]Jayant Harista, Krithi Ramamritham:Revisiting Commit Processing in Distributed Datatabase Systems.[3] Yousef J. Al-Houmaily,Panos K. Chrysanthis: 1-2 PC: The one-two phase atomic commit protocol., 2004.

Blazingprojects Mobile App

📚 Over 50,000 Research Thesis
📱 100% Offline: No internet needed
📝 Over 98 Departments
🔍 Thesis-to-Journal Publication
🎓 Undergraduate/Postgraduate Thesis
📥 Instant Whatsapp/Email Delivery

Blazingprojects App

Related Research

Library and informat. 4 min read

Comparative Analysis of Digital Literacy Skills in Academic Library Users Across Uni...

This research explores the digital literacy skills of students and staff who use academic library resources across different universities. Digital literacy refe...

BP
Blazingprojects
Read more →
Law. 2 min read

Comparative Analysis of Data Privacy Laws in the EU and US...

This research aims to compare how data privacy is protected by laws in the European Union (EU) and the United States (US). Data privacy is increasingly importan...

BP
Blazingprojects
Read more →
Insurance. 2 min read

Comparative Analysis of Claims Management Efficiency in Public and Private Insurance...

This research focuses on examining how effectively insurance companies manage claims, specifically comparing public (government-owned) and private (independent)...

BP
Blazingprojects
Read more →
Industrial and Produ. 4 min read

A Comparative Analysis of Lean and Six Sigma Implementation in Manufacturing Industr...

This research explores two popular approaches used by manufacturing companies to improve their processes: Lean and Six Sigma. Lean focuses on eliminating waste ...

BP
Blazingprojects
Read more →
Human Nutrition and . 4 min read

Comparative Analysis of Dietary Patterns and Nutritional Status in Urban versus Rura...

This research aims to compare the dietary habits and nutritional health of adolescents living in urban areas with those in rural areas. Adolescents are at a cri...

BP
Blazingprojects
Read more →
History and Internat. 3 min read

The Impact of Colonial Legacies on Postcolonial State-Building in Africa and Southea...

This research examines how the legacy of colonial rule has influenced the way new countries in Africa and Southeast Asia have built their governments and instit...

BP
Blazingprojects
Read more →
Health and Physical . 4 min read

Comparative Analysis of Physical Activity Levels Between Urban and Rural Adolescents...

This research aims to compare the levels of physical activity among adolescents living in urban areas with those in rural areas. It focuses on understanding whe...

BP
Blazingprojects
Read more →
Guidance and Counsel. 2 min read

Comparative Study of Career Counseling Effectiveness Among Urban and Rural High Scho...

This research explores how effective career counseling services are for high school students in both urban and rural areas. Many students rely on career counsel...

BP
Blazingprojects
Read more →
Geophysics. 4 min read

Comparative Analysis of Seismic Response in Urban vs. Rural Soil Conditions...

This research aims to understand how different soil conditions in urban and rural areas affect the way seismic waves cause ground shaking during an earthquake. ...

BP
Blazingprojects
Read more →
WhatsApp Click here to chat with us