Distributed parallel the database system DPSQL consistency mechanism research
- Author
- HeJinChuan
- Advisor
- LiuXinSong
- School
- University of Electronic Science and Technology
- Major
- Computer System Architecture
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 76
- Citations
- 1
Abstract
Database is the state and progress of some phenomena in the real world.The data in database must be consistent for its right reflection of the realworld. Any interruption in the updating process or any other wrong proceduremay cause data inconsistency. The key element to ensure the data consistencyis to make the updating sequence clear, its called transation.So, any accessing and updating operation to the database can beconsidered as an atomic operation called transaction. Transaction applies all-or-nothing principle. When customers order an operation to database,transaction must ensure that it can lock the related data for its own operation.When transaction is running, it must log running states which will be usedwhen the database need a recovery. Using transaction, it also needs to apply“two-phrase-commit”protocol for any database update to guarantee theconsistency of database.DPSQL is a distributed and parallel database system which is being self-developed by 8010 Lab, UESTC. There are two problems about dataconsistency in the implementation of DPSQL.If DPSQL use double-log mechanism, the transaction log of InnoDB and SQL log of DPSQL might be inconsistent.If DPSQL use the standard two-phrase-commit protocol, it might cause inconsistency because of the rocking problems of transaction commit.The conception of consistency used in this paper is only refered to theabove two problems.Based on hard research work, this paper first analyses the transactionmechanism of InnoDB, then it introduces the distributed transactionmechanism of DPSQL, especially the implementation of distributedtransaction log. DPSQL system applies an adapt two-phrase-commit (2PC)
Table of contents
Chapter 1 Introduction 10-11
Chapter 2, distributed parallel database 11-20
2.1 Distributed Database Profile 12-13
2.1 .1 distributed database system characteristics 12-13
2.1.2 types of distributed Database System 13
2.2 parallel Database Profile 13-14
2.3 MySQL introduces 14-17
2.3.1 MySQL 's main features and limitations 14-15
2.3.2 MySQL system architecture 15-17
2.3.3 MySQL underlying database engine 17
2.4 DPSQL overall structure 17-20
Chapter 3 DPSQL transaction mechanism 20-42 < br /> 3.1 affairs 21-23
3.1.1 Overview of Transactions 21-22
3.1.2 transaction Manager introduces 22-23
3.2 InnoDB transaction mechanism 23-35
3.2.1 InnoDB transaction concurrency control 24-27
3.2.2 InnoDB transaction log 27-35
3.3 DPSQL transaction mechanism 35-42
3.3.1 distributed Transaction Profile 35-36
3.3.2 DPSQL distributed transaction concurrency control 36 - 37
3.3.3 DPSQL distributed transaction log implementation strategy 37-42
Chapter 4 state-based cache inquisitorial two -phase commit protocol 42-67
4.1 normal execution of the transaction and commit protocol 42-49
4.1.1 DO_UNDO_REDO agreement 42-43
4.1.2 two -phase commit protocol and blocking fault 43 -49
4.2 DPSQL transaction execution 49-51
4.3 DPSQL state-based cache inquisitorial two -phase commit protocol implementation 51-64
4.3.1 based state cache inquisitorial two -phase commit protocol 52-55
4.3.2 transaction Manager agent node state transition 55-64
4.4 performance Comparison 64 -67
Chapter 5 Conclusion 67-68
References 68-71
Thanks 71-72
biographical 72
Related dissertations
- Research and Design on Data Extraction in Multiple Data Sources
- Generic Log Parser Framework DB2 data update detection method and implementation
- The Research and Implementation of the Method Used to Detect SQL Server Information Sources Based on TLog
- Research of Resource Search Based on Peer-to-Peer Network
- Transaction Commit and Recovery Mechanism Oriented Grid Envioronment
- The Data Synchronization and Switch of Main Memory Database
- Algorithm Study and System Development of Real-Time Database
- RESEARCH ON TRANSACTION MANAGEMENT IN ENGINEERING DATABASE SYSTEM SUPPORTING COOPERATIVE DESIGN
- Research on Transaction-Committing Protocol in Grid-DBMS
- Research of Data-oriented Integrated Application for SQL Server Log Analysis
- Research and Implementation of SQL Server Database Change Data Capture Based on Log Analysis
- Research of Data Synchronization Mechanism for Log Analysis Applied on the China LMTC Operation Platform