Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for realizing suspension prevention of distributed transactions

A distributed transaction and implementation method technology, applied in the field of distributed transaction anti-suspension, can solve problems affecting the performance of distributed systems, and achieve the effect of avoiding transaction suspension and improving performance

Active Publication Date: 2017-06-13
ADVANCED NEW TECH CO LTD
View PDF3 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If a participant is responsible for multiple distributed transaction branches, the initiator needs to send a two-phase rollback request to the participant for each distributed transaction branch, s

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
  • Method and device for realizing suspension prevention of distributed transactions
  • Method and device for realizing suspension prevention of distributed transactions
  • Method and device for realizing suspension prevention of distributed transactions

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The embodiment of this application proposes a new implementation method of anti-suspension of distributed transactions, which uses the global identifier of distributed transactions on participants to carry out anti-suspension control, so that the initiator can use distributed The global identifier of the type transaction is used to call the participants at one time, and it is not necessary to call the participants responsible for the branch of the transaction one by one according to the branch of the distributed transaction, which greatly improves the performance of the distributed system and solves the problems existing in the prior art.

[0025] In this embodiment of the present application, the initiator of the distributed system and at least one participant can access each other through a network. Initiators and participants can be software modules such as applications, processes, and services, and the devices running these software modules can be any devices with co...

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

The invention provides a method for realizing suspension prevention of distributed transactions. The method comprises the following steps of: receiving a first-stage request which comprises a global identifier; if a record which has a rollback state and has the global identifier in the first-stage request exists in a suspension prevention control table, considering that first-stage processing fails; otherwise, enabling a record which has an initial state and has the global identifier in the first-stage request to exist in the suspension prevention control table, and carrying out first-stage business processing; receiving a second-stage rollback request which comprises a global identifier; and enabling a record which has a rollback state and has the global identifier in the second-stage rollback request to exist in the suspension prevention control table, and carrying out business processing of second-stage rollback on the basis of the global identifier in the second-stage rollback request. Through the method provided by the invention, the initiators and participators of distributed transactions can avoid the transaction suspension caused by network jittering and the like, so as to ensure the final consistency of the distributed transactions; meanwhile, under a multi-branch transaction scene, the initiators only need to initiate submission or rollback requests to the participators for once, so that the performance of the distributed transactions is improved.

Description

technical field [0001] The present application relates to the technical field of data management, and in particular to a method and device for realizing anti-suspension of distributed transactions. Background technique [0002] A distributed transaction refers to a transaction involving multiple database operations. Multiple data operations can be operations on different databases, or multiple operations on one database. When a distributed transaction ends, the consistency of the transaction requires that all server operations involved are either all committed or all aborted. In order to achieve this, distributed system transaction processing usually adopts a two-phase commit method. In the first phase, the initiator (or coordinator) sends a request to the participant to ask whether the participant can complete the distributed transaction that he is responsible for. In the transaction branch, the participant replies to the initiator with the result of the success or failure...

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): G06F9/46
CPCG06F9/466
Inventor 湛滨瑜
Owner ADVANCED NEW TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products