Distributed transaction committing failure handling method, device and system

A technology of distributed transactions and processing methods, which is applied in the field of processing of distributed transaction submission failures, can solve problems such as inability to automatically repair, and achieve the effect of ensuring atomicity and consistency

Inactive Publication Date: 2014-02-05
HUAWEI TECH CO LTD
View PDF4 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The embodiment of the present invention provides a method, device and system for processing the commit failure of a distributed transaction, which is used to solve the problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Distributed transaction committing failure handling method, device and system
  • Distributed transaction committing failure handling method, device and system
  • Distributed transaction committing failure handling method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0039] The embodiment of the present invention provides a processing method for a distributed transaction commit failure, which is applied to a database or a transaction manager associated with a distributed transaction. Please refer to figure 1 , the method includes:

[0040] Step 101: After the first phase commit of the distributed transaction is completed, the first node records that the state of the distributed transaction is not completed.

[0041] Wherein, t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

An embodiment of the invention provides a distributed transaction committing failure handling method and device. The method includes the steps: recording the state of a distributed transaction as an unfinished state by a first node after committing the distributed transaction at a first stage; transmitting a transaction state query request including the sign of the distributed transaction to a second node according to the recorded unfinished state of the distributed transaction after the first node fails or network connection between the first node and the second node fails and failure recovers; repairing the distributed transaction at a second stage according to the state of the distributed transaction returned by the second node. By the method, the problem that the distributed transaction cannot be automatically repaired when second-stage committing failure of the distributed transaction occurs can be solved, and atomicity and uniformity of the distributed transaction are ensured.

Description

technical field [0001] The present invention relates to the technical field of communication networks, in particular to a method, device and system for processing distributed transaction commit failures. Background technique [0002] Transaction is the smallest logical unit of work for an operation sequence to access the database for specific business functions, usually including local transactions and distributed transactions, also known as global transactions. [0003] A distributed transaction means that a transaction may involve multiple database operations, for example, several different databases may be updated in one transaction. After operations are performed on these databases, all modifications to these databases must be committed or rolled back. Committing refers to writing the modified data to disk, and rolling back refers to canceling the modification. Some databases are not allowed to be submitted while others are not. Commit, this feature is called transactio...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30G06F9/44H04L29/08
CPCH04W24/04G06F16/27H04L41/0654
Inventor 姚理朱仲楚邱涛
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products