CN105989133A - Transaction processing method and device - Google Patents

Transaction processing method and device Download PDF

Info

Publication number
CN105989133A
CN105989133A CN201510087926.3A CN201510087926A CN105989133A CN 105989133 A CN105989133 A CN 105989133A CN 201510087926 A CN201510087926 A CN 201510087926A CN 105989133 A CN105989133 A CN 105989133A
Authority
CN
China
Prior art keywords
request
transaction
transaction information
affairs
conditioned
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.)
Granted
Application number
CN201510087926.3A
Other languages
Chinese (zh)
Other versions
CN105989133B (en
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510087926.3A priority Critical patent/CN105989133B/en
Publication of CN105989133A publication Critical patent/CN105989133A/en
Application granted granted Critical
Publication of CN105989133B publication Critical patent/CN105989133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a transaction processing method, which comprises the steps as follows: a first request of a to-be-processed transaction is obtained; the first request is a preprocessing request; whether a second request of the to-be-processed transaction meets the preset conditions or not is judged; the second request is a roll-back request; if so, the first request is finished; and if not, the first request is executed. The invention further discloses a transaction processing device employing the transaction processing method. Compared with the prior art, the transaction processing method and device disclosed by the invention have the advantages that whether just obtained first request is finished or not is determined according to the condition whether the second request meets the preset conditions or not; the condition that the preprocessing request is not executed after the roll-back request is executed and the roll-back request is executed after the preprocessing request is executed is achieved no matter that the first request is the preprocessing request or the roll-back request; the damage to the transaction consistency since the preprocessing request is finished after the roll-back request is avoided; and the correctness of data about the transaction in a database is ensured.

Description

Transaction methods and device
Technical field
The application relates to field of computer technology, particularly relates to a kind of transaction methods and device.
Background technology
Affairs are widely used concepts in field of computer technology, are to recover and con current control basic Unit, is made up of the multiple tasks handled by computer, along with the fast development of computing power, office Reason demand also gets more and more;Affairs have concordance, if certain task point in coherence request affairs Reason is abnormal, and in data base, all data about these affairs are both needed to the state before being back to issued transaction, to protect In card data base, data keep consistent with the treatment progress of affairs.
In prior art, by using two-phase commitment protocol to carry out the process of affairs, this agreement is specifically wrapped Include: 1) pretreatment stage, affairs coordinator sends pretreatment asks to the participant related in issued transaction, Notify that they prepare to submit data to;2) rollback phase, if affairs coordinator does not receives a certain participation always The response of person or have arbitrary participant to make negative response, i.e. represents that this participant prepares failure, then by one Rollback request is sent to all participants so that in data base, all data about these affairs are recovered to affairs State before processing.
But, in the prior art, if having participant owing to transaction capabilities is poor or network jitter etc. is former Cause, failed always pretreatment request, and complete rollback request Concurrency go out rollback ask respond after, Just complete pretreatment request, then this participant follow-up can be caused to be constantly in SBR, and affairs coordinator Then because of have received the rollback of participant complete response after, be mistakenly considered the equal rollback of participant and complete so that affairs Concordance is destroyed, cause in data base about these affairs data will complete confusion and unpredictable, Data base is caused normally to use.
To sum up, issued transaction of the prior art also exists the problem that transaction consistency is difficult to ensure that.
Application content
The embodiment of the present application provides a kind of transaction methods and device, solves issued transaction in prior art During the technical problem that is difficult to ensure that of concordance.
The embodiment of the present application also provides for a kind of transaction methods, comprising:
Obtaining the first request of pending affairs, described first request is asked for pretreatment;
Judging whether the second request of described pending affairs meets pre-conditioned, described second request is rollback Request;
If so, described first request is terminated;If it is not, perform described first request.
The embodiment of the present application also provides for a kind of transaction methods, comprising:
Obtaining the first request of pending affairs, described first request is asked for rollback;
Judging whether the second request of described pending affairs meets pre-conditioned, described second request is pre-place Reason request;
If so, described first request is terminated;If it is not, perform described first request.
The embodiment of the present application also provides for a kind of transacter, comprising:
Acquisition module, for obtaining the first request of pending affairs, described first request is asked for pretreatment;
Judge module, for judging whether the second request of described pending affairs meets pre-conditioned, described Second request is asked for rollback;
Perform module, if described second request meets pre-conditioned, be used for terminating described first request, if institute Second request of stating does not meets pre-conditioned, is used for performing described first request.
The embodiment of the present application also provides for a kind of transacter, comprising:
Acquisition module, for obtaining the first request of pending affairs, described first request is asked for rollback;
Judge module, for judging whether the second request of described pending affairs meets pre-conditioned, described Second request is asked for pretreatment;
Perform module, if described second request meets pre-conditioned, be used for terminating described first request, if institute Second request of stating does not meets pre-conditioned, is used for performing described first request.
At least one technical scheme above-mentioned that the embodiment of the present application uses can reach following beneficial effect:
In the embodiment of the present application, whether meet pre-conditioned deciding whether according to the second request and terminate just to obtain The first request arrived, no matter the first request is pretreatment request or rollback request, all can realize rollback request Being performed rear pretreatment request will not be performed, pretreatment request is performed rear rollback request and just can perform;Keep away Exempt from pretreatment request after rollback is asked, complete to destroy the concordance of affairs, it is ensured that about this in data base The correctness of the data of affairs.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes of the application Point, the schematic description and description of the application is used for explaining the application, is not intended that to the application not Work as restriction.In the accompanying drawings:
The process of the transaction methods that Fig. 1 provides for the embodiment of the present application.
The second request judging pending affairs in the transaction methods that Fig. 2 provides for the embodiment of the present application is No meeting pre-conditioned detailed process, now, the first request is asked for pretreatment, and the second request is rollback Request.
The transaction methods that Fig. 3 provides for another embodiment of the application judging, the second of pending affairs please Seeking Truth is no meets pre-conditioned detailed process, and now, the first request is asked for rollback, and the second request is pre- Process request.
The structural representation of the transacter that Fig. 4 provides for the embodiment of the present application.
Detailed description of the invention
For making the purpose of the application, technical scheme and advantage clearer, specifically real below in conjunction with the application Execute example and technical scheme is clearly and completely described by corresponding accompanying drawing.Obviously, described Embodiment is only some embodiments of the present application rather than whole embodiments.Based on the enforcement in the application Example, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise Example, broadly falls into the scope of the application protection.
In affairs in processing procedure, it is understood that there may be pretreatment request just terminates to cause after rollback has been asked The situation that transaction consistency is destroyed, for ensureing the concordance of affairs, the embodiment of the present application provides a kind of affairs Processing method, is discussed in detail this method below in conjunction with accompanying drawing.
The process of the transaction methods that Fig. 1 provides for the embodiment of the present application, comprises the steps:
S10, obtain pending affairs first request.
In embodiments herein, the first request refers to the pretreatment request of affairs, is used for notifying that participant is accurate Standby submission data.
Generally submit to the action of data all along with the transfer of affairs related data, such as, pass through Web bank Interior remaining sum account carries out net purchase payment for goods payment, and this payment process is affairs.First, buyer's is online After bank balance account obtains pretreatment request, payment for goods is gone to trustship account, is successfully stored in trustship in payment for goods After account, it is considered as remaining sum account and completes pretreatment request;Follow-up, payment for goods is committed to sell from trustship account again Family's account, thus complete whole payment for goods and pay.
S20, judge whether the second request of these pending affairs meets pre-conditioned, if so, perform step S30;If it is not, perform step S40.
Wherein, the second request is asked for rollback, and this is pre-conditioned is: the second request (rollback request) is being located In reason or the most treated complete.
S30, terminate this first request, and to management issued transaction affairs coordinator send pretreatment request Failure response.
S40, perform this first request.
As a example by Web bank, remaining sum account carries out net purchase payment for goods payment equally, remaining sum account obtains pre-place After reason request, if remaining sum account transaction disposal ability and network capacity are all normal, remaining sum account performs During pretreatment request, rollback request does not generate, and natural rollback request does not meets that it is pre-conditioned yet, now, Continue executing with the first request, to promote whole issued transaction process.
But, when remaining sum account disposal ability is poor or network jitter is bigger, remaining sum account is being successfully received After rollback request, start to perform rollback request when even completing rollback request, just get pretreatment and ask; Now, because rollback request meets pre-conditioned, pretreatment request is directly terminated, it is to avoid continue executing with pretreatment The consistent affairs sex chromosome mosaicism that request causes, it is ensured that the correctness of the interior data about these affairs of data base.
For the embodiment of the present application, Fig. 2 provides whether the rollback judging pending affairs in transaction methods asks Meeting pre-conditioned detailed process figure, this step S20 includes:
S21a, generating the transaction information of pending affairs, transaction information includes Transaction Identifier and transaction status.
In embodiments herein, obtaining transaction request, no matter this transaction request is pre-place every time Reason request or rollback request, all can generate the transaction information of pending affairs.
In transaction information, can to pass through affairs content, affairs participant and affairs initiation time etc. many for Transaction Identifier Individual because usually defining, unrelated with the type of transactions requests so that during each issued transaction, these affairs Transaction information there is unique Transaction Identifier.
In transaction information, transaction status is normal or rollback, and when obtaining pretreatment request, transaction status is then marked For normally;When obtaining rollback request, transaction status is then designated as rollback.
S22a, judge to have recorded the transaction information summary table of transaction information in whether exist and the thing of pending affairs The transaction information that business mark is identical, if it is not, perform S23a, if so, performs S24a.
In embodiments herein, it is provided that a transaction information summary table, after generating transaction information, all should every time The transaction information of affairs is stored in transaction information summary table.Transaction Identifier is done data integrity by transaction information summary table Constraint so that issued transaction the most only has unique transaction information every time.
After the transaction request obtaining pending affairs, the transaction information of pending affairs is inserted affairs According to being successively inserted into, information summary table, determines whether that existence is identical with the Transaction Identifier of pending affairs Transaction information.
If occurring inserting unsuccessfully, then there is the Transaction Identifier phase with pending affairs in judging transaction information summary table Same transaction information, otherwise, then there is not, in judging transaction information summary table, the transaction information that Transaction Identifier is identical, The transaction information of the most pending affairs is inserted in transaction information summary table, completes to transaction information summary table more Newly.
Certainly, in other embodiments of the application, also by the Transaction Identifier of the pending affairs of extraction, look into Ask transaction information summary table, it is judged that whether this Transaction Identifier is contained therein, in realizing transaction information summary table to be The transaction information that no existence is identical with the Transaction Identifier of pending affairs, does not repeats at this.
S23a, it is determined that the presence of identical transaction information, i.e. rollback request does not meets pre-conditioned.
When there is not the transaction information identical with the Transaction Identifier of pending affairs in transaction information summary table, table The pretreatment of these pending affairs bright is asked as to ask first, can continue executing with this pretreatment request.
Whether the transaction status of the transaction information that S24a, judgement are stored in transaction information summary table is rollback, if it is not, Perform S25a, if so, perform S26a.
If there is the transaction information identical with the Transaction Identifier of pending affairs in transaction information summary table, show this The first treated request of secondary transaction request not these affairs, is recorded in transaction information summary table by judgement Whether the transaction status of transaction information is rollback, carrys out the currently processed progress of clearly these affairs.
When the transaction status of transaction information is rollback in transaction information summary table, show that this issued transaction has arrived Rollback phase, now, it is determined that the rollback request of these affairs is processing or processed;Otherwise, if In transaction information summary table, the transaction status of transaction information is normal, shows that this issued transaction is also in pretreatment rank Section, the most single transactions requests participant does repeatedly pretreatment request, can continue executing with current pretreatment Request.
S25a, judgement rollback request do not meet pre-conditioned.
S26a, judgement rollback are asked in processes or the most treated complete, i.e. rollback request meets pre-conditioned.
In embodiments herein, transaction methods also includes: when pending affairs are submitted to successfully, delete Except the transaction information of these pending affairs, reduce transaction information summary table and take up room, the most also improve affairs mark Know search efficiency.
The process of the transaction methods that another embodiment of the application provides, with issued transaction in previous embodiment The process of method is compared, and difference is: the first request is asked for rollback, and the second request is asked for pretreatment, Pre-conditioned it is: pretreatment is asked in processes.
Fig. 3 provides the rollback request judging pending affairs in transaction methods for another embodiment of the application Whether meeting pre-conditioned detailed process figure, step S20 includes:
S21b, generating the transaction information of pending affairs, transaction information includes Transaction Identifier and transaction status.
S22b, judge to have recorded the transaction information summary table of transaction information in whether exist and the thing of pending affairs The transaction information that business mark is identical, if so, performs S23b, if it is not, perform S24b.
S23b, it is determined that the presence of identical transaction information, i.e. pretreatment request does not meets pre-conditioned.
S24b, judge whether the transaction information of pending affairs to be inserted into transaction information summary table, if so, Perform S25b, if it is not, perform S26b.
In transaction information summary table, there is not the transaction information with pending affairs same transaction mark exist, And the transaction information of pending affairs is when also cannot insert transaction information summary table, before showing, affairs participant will The action that the transaction information generated when obtaining pretreatment request inserts transaction information summary table is the most underway.
Now so that in transaction information summary table, there is not the transaction information of this things identical mark, affairs participate in The transaction information generated when obtaining rollback request cannot be also inserted in transaction information summary table by person, and then obtains Pretreatment request conclusion in processes.
S25b, judgement transaction information insert unsuccessfully, i.e. pretreatment request does not meets pre-conditioned.
S26b, judgement pretreatment are asked in processes, i.e. preset process request and meet pre-conditioned.
Ask when pretreatment is asked in processes by setting pretreatment, terminate rollback request, and to management The affairs coordinator of issued transaction sends rollback request failure response.Affairs coordinator waits after presetting time delay, Sending rollback request to affairs participant again, affairs participant repeats aforementioned execution step S21b-S26b, directly To obtain pretreatment request processed or process make mistakes.
Owing to, after completing pretreatment request, rollback request could be performed;Avoid pretreatment to ask in rollback Request just completes after terminating, it is ensured that the correctness of the interior data about these affairs of data base.
In embodiments herein, transaction methods also includes: when pending transaction rollback success, will The transaction status of pending affairs is updated to rollback.
If before rollback request performs, have been carried out the pretreatment request of these affairs or perform pretreatment request Abnormal, in transaction information summary table, there is the transaction information of these pending affairs, and has been stored in transaction information The transaction status of the transaction information of the pending affairs in summary table is normal, then after rollback completes, by this thing Business state is by normally changing rollback into.
If before rollback request performs, the pretreatment request of these affairs is not carried out, then given birth to when rollback being asked The transaction status of the transaction information become directly is updated to rollback.
The structural scheme of mechanism of the transacter that Fig. 4 provides for the embodiment of the present application, the embodiment of the present application institute The transacter provided is based on above transaction methods, therefore the detail of this device can refer to above Processing method, is the most no longer repeated.This transacter includes:
Acquisition module 10, for obtaining the first request of pending affairs.
Judge module 20, for judging whether the second request of pending affairs meets pre-conditioned.
Perform module 30, if the second request meets pre-conditioned, for terminating the first request, if the second request Do not meet pre-conditioned, for performing the first request.
In the embodiment of the present application, the first request is pretreatment request, and the second request is rollback request;Preset bar Part is: rollback is asked in processes or the most treated complete.
In the embodiment of the present application, it is judged that module 20 specifically includes:
Information generating unit, generates the transaction information of pending affairs, and transaction information includes Transaction Identifier and thing Business state.
Whether mark judging unit, exist the affairs mark with pending affairs in judging transaction information summary table Sensible same transaction information.
Condition adjudgement unit, if there is the transaction information that Transaction Identifier is identical, is stored in transaction information for judgement Whether the transaction status of the transaction information in summary table is rollback, if transaction status is rollback, it is determined that the second request In processes or the most treated complete.
In the embodiment of the present application, mark judging unit specifically for:
The transaction information of pending affairs is inserted transaction information summary table.
Determine whether that Transaction Identifier repeats abnormal, if it is not, it is determined that the presence of and the Transaction Identifier of pending affairs Identical transaction information.
In the embodiment of the present application, transacter also includes:
Information deletion module, for when pending affairs are submitted to successfully, deletes the affairs of these pending affairs Information.
In the embodiment of the present application, the first request is rollback request, and the second request is pretreatment request;Preset bar Part is: the second request is in processes.
In the embodiment of the present application, it is judged that module 20 specifically includes:
Information generating unit, for generating the transaction information of pending affairs, transaction information includes Transaction Identifier And transaction status.
Whether mark judging unit, exist the affairs mark with pending affairs in judging transaction information summary table Sensible same transaction information.
Inserting judging unit, if there is not the transaction information that Transaction Identifier is identical, being used for judging whether can be by The transaction information of pending affairs is inserted into transaction information summary table, if transaction information inserts unsuccessfully, it is determined that second Request is in processes.
In the embodiment of the present application, insert judging unit specifically for:
The transaction information of pending affairs is inserted transaction information summary table.
Determine whether that Transaction Identifier repeats abnormal, if it is not, it is determined that the presence of and the Transaction Identifier of pending affairs Identical transaction information.
In the embodiment of the present application, transacter also includes:
Rollback more new module, for when pending transaction rollback success, by the transaction status of pending affairs It is updated to rollback.
In the embodiment of the present application, transacter also includes responding sending module, for sending the first request Failure response.
Whether the transacter that the embodiment of the present application is provided, meet pre-conditioned next according to the second request Deciding whether to terminate the first request just got, no matter the first request is that pretreatment request or rollback please Ask, all can realize rollback request be performed rear pretreatment request will not be performed, pretreatment request be performed after Rollback request just can perform;Pretreatment request is avoided to complete to destroy the concordance of affairs after rollback is asked, Ensure that the correctness of the interior data about these affairs of data base.
It should be noted that the executive agent of each step of the provided transaction methods of embodiments herein May each be same equipment, or, the method also by distinct device as executive agent.Such as, step 21 Can be equipment 1 with the executive agent of step 22, the executive agent of step 23 can be equipment 2;Again than As, the executive agent of step 21 can be the executive agent of equipment 1, step 22 and step 23 can be to set Standby 2.
Those skilled in the art are it should be appreciated that embodiments herein can be provided as method, device or meter Calculation machine program product.Therefore, the application can use complete hardware embodiment, complete software implementation or knot The form of the embodiment in terms of conjunction software and hardware.And, the application can use and wherein wrap one or more Computer-usable storage medium containing computer usable program code (include but not limited to disk memory, CD-ROM, optical memory etc.) form of the upper computer program implemented.
The application is with reference to method, equipment (device) and the computer program product according to the embodiment of the present application The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and / or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding The processor of formula datatron or other transaction facilities able to programme is to produce a machine so that by calculating The instruction that the processor of machine or other transaction facilities able to programme performs produces for realizing at flow chart one The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or other issued transaction able to programme can be guided to set In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded on computer or other transaction facilities able to programme, makes Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
In a typical configuration, calculating equipment includes one or more processor (CPU), input/defeated Outgoing interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or the form such as Nonvolatile memory, such as read only memory (ROM) or flash memory (flash RAM). Internal memory is the example of computer-readable medium.
Computer-readable medium includes that removable media permanent and non-permanent, removable and non-can be by appointing Where method or technology realize information storage.Information can be computer-readable instruction, transaction structure, program Module or other affairs.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its The random access memory (RAM) of his type, read only memory (ROM), electrically erasable are read-only Memorizer (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be calculated The information that equipment accesses.According to defining herein, computer-readable medium does not include temporary computer-readable matchmaker Body (transitory media), such as transaction signals and the carrier wave of modulation.
Also, it should be noted term " includes ", " comprising " or its any other variant are intended to non- Comprising of exclusiveness, so that include that the process of a series of key element, method, commodity or equipment not only wrap Include those key elements, but also include other key elements being not expressly set out, or also include for this process, The key element that method, commodity or equipment are intrinsic.In the case of there is no more restriction, statement " include One ... " key element that limits, it is not excluded that including the process of described key element, method, commodity or setting Other identical element is there is also in Bei.
It will be understood by those skilled in the art that embodiments herein can be provided as method, device or computer journey Sequence product.Therefore, the application can use complete hardware embodiment, complete software implementation or combine software and The form of the embodiment of hardware aspect.And, the application can use and wherein include calculating one or more The computer-usable storage medium of machine usable program code (include but not limited to disk memory, CD-ROM, Optical memory etc.) form of the upper computer program implemented.
The foregoing is only embodiments herein, be not limited to the application.For this area skill For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle Any modification, equivalent substitution and improvement etc. made, within the scope of should be included in claims hereof.

Claims (16)

1. a transaction methods, it is characterised in that including:
Obtaining the first request of pending affairs, described first request is pretreatment request;
Judging whether the second request of described pending affairs meets pre-conditioned, described second request is rollback Request;
If so, described first request is terminated;If it is not, perform described first request.
2. transaction methods as claimed in claim 1, it is characterised in that described pre-conditioned be: Described second asks in processes or the most treated complete.
3. transaction methods as claimed in claim 2, it is characterised in that judge described pending thing Whether the second request of business meets pre-conditioned, specifically includes:
Generating the transaction information of pending affairs, described transaction information includes Transaction Identifier and transaction status;
Whether exist and the thing of described pending affairs in judging to have recorded the transaction information summary table of transaction information The transaction information that business mark is identical;
If there is the transaction information that Transaction Identifier is identical, it is judged that be stored in the described thing in described transaction information summary table Whether the transaction status of business information is rollback;
If described transaction status is rollback, it is determined that described second asks in processes or the most treated complete.
4. transaction methods as claimed in claim 3, it is characterised in that judge whether and institute State the transaction information that the Transaction Identifier of pending affairs is identical, specifically include:
The transaction information of described pending affairs is inserted described transaction information summary table;
Determine whether that Transaction Identifier repeats, if so, it is determined that the presence of and the Transaction Identifier of described pending affairs Identical transaction information.
5. transaction methods as claimed in claim 3, it is characterised in that transaction methods is also wrapped Include:
When pending affairs are submitted to successfully, delete the transaction information of these pending affairs.
6. transaction methods as claimed in claim 1, it is characterised in that please terminating described first Also comprise the steps: after asking
Send the failure response of the first request.
7. a transaction methods, it is characterised in that including:
Obtaining the first request of pending affairs, described first request is rollback request;
Judging whether the second request of described pending affairs meets pre-conditioned, described second request is pre-place Reason request;
If so, described first request is terminated;If it is not, perform described first request.
8. transaction methods as claimed in claim 7, it is characterised in that described pre-conditioned be: Described second request is in processes.
9. transaction methods as claimed in claim 8, it is characterised in that judge described pending thing Whether the second request of business meets pre-conditioned, specifically includes:
Generating the transaction information of pending affairs, described transaction information includes Transaction Identifier and transaction status;
Whether exist and the thing of described pending affairs in judging to have recorded the transaction information summary table of transaction information The transaction information that business mark is identical;
If there is not the transaction information that Transaction Identifier is identical, it may be judged whether the affairs of pending affairs can be believed Breath is inserted into transaction information summary table;
If described transaction information inserts unsuccessfully, it is determined that described second request is in processes.
10. transaction methods as claimed in claim 9, it is characterised in that judge whether will to treat The transaction information processing affairs is inserted into transaction information summary table, specifically includes:
The transaction information of described pending affairs is inserted described transaction information summary table;
Determine whether that Transaction Identifier repeats, if so, judge that described transaction information inserts unsuccessfully.
11. transaction methods as claimed in claim 9, it is characterised in that transaction methods is also wrapped Include:
When pending transaction rollback success, the transaction status of pending affairs is updated to rollback.
12. transaction methods as claimed in claim 7, it is characterised in that please terminating described first Also comprise the steps: after asking
Send the failure response of the first request.
13. 1 kinds of transacters, it is characterised in that including:
Acquisition module, for obtaining the first request of pending affairs, described first request is pretreatment request;
Judge module, for judging whether the second request of described pending affairs meets pre-conditioned, described Second request is rollback request;
Perform module, if described second request meets pre-conditioned, be used for terminating described first request, if institute Second request of stating does not meets pre-conditioned, is used for performing described first request.
14. transacters as claimed in claim 13, it is characterised in that described pre-conditioned be: Described rollback is asked in processes or processed.
15. 1 kinds of transacters, it is characterised in that including:
Acquisition module, for obtaining the first request of pending affairs, described first request is rollback request;
Judge module, for judging whether the second request of described pending affairs meets pre-conditioned, described Second request is pretreatment request;
Perform module, if described second request meets pre-conditioned, be used for terminating described first request, if institute Second request of stating does not meets pre-conditioned, is used for performing described first request.
16. transacters as claimed in claim 15, it is characterised in that described pre-conditioned be: Second request is in processes.
CN201510087926.3A 2015-02-25 2015-02-25 Transaction methods and device Active CN105989133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510087926.3A CN105989133B (en) 2015-02-25 2015-02-25 Transaction methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510087926.3A CN105989133B (en) 2015-02-25 2015-02-25 Transaction methods and device

Publications (2)

Publication Number Publication Date
CN105989133A true CN105989133A (en) 2016-10-05
CN105989133B CN105989133B (en) 2019-10-01

Family

ID=57038564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510087926.3A Active CN105989133B (en) 2015-02-25 2015-02-25 Transaction methods and device

Country Status (1)

Country Link
CN (1) CN105989133B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107783861A (en) * 2017-07-31 2018-03-09 平安科技(深圳)有限公司 transaction rollback method, device, storage medium and computer equipment
CN108182637A (en) * 2017-12-28 2018-06-19 泰康保险集团股份有限公司 A kind of generation method, device, medium and the electronic equipment of green logical service volume
CN109683995A (en) * 2018-12-17 2019-04-26 深圳前海达闼云端智能科技有限公司 A method of it being packaged block, verifying block and intelligent contract and executes
CN109976881A (en) * 2017-12-28 2019-07-05 腾讯科技(深圳)有限公司 Transaction recognition method and apparatus, storage medium and electronic device
CN111078451A (en) * 2019-08-05 2020-04-28 腾讯科技(深圳)有限公司 Distributed transaction processing method and device, computer equipment and storage medium
WO2020082942A1 (en) * 2018-10-24 2020-04-30 苏宁云计算有限公司 Response timeout processing method, server, and client response timeout processing system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5924095A (en) * 1997-02-05 1999-07-13 Oracle Corporation Processing distributed transactions in heterogeneous computing environments using two-phase commit
CN102193991A (en) * 2011-03-25 2011-09-21 北京世纪互联工程技术服务有限公司 OLTP(on-line transaction processing)-based data modifying method and system as well as graphic database server
CN103312549A (en) * 2013-06-26 2013-09-18 华为技术有限公司 Transaction management method, device and system
CN103559245A (en) * 2013-10-29 2014-02-05 华为技术有限公司 Distributed transaction committing failure handling method, device and system
CN104094227A (en) * 2012-03-16 2014-10-08 甲骨文国际公司 Systems and methods for supporting inline delegation of middle-tier transaction logs to database
CN104220982A (en) * 2013-10-29 2014-12-17 华为技术有限公司 Transaction processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5924095A (en) * 1997-02-05 1999-07-13 Oracle Corporation Processing distributed transactions in heterogeneous computing environments using two-phase commit
CN102193991A (en) * 2011-03-25 2011-09-21 北京世纪互联工程技术服务有限公司 OLTP(on-line transaction processing)-based data modifying method and system as well as graphic database server
CN104094227A (en) * 2012-03-16 2014-10-08 甲骨文国际公司 Systems and methods for supporting inline delegation of middle-tier transaction logs to database
CN103312549A (en) * 2013-06-26 2013-09-18 华为技术有限公司 Transaction management method, device and system
CN103559245A (en) * 2013-10-29 2014-02-05 华为技术有限公司 Distributed transaction committing failure handling method, device and system
CN104220982A (en) * 2013-10-29 2014-12-17 华为技术有限公司 Transaction processing method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107783861A (en) * 2017-07-31 2018-03-09 平安科技(深圳)有限公司 transaction rollback method, device, storage medium and computer equipment
CN108182637A (en) * 2017-12-28 2018-06-19 泰康保险集团股份有限公司 A kind of generation method, device, medium and the electronic equipment of green logical service volume
CN109976881A (en) * 2017-12-28 2019-07-05 腾讯科技(深圳)有限公司 Transaction recognition method and apparatus, storage medium and electronic device
CN109976881B (en) * 2017-12-28 2022-11-08 腾讯科技(深圳)有限公司 Transaction identification method and apparatus, storage medium, and electronic apparatus
WO2020082942A1 (en) * 2018-10-24 2020-04-30 苏宁云计算有限公司 Response timeout processing method, server, and client response timeout processing system
CN109683995A (en) * 2018-12-17 2019-04-26 深圳前海达闼云端智能科技有限公司 A method of it being packaged block, verifying block and intelligent contract and executes
CN109683995B (en) * 2018-12-17 2022-03-11 达闼机器人有限公司 Packing block, verification block and intelligent contract execution method
CN111078451A (en) * 2019-08-05 2020-04-28 腾讯科技(深圳)有限公司 Distributed transaction processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN105989133B (en) 2019-10-01

Similar Documents

Publication Publication Date Title
CN105989133A (en) Transaction processing method and device
US10657526B2 (en) System and method to dynamically setup a private sub-blockchain based on agility of transaction processing
CN105488675B (en) Block chain distributed shared general ledger construction method
US9824392B2 (en) Computing resource management systems and methods
US9870480B2 (en) Automatic removal of global user security groups
CN110838065A (en) Transaction data processing method and device
CN103873321A (en) Distributed file system-based simulation distributed parallel computing platform and method
CN109447791B (en) Block chain-based fund transaction method and device
EP2629205A1 (en) Multi-entity test case execution workflow
WO2019205370A1 (en) Electronic device, task distribution method and storage medium
CN104850394B (en) The management method and distributed system of distributed application program
CN111679893A (en) Operation system construction method and device, electronic equipment and storage medium
CN108564345B (en) Insurance platform data processing method, electronic device and computer readable storage medium
CN108650289A (en) A kind of method and apparatus of the management data based on block chain
CN109791676A (en) Trading processing based on shared drive
CN109885382A (en) The system of cross-system distributed transaction processing method and distributing real time system
CN108230052A (en) A kind of invoice issuing and method for uploading and system
Zhu et al. A security protection framework for cloud computing
CN108038126A (en) Method, apparatus, terminal device and storage medium derived from a kind of data
CN106874080A (en) Method for computing data and system based on distributed server cluster
US9473588B2 (en) Data processing method and system
US9922198B2 (en) Methods, apparatus and computer systems that enable hardware module use rights owned by one server to be claimed for use by another server in a common share group
DE102014116982A1 (en) Self-aware token
CN106254373A (en) Digital certificate synchronous method, digital signature server and digital certificate synchronize system
CN113592645B (en) Data verification method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.