CN109783204A - A kind of distributed transaction processing method, device and storage medium - Google Patents

A kind of distributed transaction processing method, device and storage medium Download PDF

Info

Publication number
CN109783204A
CN109783204A CN201811652896.6A CN201811652896A CN109783204A CN 109783204 A CN109783204 A CN 109783204A CN 201811652896 A CN201811652896 A CN 201811652896A CN 109783204 A CN109783204 A CN 109783204A
Authority
CN
China
Prior art keywords
equipment
affairs
execution
request
local matter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811652896.6A
Other languages
Chinese (zh)
Inventor
郭兆年
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Culture Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811652896.6A priority Critical patent/CN109783204A/en
Publication of CN109783204A publication Critical patent/CN109783204A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the present invention provides a kind of distributed transaction processing method and device, wherein the method is applied to coordinate equipment, the coordination equipment executes equipment for managing at least one, which comprises receives at least one described first affairs for executing equipment executed in equipment and participates in request;The affairs participate in request for indicating the first execution equipment in the state for being able to carry out local matter to the coordination equipment;It receives the affairs that the first execution equipment is sent and submits request;Wherein, the affairs submit request that the local matter is completed for characterizing the first execution equipment;The affairs for executing equipment based on described first submit request, and Xiang Suoshu first executes equipment transmission affairs and submits instruction.

Description

A kind of distributed transaction processing method, device and storage medium
Technical field
The present invention relates to backstage distributed systems, and in particular to a kind of distributed transaction processing method, device and storage are situated between Matter.
Background technique
In a distributed system, in order to guarantee the High Availabitities of data, it will usually data be retained multiple copies, these copies It can be placed on the machine of different physics.In the case where data have multiple copies, if network, server or software go out Existing failure, will lead to part copy and is written successfully, the write-in failure of part copy.The data that this is resulted between each copy are different It causes, data content conflict causes actual data inconsistent.
In order to solve the problems, such as this distributed consensus, it has been proposed that two-phase commitment protocol (Two- as shown in Figure 1 Phase Commit Protocol, 2PC) and three-phase commitment protocol as shown in Figure 2 (Three-Phase Commit Protocol, 3PC), but all there is respective defect in both committing protocols.The synchronous obstruction of two-phase commitment protocol presence, The problems such as Single Point of Faliure;And three-phase commitment protocol can have data inconsistence problems.
Summary of the invention
In view of this, the main purpose of the present invention is to provide a kind of distributed transaction processing method, device and storages to be situated between Matter, the Transaction Blocking problem being able to solve in distributed system, guarantees the consistency of data.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
A kind of distributed transaction processing method of the embodiment of the present invention is applied to coordinate equipment, and the coordination equipment is used for It manages at least one and executes equipment, which is characterized in that the described method includes:
It receives at least one described first affairs for executing equipment executed in equipment and participates in request;Wherein, the affairs Request is participated in for indicating the first execution equipment in the state for being able to carry out local matter to the coordination equipment;
It receives the affairs that the first execution equipment is sent and submits request;Wherein, the affairs submit request for characterizing The local matter is completed in the first execution equipment;
The affairs for executing equipment based on described first submit request, and Xiang Suoshu first executes equipment transmission affairs submission and refers to It enables.
In the above scheme, it is described to it is described first execute equipment send affairs submit instruction before, the method is also wrapped It includes:
After determining that receiving the affairs that described first executes equipment transmission submits request, the first execution equipment is held Capable log relevant to local matter and lock information are stored in database table.
In the above scheme, the method also includes:
Detect whether that receiving the affairs that at least one described whole execution equipment executed in equipment are sent submits confirmation Message;
If so, confirmation global transaction is completed;Based on the identifier of the global transaction, at least one described execution is set Standby corresponding database is cleared up;Wherein, global transaction sheet as performed by the execution equipment of coordination equipment management Ground affairs composition.
The embodiment of the present invention also provides a kind of distributed transaction processing method, is applied to first and executes equipment, feature exists In, which comprises
Affairs participation request is sent to equipment is coordinated;Wherein, the affairs participate in request for referring to the coordination equipment Show that the first execution equipment is in the state for being able to carry out local matter;The coordination equipment is for managing at least one execution Equipment, it is described at least one execute equipment in comprising first execute equipment;
Local matter is executed, affairs submission is sent to the coordination equipment when completing the processing of the local matter and asks It asks;Wherein, it is the first execution equipment before receiving affairs and participating in request that the local matter, which is the coordination equipment, The affairs of distribution;Wherein, the affairs submit request that the local matter is completed for characterizing the first execution equipment;
When receiving the affairs submission instruction that the coordination equipment is sent, the local matter is submitted.
In the above scheme, after the submission local matter, the method also includes:
Confirmation message is sent to equipment is coordinated, the confirmation message is for notifying the local matter to have been filed on.
In the above scheme, after the submission local matter, the method also includes:
Release participates in the connection resource of the database of the local matter.
The present invention also provides a kind of distributing real time system device, described device includes: the first receiving module, the second reception Module and the first sending module, wherein
First receiving module is joined for receiving at least one described first affairs for executing equipment executed in equipment With request;Wherein, the affairs participate in request for being in and can hold to coordination equipment instruction the first execution equipment The state of row local matter;
Second receiving module submits request for receiving the affairs that the first execution equipment is sent;Wherein, described Affairs submit request that the local matter is completed for characterizing the first execution equipment;
First sending module, the affairs for executing equipment based on described first submit request, and Xiang Suoshu first is held Row equipment sends affairs and submits instruction.
The present invention also provides a kind of distributing real time system device, described device includes: request module, execution module and mentions Hand over module, wherein
The request module participates in request for sending affairs to coordination equipment;Wherein, the affairs participate in requesting to be used for Indicate the first execution equipment in the state for being able to carry out local matter to the coordination equipment;The coordination equipment is used for It manages at least one and executes equipment, include the first execution equipment at least one described execution equipment;
The execution module is set when completing the processing of the local matter to the coordination for executing local matter Preparation send affairs to submit request;Wherein, the local matter is that the coordination equipment is before receiving affairs and participating in request Described first executes the affairs of equipment distribution;Wherein, the affairs submit request complete for characterizing the first execution equipment At the local matter;
The submission module, for submitting described when receiving the affairs submission instruction that the coordination equipment is sent Ground affairs.
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, wherein the calculating The either step of machine program method described above when being executed by processor.
The present invention also provides a kind of distributing real time system devices, comprising: processor and for store can be in processor The memory of the computer program of upper operation, wherein the processor is for executing above-mentioned institute when running the computer program State the either step of method.
Distributed transaction processing method and device provided in an embodiment of the present invention, by each execution equipment respectively parallel to Coordinate equipment and submit participation request, and the respectively autonomous mode for executing local task, waits other execution equipment without synchronous It is confirmed whether that the receipt of affairs can be participated in, improves the efficiency of distributed transaction execution;Local has been executed in each execution equipment It after affairs, is managed by coordination equipment is unified, executes and submit or rollback, the obstruction in very good solution distributed transaction is asked Topic.Also, since distributed transaction processing method provided in an embodiment of the present invention uses local matter in global transaction submission The mode with the cleaning of global transaction identifier is submitted, the data consistency of distributed transaction can be improved, reach distributed transaction Maximum performance.
Detailed description of the invention
Fig. 1 is the information exchange figure of the distributed transaction processing method of two-phase commitment protocol;
Fig. 2 is the information exchange figure of the distributed transaction processing method of three-phase commitment protocol;
Fig. 3 is a kind of application scenarios of the embodiment of the present invention;
Fig. 4 is a kind of flow chart of distributed transaction processing method provided in an embodiment of the present invention;
Fig. 5 is the flow chart of another distributed transaction processing method provided in an embodiment of the present invention;
Fig. 6 is the interaction schematic diagram between coordination equipment provided in an embodiment of the present invention and execution equipment;
Fig. 7 is the structural schematic diagram one of distributing real time system device provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram two of distributing real time system device provided in an embodiment of the present invention;
Fig. 9 is a kind of hardware structural diagram of distributing real time system device of the embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, the specific technical solution of invention is described in further detail.The following examples are intended to illustrate the invention, but does not have to To limit the scope of the invention.
Before embodiments of the present invention are described, the background context of distributed transaction is first learnt about in detail.
Distributed transaction refers to that primary big operation is made of different small operations, these small operations are distributed in different On server, and belong to different applications, distributed transaction needs to guarantee these small operations or all success or all loses It loses.Basically, distributed transaction is exactly the data consistency in order to guarantee disparate databases.But different small operation It is executed by different nodes, and can not accurately know the affairs executive condition of other nodes between mutually independent node.For Guarantee the data consistency in distributed system, the key of distributing real time system is that there must be a kind of method to be known that thing Be engaged in the everything that is anywhere done, submit or decisions of rollback affairs must generate unified result (all submission or Whole rollbacks).So conventional solution is exactly to introduce the component of one " coordinator " to carry out all distributed sections of United Dispatching The execution of point.
In application scenarios shown in Fig. 3, when task comes interim, application system (AP, Application), i.e. business system Delineation of activities can be multiple branch's affairs according to the concrete condition of business by system, and multiple branch's affairs of division are sent to Task manager (TM, Transaction Manager), i.e. coordination equipment.Here, the operation system AP is by the multiple of division Branch's affairs, which are sent to, coordinates equipment TM, realizes particular by the operation interface TX of distributed transaction is called.
Coordinate equipment TM after receiving above-mentioned multiple branch's affairs, multiple branches are parsed, determine each branch Process object and corresponding resource, and accorded with to affairs allocation identification;After determining each branch's business, pass through resource manager The operation interface XA that (RM, Resource Manager) is provided carrys out each resource manager RM of United Dispatching, i.e. execution equipment, with reality Existing distributed transaction.Here, resource manager RM is usually database, is also possible to other resource managers, such as message team It arranges (such as JMS data source).
It should be noted that then passing through the local interface of RM offer between operation system AP and execution equipment RM in Fig. 3 (Native API) carries out resources control;Here, local interface does not carry out the agreement of interface specification, be currently each manufacturer from Oneself realizes the resources control of oneself.
Realize that the current of distributed transaction has two-phase commitment protocol, three-phase commitment protocol by XA interface specification.? Find that two-stage submission has the problems such as synchronous obstruction, Single Point of Faliure and data are inconsistent in practice, and three stages submitted and solve It has determined Single Point of Faliure problem, and obstruction can be reduced, once but since its interaction mechanism receive participant can not in time After information from coordinator, it, which can default, executes submission (commit), without holding transaction resource always and in resistance Plug-like state;On the one hand this mechanism can significantly reduce obstructing problem, but also result in Data Consistency: due to Network cause, termination (abort) response for coordinating equipment TM transmission are not performed equipment RM in time and receive, set then executing Standby RM performs submission (commit) operation after waiting time-out.Termination (abort) order thus is connected to other and is held There is a situation where that data are inconsistent between the execution equipment RM of row rollback.
Based on this, the embodiment of the present invention provides a kind of distributed transaction processing method, is applied to coordinate equipment, the association Equipment is adjusted to execute equipment for managing at least one, as shown in figure 4, this method comprises:
S101 receives at least one described first affairs for executing equipment executed in equipment and participates in request;Wherein, described Affairs participate in request for indicating the first execution equipment in the state for being able to carry out local matter to the coordination equipment;
S102 receives the affairs that the first execution equipment is sent and submits request;Wherein, the affairs submit request to be used for It characterizes the first execution equipment and the local matter is completed;
S103, the affairs for executing equipment based on described first submit request, and Xiang Suoshu first executes equipment transmission affairs and mentions Interdigital order.
Here, the coordination equipment TM is executed and is set for all distributed nodes of United Dispatching in distributed system The equipment that standby RM executes task, the determination for coordinating equipment TM can be and determine by the sequence of the execution of business, i.e., and first The executor of business is to coordinate equipment TM, is also possible to be chosen according to the interrelated relationship between subservice each in business The most execution equipment of incidence relation is to coordinate equipment TM, and certainly, the determination for coordinating equipment TM herein is also possible to other determinations Mode.
The execution equipment RM is the equipment that local matter is executed in distributed system.In a distributed system, one As only one coordinate equipment TM, but have multiple execution equipment RM." first ", " second " etc. are only used for distinguishing description, and It cannot be understood as indicating or implying relative importance.
In step s101, coordinate the affairs for the first execution equipment that equipment TM is received at least one described execution equipment Participate in request, specifically include: when business is come temporarily, delineation of activities is multiple points according to the concrete condition of business by operation system AP Branch affairs, and multiple branch's affairs of division are sent to and coordinate equipment TM, coordinate equipment TM according to each branch's affairs situation, leads to It crosses the registration of XA interface and executes equipment RM, that is, register the execution equipment RM of this business needs.Here, when the execution equipment being registered It is described in the execution equipment RM for being able to carry out local matter state when some is in the state for being able to carry out local matter in RM Actively to coordinate equipment TM send affairs participate in request, and coordinate equipment TM receive it is described first execution equipment affairs participation ask It asks.
In step s 102, the affairs that the coordination equipment TM receives that the first execution equipment is sent submit request;This In, the affairs submit request that the local matter is completed for characterizing the first execution equipment;
In step s 103, after coordinating equipment TM and receiving affairs submission request, the coordination equipment TM is based on described First affairs for executing equipment submit request, and Xiang Suoshu first executes equipment transmission affairs and submits instruction, start formal submission Process.
Here, before coordination equipment TM executes equipment transmission affairs submission instruction to described first, the distributed transaction Processing method further include:
After determining that receiving the affairs that described first executes equipment transmission submits request, the first execution equipment is held Capable log relevant to local matter and lock information are stored in database table.
Here, coordinate the affairs submission request that equipment TM receives the transmission of the first execution equipment, just execute and set by described first The standby correlation log information for executing local task and lock information are stored.
It should be noted that the log information includes the undo log and redo log of local matter;The lock information Refer to before the submission of affairs, lock resource.The undo log is for storing the value before data modification;It is redo days described Will, for the data after record modification, journal.
It should also be noted that, generally, Relational DBMS is made of two files, a data Library file and a journal file.Log is all first write when database carries out any write operation;Executing affairs When, database will record down the local redo log of this affairs, i.e. data after record modification first, then just start Real operating database;Disk can be written in journal file first before the procedure.So when unexpected power-off, even if behaviour It does not complete, when restarting database, database can carry out undo rollback either according to the case where current data It is rolled before redo, ensures that the strong consistency of data in this way.
When database makes an amendment data, data page is needed to read buffer zone (Buffer from disk Pool in), the buffer zone is used to data cached and is indexed to memory, can be used to accelerate the read-write of data.In data page After buffer zone is read from disk, if carrying out the modification of data in buffer zone, the data page in buffer zone is just Inconsistent with the data page content on disk, the data page of buffer zone is known as containing dirty pages (dirty page) at this time.If this When improper database service occur restart, then these data are not synchronized in disk file, that is, can send out Raw loss of data.If this when, there can be a file, after the dirty page change in buffer zone, Corresponding modification record is recorded in redo journal file, then after database service is collapsed, restore database when It waits, disk file can be re-applied to, data are consistent according to the record content of redo journal file.
Further, in the distributed transaction processing method of the present embodiment, further includes:
Detect whether that receiving the affairs that at least one described whole execution equipment executed in equipment are sent submits confirmation Message;
If so, confirmation global transaction is completed;Based on the identifier of the global transaction, at least one described execution is set Standby corresponding database is cleared up;Wherein, global transaction sheet as performed by the execution equipment of coordination equipment management Ground affairs composition;
Here, it should be noted that submit instruction according to the affairs that equipment is sent are coordinated when executing equipment, execute local appoint The submission of business returns to confirmation (ACK) response to equipment is coordinated if the coordination equipment successfully performs submission operation, The confirmation response correctly submits affairs for characterizing the execution equipment.
So, when coordination equipment, which receives the affairs that all execution equipment are sent, submits confirmation message, overall situation thing is indicated Business is completed.At this moment, the identifier based on the global transaction carries out database corresponding at least one described execution equipment Cleaning discharges total data base resource.
Here, unification is all assigned with to each subtransaction that entire affairs are related to due to when affairs are distributed, coordinating equipment Identifier needs to discharge this occupied database resource of global transaction treatment process after affairs submission, with Just this accessible database of other affairs.
As an example, when user A buys a commodity, the payment data library of user A, commodity information database are equal It can update, when carrying out submitting operation, need to lock the database of operation, " user A buys a quotient to prevent Other affairs except this affairs of product " operate above-mentioned commodity information database, whole " user A buys a commodity " After the completion of a task is submitted, to the resource in Relational database such as payment data library, commodity information database that the affairs are related to It is discharged, so as to this accessible payment data of other affairs (such as: " user B buy a commodity " this affairs) Library, commodity information database.
In an alternative embodiment of the invention, after above-mentioned steps S103, the method may include:
Judge whether there is the execution equipment that local matter executes failure, and if it exists, hold to the relevant whole of global transaction Row equipment sends rollback instruction;Wherein, global transaction local matter as performed by the execution equipment of coordination equipment management Composition;
Here, when coordination equipment does not receive the submission request that a certain execution equipment is sent within a preset time, then it is assumed that The a certain execution equipment local matter executes failure.When there are the execution equipment that local matter executes failure, the coordination Equipment can send rollback instruction to the relevant equipment that all executes of global transaction;I.e. one execution equipment local task execution is lost It loses, then whole execution equipment all carries out the rolling back action of data.
In another alternative embodiment of the invention, after above-mentioned steps S103, the method can also include:
Judge whether there is the second execution equipment that local matter executes failure, and if it exists, then execute and set to described second Preparation sends rolling instruction back to.
Here, when only second, which executes equipment, executes local matter execution failure, coordinate equipment and only held to described second Row equipment sends rollback instruction;
It cannot mistake to the number that the second execution equipment sends rollback instruction it should be noted that coordinating equipment herein It is more, when be performed a plurality of times rolling back action it is also failed when, the coordination equipment to global transaction it is relevant all execute equipment send Rollback instruction.Here, since the limitation of many affairs having time in operation will affect global thing when rollback number is excessive The efficiency that business is submitted, the number that transmission rollback instruction can be set is no more than 3 times or the limit of other modes progress number It is fixed.
For the content of clearer expression the present embodiment, it is illustrated here in conjunction with concrete application situation, with following industry For business demand:
Transferred account service, account A transfers accounts 1000 yuan to account B, and during transferring accounts, account A, B all submits 10 to account C The service charge of member.So this time distributed transaction can be divided into 6 branch's affairs, it may be assumed that " A-1000 ", " B+1000 ", " A- 10","B-10","C+10","C+10";Before carrying out the present embodiment distributing real time system, operation system can be by division 6 branch's affairs, which are sent to, coordinates equipment TM, coordinates equipment TM according to the object and money of 6 branch's issued transactions Source determines processing mode and dependence to resource, is set by 6 execution that XA interface registers this distributed transaction needs Standby RM, notifies the RM to open the operation of each database.
When this 6, which execute some in equipment RM, is in the state for being able to carry out local matter, for example, executing " A-10 " behaviour The execution equipment RM of work is in the state for being able to carry out affairs, at this point, the first step of the present embodiment distributing real time system is: institute The affairs participation request for coordinating the execution equipment RM that equipment TM can receive " A-10 " operation is stated, operates and completes at its " A-10 " Afterwards, the affairs submission request that the execution equipment of " A-10 " operation is sent can be received by coordinating equipment TM;At this moment, coordinate equipment TM meeting It is requested based on the submission, the execution equipment operated to " A-10 " sends affairs and submits instruction.
Here, the determination can be the existing elder generation found out between affairs to the processing mode and dependence of resource Afterwards can be with parallel processing between sequence or affairs the case where.Such as when " A-1000 " and " A-10 " can be with parallel processings.
Distributed transaction processing method provided in an embodiment of the present invention, the affairs that execution equipment is received by coordinating equipment are joined It submits and requests with request, affairs, judge the successful execution for executing equipment local task, and then send affairs to equipment is executed Submit instruction.Due to without waiting for the order for coordinating equipment, greatly improving the efficiency of execution, simultaneously after task is distributed Rollback permission can be modified due to coordinating equipment, takes the initiative the mode of rollback to the execution equipment for executing mistake, guarantees to get over The atomicity of business.
The embodiment of the present invention provides another distributed transaction processing method, is applied to first and executes equipment, such as Fig. 5 institute Show, which comprises
S201 sends affairs participation request to equipment is coordinated;Wherein, the affairs participate in request for setting to the coordination It is standby to indicate that the first execution equipment is in the state for being able to carry out local matter;The coordination equipment is for managing at least one Equipment is executed, includes the first execution equipment at least one described execution equipment;
S202 executes local matter, sends affairs to the coordination equipment when completing the processing of the local matter and mentions Hand over request;Wherein, it is first execution before receiving affairs and participating in request that the local matter, which is the coordination equipment, The affairs of equipment distribution;Wherein, the affairs submit request that the local thing is completed for characterizing the first execution equipment Business;
S203 submits the local matter when receiving the affairs submission instruction that the coordination equipment is sent.
In step s 201, when business is come temporarily, delineation of activities is more according to the concrete condition of business by operation system AP A branch's affairs, and multiple branch's affairs of division are sent to and coordinate equipment TM, coordinate equipment TM according to each branch's affairs feelings Condition is registered by XA interface and executes equipment RM, that is, registers the execution equipment RM of this business needs.Here, when what is be registered holds It is described in the execution for being able to carry out local matter state when some is in the state for being able to carry out local matter in row equipment RM Equipment RM actively sends affairs to coordination equipment TM and participates in request.
Here, the coordination equipment TM is to execute task for all RM for participating in affairs of United Dispatching in distributed system Equipment, the execution equipment RM is the equipment that local matter is executed in distributed system, there is multiple execution equipment RM, it is above-mentioned extremely Equipment is executed comprising first in few execution equipment;
In step S202, after the first execution equipment sends affairs participation request to coordination equipment TM, start execution certainly Branch's affairs that oneself is assigned, i.e. local matter initiate affairs submission request to equipment TM is coordinated after the completion of local matter; Here, the affairs submit request that the local matter is completed for characterizing the first execution equipment;
Here, when the first execution equipment executes local matter, the method also includes:
Store local log information.
The local log information includes the undo log and redo log of local matter;The undo log is for storing Value before data modification;The redo log, for the data after record modification, journal.
It should be noted that first execute equipment execute local matter when, i.e., operating database when, first It will record down the local redo log of this affairs, i.e. data after record modification, then just start real operating database;? Disk can be written in journal file first before operation.So when unexpected power-off, even if operation is not completed, again When log-on data library, database can thus be protected according to rolling before carrying out undo rollback either redo the case where current data The strong consistency of data is demonstrate,proved.
In step S203, when receiving the affairs submission instruction that the coordination equipment is sent, the local thing is submitted Business.
After submitting the local matter, the method also includes:
Confirmation message is sent to equipment is coordinated, the confirmation message is for notifying the local matter to have been filed on.
Here, instruction is submitted according to the affairs that equipment is sent are coordinated when the first execution equipment, successfully performs local thing After the submission of business, confirmation (ACK) response can be returned to equipment is coordinated, the confirmation response executes equipment for characterizing described first Correctly submit affairs.
After the submission local matter, the method also includes:
Release participates in the connection resource of the database of the local matter.
Here, due to being locked to database resource when operating to database, other affairs cannot be accessed Database resource, then needing to release the occupied database resource of this local matter after the submission of local task It puts, so as to this accessible database of other affairs.
As a kind of optional embodiment, the distributed transaction processing method is after submitting local matter, the side Method further include:
It receives and coordinates the data rewind instruction that equipment is sent, execute data rewind.
Here, particularly directed to there is a situation where that local matter is not carried out successfully, the coordination equipment can send data and return Rolling instruction, data rewind instructs based on the received, executes data rewind.
For the content of clearer expression the present embodiment, it is illustrated here in conjunction with concrete application situation, with following industry For business demand:
Transferred account service, account A transfers accounts 1000 yuan to account B, and during transferring accounts, account A, B all submits 10 to account C The service charge of member.So this time distributed transaction can be divided into 6 branch's affairs, it may be assumed that " A-1000 ", " B+1000 ", " A- 10","B-10","C+10","C+10";Before carrying out the present embodiment distributing real time system, operation system can be by division 6 branch's affairs, which are sent to, coordinates equipment TM, coordinates equipment TM according to the object and money of 6 branch's issued transactions Source determines processing mode and dependence to resource, is set by 6 execution that XA interface registers this distributed transaction needs Standby RM, notifies the RM to open the operation of each database.
When this 6, which execute some in equipment RM, is in the state for being able to carry out local matter, for example, executing " A-10 " behaviour The execution equipment RM of work is in the state for being able to carry out affairs, at this point, the first step of the present embodiment distributing real time system is: holding The execution equipment RM of row " A-10 " operation voluntarily sends affairs to coordination equipment TM and participates in request, and voluntarily executes local task, Execute " A-10 " operation;After completion " A-10 " operation, the submission request that " A-10 " is operated is sent to the coordination equipment TM; When last basis receives the affairs submission instruction that coordination equipment is sent, the local matter " A-10 " is submitted to operate.
Distributed transaction processing method provided in an embodiment of the present invention, by each execution equipment respectively parallel to coordination equipment It submits and participates in request, and the respective autonomous mode for executing local task, the affairs participant confirmation all without synchronous waiting is The no receipt that can participate in affairs, the obstructing problem in very good solution distributed transaction.After the completion of respective local task, Initiation task submits request, and according to submitting instruction to submit the local matter, is able to achieve discharging rapidly for database resource.
Fig. 6 is to realize distributed transaction processing method between coordination equipment provided in an embodiment of the present invention and execution equipment Interaction schematic diagram, in Fig. 6, the transaction coordination person TM, which refers to, coordinates equipment TM, it is to adjust in distributed system for unified All equipment for executing equipment are spent, the affairs participant, which refers to, executes equipment RM, in a distributed transaction, only one Coordinate equipment TM, but there are multiple affairs participants, i.e., multiple execution equipment RM.The distributed transaction processing method includes:
S301, first, which executes equipment, sends affairs participation request to equipment is coordinated;Wherein, the affairs participate in requesting to be used for Indicate the first execution equipment in the state for being able to carry out local matter to the coordination equipment;The coordination equipment is used for It manages at least one and executes equipment, include the first execution equipment at least one described execution equipment;
S302, the affairs participation for coordinating the first execution equipment at least one described execution equipment of equipment reception are asked It asks;Wherein, the affairs participate in request and are able to carry out this for being in coordination equipment instruction the first execution equipment The state of ground affairs;
S303, described first, which executes equipment, executes local matter, when completing the processing of the local matter to the association It adjusts equipment to send affairs and submits request;Wherein, the local matter is that the coordination equipment is receiving affairs participation request The preceding affairs that equipment distribution is executed for described first;Wherein, the affairs submit request to execute equipment for characterizing described first The local matter is completed;
S304, the equipment of coordinating receive the affairs submission request that the first execution equipment is sent;Wherein, the affairs Submit request that the local matter is completed for characterizing the first execution equipment;
S305, the affairs for executing equipment based on described first submit request, and the coordination equipment is executed to described first and set Preparation send affairs to submit instruction.
S306 submits institute when the first execution equipment, which receives the affairs that the coordination equipment is sent, submits instruction State local matter.
Here, in step S303, when the first execution equipment executes local matter, local log information can be stored.
Before step S305, the equipment of coordinating is determining that receiving the affairs submission that the first execution equipment is sent asks After asking, log relevant to local matter performed by the first execution equipment and lock information are stored in database table. The local log information includes the undo log and redo log of local matter;The undo log is for storing data modification Preceding value;The redo log, for the data after record modification, journal.Here, the relevant log of storage local matter It is in order in emergency situations, database can be according to undo rollback either redo be carried out the case where current data before with lock information Rolling, it is ensured that the strong consistency of data.
After step S306, the method also includes: the coordination equipment judges whether there is local matter and executes mistake The execution equipment lost, and if it exists, send rollback instruction to the relevant equipment that all executes of global transaction;
It here, further include another implementation method, i.e., the described coordination equipment judges whether there is local matter and executes failure Second execute equipment, and if it exists, then to it is described second execute equipment send rollback instruction.
After described first executes the equipment submission local matter, described first, which executes equipment, to send to equipment is coordinated Confirmation message, the confirmation message is for notifying the local matter to have been filed on;The coordination equipment detects whether to receive institute It states at least one and executes whole affairs submission confirmation messages for executing equipment and sending in equipment;If so, confirmation global transaction It completes;Based on the identifier of the global transaction, the coordination equipment is to data corresponding at least one described execution equipment Library is cleared up;The first execution equipment can discharge the connection resource for participating in the database of the local matter.Wherein, described Local matter performed by execution equipment of the global transaction by coordination equipment management forms;
For the content of clearer expression the present embodiment, it is illustrated here in conjunction with concrete application situation, with following industry For business demand:
Transferred account service, account A transfers accounts 1000 yuan to account B, and during transferring accounts, account A, B all submits 10 to account C The service charge of member.So this time distributed transaction can be divided into 6 branch's affairs, it may be assumed that " A-1000 ", " B+1000 ", " A- 10","B-10","C+10","C+10";Before carrying out the present embodiment distributing real time system, operation system can be by division 6 branch's affairs, which are sent to, coordinates equipment TM, coordinates equipment TM according to the object and money of 6 branch's issued transactions Source determines processing mode and dependence to resource, is set by 6 execution that XA interface registers this distributed transaction needs Standby RM, notifies the RM to open the operation of each database.
When this 6, which execute some in equipment RM, is in the state for being able to carry out local matter, for example, executing " A-10 " behaviour The execution equipment RM of work is in the state for being able to carry out affairs, at this point, the first step of the present embodiment distributing real time system is: holding The execution equipment RM of row " A-10 " operation voluntarily sends affairs to coordination equipment TM and participates in request, and voluntarily executes local task; The affairs that the coordination equipment TM can receive the execution equipment RM of " A-10 " operation participate in request, complete executing equipment RM After " A-10 " operation, the affairs that the execution equipment that the coordination equipment TM can receive " A-10 " operation is sent submit request, into And requested based on the submission, coordinating the execution equipment RM that equipment TM is operated to " A-10 " sends affairs submission instruction, and execution is set Standby RM according to receive coordinate the affairs that equipment TM is sent and submit instruction when, submit the local matter " A-10 " operation.
Distributed transaction processing method provided in an embodiment of the present invention, by each execution equipment respectively parallel to coordination equipment It submits and participates in request, and the respective autonomous mode for executing local task, the affairs participant confirmation all without synchronous waiting is The no receipt that can participate in affairs, the obstructing problem in very good solution distributed transaction.It has been executed in each execution equipment After ground affairs, is finally managed by coordination equipment TM is unified, execute submission or rollback;Rollback power can be modified due to coordinating equipment Limit takes the initiative the mode of rollback to the execution equipment for executing mistake, ensure that the atomicity of affairs.Also, due to the present invention The distributed transaction processing method that embodiment provides is based on XA model, can put a variety of moneys such as support database just, message queue Source manager RM.In data consistency, since distributed transaction processing method provided in an embodiment of the present invention is in global transaction In submission in two steps, in such a way that local matter is submitted and global transaction identifier is cleared up, it can achieve distributed transaction Maximum performance.
Based on the identical technical concept of previous embodiment, the embodiment of the present invention provides a kind of distributing real time system device 400, as shown in fig. 7, described device includes: the first receiving module 401, the second receiving module 402 and the first sending module 403, Wherein,
First receiving module 401, for receiving at least one described execution equipment first thing for executing equipment Business participates in request;Wherein, the affairs participate in request for being in energy to coordination equipment instruction the first execution equipment Enough execute the state of local matter;
Second receiving module 402 submits request for receiving the affairs that the first execution equipment is sent;Wherein, The affairs submit request that the local matter is completed for characterizing the first execution equipment;
First sending module 403, the affairs for executing equipment based on described first submit request, Xiang Suoshu first It executes equipment and sends affairs submission instruction.
Wherein, first sending module 403 is also used to determining that receiving the affairs that the first execution equipment is sent mentions After handing over request, log relevant to local matter performed by the first execution equipment and lock information are stored in database table In.
Further, described device 400 further include: detection module, the detection module, for detecting whether receiving institute It states at least one and executes whole affairs submission confirmation messages for executing equipment and sending in equipment;If so, confirmation global transaction It completes;Based on the identifier of the global transaction, database corresponding at least one described execution equipment is cleared up;Its In, local matter performed by execution equipment of the global transaction by coordination equipment management forms.
Described device 400 further include: first judgment module: the first judgment module, for judging whether there is local Affairs execute the execution equipment of failure, and if it exists, send rollback instruction to the relevant equipment that all executes of global transaction;
Described device 400 further include: the second judgment module: second judgment module, for judging whether there is local Affairs execute the second execution equipment of failure, and if it exists, then execute equipment to described second and send rollback instruction.
It should be noted that the principle and aforementioned applications that are solved the problems, such as due to the distributing real time system device 400 in The distributed transaction processing method for coordinating equipment is similar, therefore, the specific implementation process of the distributing real time system equipment 400 And implementation principle may refer to the description of preceding method and implementation process and implementation principle, overlaps will not be repeated.
Distributing real time system device provided in an embodiment of the present invention, requested by the affairs participation that reception executes equipment, Affairs submit request, judge the successful execution for executing equipment local task, and then refer to equipment transmission affairs submission is executed It enables.Due to without waiting for the order for coordinating equipment, greatly improving the efficiency of execution after task is distributed, simultaneously because association It adjusts equipment that can modify rollback permission, takes the initiative the mode of rollback to the execution equipment for executing mistake, ensure that the original of affairs Sub- property.
Based on the identical technical concept of previous embodiment, the embodiment of the present invention provides another distributing real time system device 500, as shown in figure 8, described device includes: request module 501, execution module 502 and submission module 503, wherein
The request module 501 participates in request for sending affairs to coordination equipment;Wherein, the affairs participate in request For indicating the first execution equipment in the state for being able to carry out local matter to the coordination equipment;The coordination equipment Equipment is executed for managing at least one, includes the first execution equipment at least one described execution equipment;
The execution module 502, for executing local matter, when completing the processing of the local matter to the coordination Equipment sends affairs and submits request;Wherein, the local matter is the coordination equipment before receiving affairs and participating in request The affairs for executing equipment distribution for described first;Wherein, the affairs submit request to execute equipment for characterizing described first Complete the local matter;
The submission module 503, for when receiving the affairs sent of coordination equipment and submitting instruction, described in submission Local matter.
Wherein, the execution module 502, is also used to store local log information.
Described device 500 further include: the second sending module, second sending module, for true to equipment transmission is coordinated Recognize message, the confirmation message is for notifying the local matter to have been filed on.
Described device 500 further include: release module, the release module, for discharging the number for participating in the local matter According to the connection resource in library.
Described device 500 further include: third receiving module, the third receiving module are sent for receiving coordination equipment Data rewind instruction, execute data rewind.
It should be noted that the principle and aforementioned applications that are solved the problems, such as due to the distributing real time system device 500 in The distributed transaction processing method of first execution equipment is similar, therefore, the specific implementation of the distributing real time system equipment 500 Process and implementation principle may refer to the description of preceding method and implementation process and implementation principle, and it is no longer superfluous to repeat place It states.
Distributing real time system device provided in an embodiment of the present invention, by each execution equipment respectively parallel to coordination equipment It submits and participates in request, and the respective autonomous mode for executing local task, the affairs participant confirmation all without synchronous waiting is The no receipt that can participate in affairs, the obstructing problem in very good solution distributed transaction.After the completion of respective local task, Initiation task submits request, and according to submitting instruction to submit the local matter, is able to achieve discharging rapidly for database resource.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, the meter The step of above method embodiment is realized when calculation machine program processor is executed by processor, and storage medium above-mentioned includes: to move Dynamic storage equipment, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), the various media that can store program code such as magnetic or disk.
The embodiment of the present invention also provides a kind of distributing real time system device, comprising: processor and can be for storing The memory of the computer program run on processor, wherein the processor is for executing when running the computer program The step of above method embodiment stored in memory.
Fig. 9 is a kind of hardware structural diagram of distributing real time system device of the embodiment of the present invention, the distributed transaction Processing unit 600 includes: at least one processor 601, memory 602, the various components in distributing real time system device 600 It is coupled by bus system 603, it is appreciated that bus system 603 is for realizing the connection communication between these components.Always Linear system system 603 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But in order to clear For the sake of Chu's explanation, various buses are all designated as bus system 603 in Fig. 9.
It is appreciated that memory 602 can be volatile memory or nonvolatile memory, may also comprise volatibility and Both nonvolatile memories.Wherein, nonvolatile memory can be read-only memory (ROM, Read Only Memory), Programmable read only memory (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM (EPROM, Erasable Programmable Read-Only Memory), electrically erasable programmable read-only memory The storage of (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access Device (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface are deposited Reservoir, CD or CD-ROM (CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be Magnetic disk storage or magnetic tape storage.Volatile memory can be random access memory (RAM, Random Access Memory), it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as Static random access memory (SRAM, Static Random Access Memory), synchronous static random access memory (SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links Dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus Random access memory (DRRAM, Direct Rambus Random Access Memory).Description of the embodiment of the present invention is deposited Reservoir 602 is intended to include but is not limited to the memory of these and any other suitable type.
Memory 602 in the embodiment of the present invention is for storing various types of data to support distributing real time system to fill Set 600 operation.The example of these data includes: any computer for operating on distributing real time system device 600 Program, such as local log information, the data rewind instruction of storage, realize that the program of present invention method may be embodied in In memory 602.
The method that the embodiments of the present invention disclose can be applied in processor 601, or be realized by processor 601. Processor may be a kind of IC chip, the processing capacity with signal.During realization, each step of the above method It can be completed by the integrated logic circuit of the hardware in processor or the instruction of software form.Above-mentioned processor can be General processor, digital signal processor (DSP, Digital Signal Processor) or other programmable logic devices Part, discrete gate or transistor logic, discrete hardware components etc..Processor may be implemented or execute the embodiment of the present invention In disclosed each method, step and logic diagram.General processor can be microprocessor or any conventional processor Deng.The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processor and execute completion, or Hardware and software module combination in person's decoding processor execute completion.Software module can be located in storage medium, this is deposited The step of storage media is located at memory, and processor reads the information in memory, completes preceding method in conjunction with its hardware.
In the exemplary embodiment, distributing real time system device 600 can be by the dedicated integrated electricity of one or more application Road (ASIC, Application Specific Integrated Circuit), DSP, programmable logic device (PLD, Programmable Logic Device), Complex Programmable Logic Devices (CPLD, Complex Programmable Logic Device), field programmable gate array (FPGA, Field-Programmable Gate Array), general processor, control Device, microcontroller (MCU, Micro Controller Unit), microprocessor (Microprocessor) or other electronics member Part is realized, for executing the above method.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can combine, or It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit Or communication connection, it can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit The component shown can be or may not be physical unit, it can and it is in one place, it may be distributed over multiple network lists In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated in one processing unit, it can also To be each unit individually as a unit, can also be integrated in one unit with two or more units;It is above-mentioned Integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned include: movable storage device, it is read-only Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or The various media that can store program code such as person's CD.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independent product When selling or using, it also can store in a computer readable storage medium.Based on this understanding, the present invention is implemented Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words, The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be with It is personal computer, server or network equipment etc.) execute all or part of each embodiment the method for the present invention. And storage medium above-mentioned includes: that movable storage device, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of distributed transaction processing method is applied to coordinate equipment, the coordination equipment is for managing at least one execution Equipment, which is characterized in that the described method includes:
It receives at least one described first affairs for executing equipment executed in equipment and participates in request;Wherein, the affairs participate in It requests for indicating the first execution equipment in the state for being able to carry out local matter to the coordination equipment;
It receives the affairs that the first execution equipment is sent and submits request;Wherein, the affairs submit request described for characterizing The local matter is completed in first execution equipment;
The affairs for executing equipment based on described first submit request, and Xiang Suoshu first executes equipment transmission affairs and submits instruction.
2. the method according to claim 1, wherein described refer to the first execution equipment transmission affairs submission Before order, the method also includes:
After determining that receiving the affairs that described first executes equipment transmission submits request, described first is executed performed by equipment Log relevant to local matter and lock information are stored in database table.
3. the method according to claim 1, wherein the method also includes:
Detect whether that receiving the affairs that at least one described whole execution equipment executed in equipment are sent submits confirmation messages;
If so, confirmation global transaction is completed;Based on the identifier of the global transaction, at least one described execution equipment institute Corresponding database is cleared up;Wherein, the global transaction local thing as performed by the execution equipment of coordination equipment management Business composition.
4. a kind of distributed transaction processing method is applied to first and executes equipment, which is characterized in that the described method includes:
Affairs participation request is sent to equipment is coordinated;Wherein, the affairs participate in request for indicating institute to the coordination equipment It states the first execution equipment and is in the state for being able to carry out local matter;The coordination equipment is set for managing at least one execution It is standby, equipment is executed comprising first at least one described execution equipment;
Local matter is executed, affairs is sent to the coordination equipment when completing the processing of the local matter and submits request;Its In, the local matter is that the coordination equipment is that the first execution equipment is distributed before receiving affairs and participating in request Affairs;Wherein, the affairs submit request that the local matter is completed for characterizing the first execution equipment;
When receiving the affairs submission instruction that the coordination equipment is sent, the local matter is submitted.
5. according to the method described in claim 4, it is characterized in that, the method is also after the submission local matter Include:
Confirmation message is sent to equipment is coordinated, the confirmation message is for notifying the local matter to have been filed on.
6. according to the method described in claim 4, it is characterized in that, the method is also after the submission local matter Include:
Release participates in the connection resource of the database of the local matter.
7. a kind of distributing real time system device, described device includes: the first receiving module, the second receiving module and the first transmission Module, wherein
First receiving module is asked for receiving at least one described affairs participation for executing the first execution equipment in equipment It asks;Wherein, the affairs participate in request and are able to carry out this for being in coordination equipment instruction the first execution equipment The state of ground affairs;
Second receiving module submits request for receiving the affairs that the first execution equipment is sent;Wherein, the affairs Submit request that the local matter is completed for characterizing the first execution equipment;
First sending module, the affairs for executing equipment based on described first submit request, and the execution of Xiang Suoshu first is set Preparation send affairs to submit instruction.
8. a kind of distributing real time system device, described device includes: request module, execution module and submission module, wherein
The request module participates in request for sending affairs to coordination equipment;Wherein, the affairs participate in request for institute It states coordination equipment and indicates that the first execution equipment is in the state for being able to carry out local matter;The coordination equipment is for managing At least one executes equipment, includes the first execution equipment at least one described execution equipment;
The execution module is sent out when completing the processing of the local matter to the coordination equipment for executing local matter Affairs are sent to submit request;Wherein, it is described before receiving affairs and participating in request that the local matter, which is the coordination equipment, First executes the affairs of equipment distribution;Wherein, the affairs submit request that institute is completed for characterizing the first execution equipment State local matter;
The submission module, for submitting the local thing when receiving the affairs submission instruction that the coordination equipment is sent Business.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The step of any one of claim 1 to 6 the method is realized when processor executes.
10. a kind of distributing real time system device characterized by comprising processor and for store can be on a processor The memory of the computer program of operation, wherein the processor is for when running the computer program, perform claim to be required The step of any one of 1 to 6 the method.
CN201811652896.6A 2018-12-28 2018-12-28 A kind of distributed transaction processing method, device and storage medium Pending CN109783204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811652896.6A CN109783204A (en) 2018-12-28 2018-12-28 A kind of distributed transaction processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811652896.6A CN109783204A (en) 2018-12-28 2018-12-28 A kind of distributed transaction processing method, device and storage medium

Publications (1)

Publication Number Publication Date
CN109783204A true CN109783204A (en) 2019-05-21

Family

ID=66499745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811652896.6A Pending CN109783204A (en) 2018-12-28 2018-12-28 A kind of distributed transaction processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN109783204A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522631A (en) * 2020-03-23 2020-08-11 支付宝(杭州)信息技术有限公司 Distributed transaction processing method, device, server and medium
CN111611058A (en) * 2020-05-21 2020-09-01 北京明略软件系统有限公司 Task execution method and device and electronic equipment
CN111639089A (en) * 2020-05-29 2020-09-08 北京奇艺世纪科技有限公司 Transaction processing method and device, electronic equipment and computer readable storage medium
CN112148394A (en) * 2020-09-08 2020-12-29 上加下信息技术成都有限公司 Distributed transaction coordination method and device and electronic equipment
CN112181377A (en) * 2020-10-12 2021-01-05 汇智点亮科技(北京)有限公司 Transaction manager collaboration framework for service invocation, design method and cloud platform
CN112445860A (en) * 2019-09-02 2021-03-05 北京京东振世信息技术有限公司 Method and device for processing distributed transaction
CN112650561A (en) * 2019-10-11 2021-04-13 中兴通讯股份有限公司 Transaction management method, system, network device and readable storage medium
CN112995262A (en) * 2019-12-18 2021-06-18 中国移动通信集团浙江有限公司 Distributed transaction submission method, system and computing equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798031A (en) * 2004-12-27 2006-07-05 北京航空航天大学 Transaction processing system and transaction method for Web service
US20070143299A1 (en) * 2005-12-19 2007-06-21 Huras Matthew A Commitment of transactions in a distributed system
CN103399894A (en) * 2013-07-23 2013-11-20 中国科学院信息工程研究所 Distributed transaction processing method on basis of shared storage pool
CN103677968A (en) * 2012-09-07 2014-03-26 腾讯科技(深圳)有限公司 Transaction processing method, transaction coordinator device and transaction participant device and system
CN104580428A (en) * 2014-12-27 2015-04-29 北京奇虎科技有限公司 Data routing method, data management device and distributed storage system
US20150309834A1 (en) * 2014-04-28 2015-10-29 Oracle International Corporation System and method for supporting common transaction identifier (xid) optimization based on resource manager (rm) instance awareness in a transactional environment
WO2016024986A1 (en) * 2014-08-15 2016-02-18 Hewlett-Packard Development Company, L.P. Three phase commit for a distributed file system
CN106547610A (en) * 2016-10-11 2017-03-29 北京国电通网络技术有限公司 The method and system that a kind of distributed transaction is submitted to
CN107045453A (en) * 2016-02-05 2017-08-15 慧与发展有限责任合伙企业 Two-phase commitment protocol for distributed transaction is mixed

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798031A (en) * 2004-12-27 2006-07-05 北京航空航天大学 Transaction processing system and transaction method for Web service
US20070143299A1 (en) * 2005-12-19 2007-06-21 Huras Matthew A Commitment of transactions in a distributed system
CN103677968A (en) * 2012-09-07 2014-03-26 腾讯科技(深圳)有限公司 Transaction processing method, transaction coordinator device and transaction participant device and system
CN103399894A (en) * 2013-07-23 2013-11-20 中国科学院信息工程研究所 Distributed transaction processing method on basis of shared storage pool
US20150309834A1 (en) * 2014-04-28 2015-10-29 Oracle International Corporation System and method for supporting common transaction identifier (xid) optimization based on resource manager (rm) instance awareness in a transactional environment
WO2016024986A1 (en) * 2014-08-15 2016-02-18 Hewlett-Packard Development Company, L.P. Three phase commit for a distributed file system
CN104580428A (en) * 2014-12-27 2015-04-29 北京奇虎科技有限公司 Data routing method, data management device and distributed storage system
CN107045453A (en) * 2016-02-05 2017-08-15 慧与发展有限责任合伙企业 Two-phase commitment protocol for distributed transaction is mixed
CN106547610A (en) * 2016-10-11 2017-03-29 北京国电通网络技术有限公司 The method and system that a kind of distributed transaction is submitted to

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445860B (en) * 2019-09-02 2023-11-03 北京京东振世信息技术有限公司 Method and device for processing distributed transaction
CN112445860A (en) * 2019-09-02 2021-03-05 北京京东振世信息技术有限公司 Method and device for processing distributed transaction
CN112650561A (en) * 2019-10-11 2021-04-13 中兴通讯股份有限公司 Transaction management method, system, network device and readable storage medium
CN112995262A (en) * 2019-12-18 2021-06-18 中国移动通信集团浙江有限公司 Distributed transaction submission method, system and computing equipment
CN112995262B (en) * 2019-12-18 2022-06-10 中国移动通信集团浙江有限公司 Distributed transaction submission method, system and computing equipment
CN111522631A (en) * 2020-03-23 2020-08-11 支付宝(杭州)信息技术有限公司 Distributed transaction processing method, device, server and medium
CN111522631B (en) * 2020-03-23 2024-02-06 支付宝(杭州)信息技术有限公司 Distributed transaction processing method, device, server and medium
CN111611058A (en) * 2020-05-21 2020-09-01 北京明略软件系统有限公司 Task execution method and device and electronic equipment
CN111639089A (en) * 2020-05-29 2020-09-08 北京奇艺世纪科技有限公司 Transaction processing method and device, electronic equipment and computer readable storage medium
CN111639089B (en) * 2020-05-29 2024-03-08 北京奇艺世纪科技有限公司 Transaction processing method, transaction processing device, electronic equipment and computer readable storage medium
CN112148394A (en) * 2020-09-08 2020-12-29 上加下信息技术成都有限公司 Distributed transaction coordination method and device and electronic equipment
CN112181377B (en) * 2020-10-12 2023-10-17 汇智点亮科技(北京)有限公司 Business manager collaborative framework for service call, design method and cloud platform
CN112181377A (en) * 2020-10-12 2021-01-05 汇智点亮科技(北京)有限公司 Transaction manager collaboration framework for service invocation, design method and cloud platform

Similar Documents

Publication Publication Date Title
CN109783204A (en) A kind of distributed transaction processing method, device and storage medium
JP6921107B2 (en) Service processing methods, devices, and systems
WO2018103318A1 (en) Distributed transaction handling method and system
US7814065B2 (en) Affinity-based recovery/failover in a cluster environment
US7293192B2 (en) System and method for failover
US7900085B2 (en) Backup coordinator for distributed transactions
US8464101B1 (en) CAS command network replication
CN102037463B (en) Log based replication of distributed transactions using globally acknowledged commits
CN104094228B (en) For the system and method for the transaction recovery for supporting to submit the strict sequencing called based on the two-stage
US20130110781A1 (en) Server replication and transaction commitment
WO2017219857A1 (en) Data processing method and device
US10366106B2 (en) Quorum-based replication of data records
EP1386234A2 (en) Resource action in clustered computer system incorporating prepare operation
US20100169289A1 (en) Two Phase Commit With Grid Elements
CN101777154A (en) Persistence method of workflow data in workflow management system
JP2023541298A (en) Transaction processing methods, systems, devices, equipment, and programs
US11522966B2 (en) Methods, devices and systems for non-disruptive upgrades to a replicated state machine in a distributed computing environment
WO2021052237A1 (en) Transaction processing method and apparatus, device, storage medium and database
WO2023103340A1 (en) Block data committing method and apparatus
CN110659303A (en) Read-write control method and device for database nodes
CN114816682A (en) Distributed transaction processing method, system and device
CN112488833A (en) Transaction processing method and device, electronic equipment and readable storage medium
CN117453750B (en) Data processing method, device, electronic equipment and storage medium
CN109857523A (en) A kind of method and device for realizing database high availability
US20240134560A1 (en) Managing abort tasks in metro storage cluster

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190521

RJ01 Rejection of invention patent application after publication