Unlock instant, AI-driven research and patent intelligence for your innovation.

A distributed transaction submission method and device

A distributed transaction and transaction submission technology, applied in the field of distributed transaction submission methods and devices, can solve the problems of affecting transaction processing throughput, low efficiency of two-stage transaction execution, etc., so as to reduce locking time, reduce the number of interactions, and improve The effect of processing efficiency

Active Publication Date: 2021-06-29
北京宝兰德软件股份有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] The embodiment of the present invention provides a distributed transaction submission method and device to solve the problem that in the current two-phase transaction submission protocol, each XA resource participating in the two-phase transaction needs to be locked for a long time, which affects the throughput of transaction processing Rate, leading to the defect of low execution efficiency of two-phase transactions

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
  • A distributed transaction submission method and device
  • A distributed transaction submission method and device
  • A distributed transaction submission method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. 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.

[0043] The embodiment of the present invention provides a distributed transaction submission method, which combines the separation of reading and writing of XA resources with one-stage transaction submission during execution, and can effectively reduce XA under the premise of ensuring that the effect of two-stage transaction submission can be achie...

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 embodiment of the present invention provides a method and device for submitting a distributed transaction, including: after receiving the request to submit the global transaction, all XA resources participating in the global transaction submit the modification related to the global transaction sequentially by means of one-stage transaction submission Go to the master node of the XA resource where it is located, and record the reverse operation in the transaction log of the read-write separation agent of the XA resource where it is located; after all XA resources participating in the global transaction successfully submit the global transaction, in each XA resource participating in the global transaction, Clear the reverse operation from the transaction log of the read-write separation agent of the XA resource, and notify the master node of the XA resource to synchronize the submission of the global transaction to the slave node of the XA resource. The distributed transaction submission method and device provided by the embodiments of the present invention reduce the number of interactions with each XA resource in the transaction submission process, reduce the locking time for each XA resource, and greatly improve the processing efficiency of global transactions.

Description

technical field [0001] The invention relates to the field of transaction processing, in particular to a distributed transaction submission method and device. Background technique [0002] The XA two-phase transaction commit protocol is a two-phase commit protocol defined by the X / OPEN organization and used in a distributed transaction environment to ensure data consistency and integrity among multiple resources participating in the transaction. At present, mainstream databases and message middleware servers all support the XA protocol. [0003] When the transaction needs to be committed, call XAResource.papare of each resource XAResource participating in the transaction to collect voting results. If all XAResources return XAResource.XA_COMMIT, the transaction can be committed, and XAResource.commit is called to commit the transaction. If in the first phase, the XAResource participating in the transaction has a disagreement commit, call XAResource.rollback to roll back the t...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/46
CPCG06F9/466
Inventor 易存道
Owner 北京宝兰德软件股份有限公司