CN109885485B - Transaction conflict detection method and device - Google Patents

Transaction conflict detection method and device Download PDF

Info

Publication number
CN109885485B
CN109885485B CN201910055215.6A CN201910055215A CN109885485B CN 109885485 B CN109885485 B CN 109885485B CN 201910055215 A CN201910055215 A CN 201910055215A CN 109885485 B CN109885485 B CN 109885485B
Authority
CN
China
Prior art keywords
transaction
conflict
path
information
preset
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.)
Active
Application number
CN201910055215.6A
Other languages
Chinese (zh)
Other versions
CN109885485A (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.)
China Everbright Bank Co Ltd
Original Assignee
China Everbright Bank 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 Everbright Bank Co Ltd filed Critical China Everbright Bank Co Ltd
Priority to CN201910055215.6A priority Critical patent/CN109885485B/en
Publication of CN109885485A publication Critical patent/CN109885485A/en
Application granted granted Critical
Publication of CN109885485B publication Critical patent/CN109885485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a transaction conflict detection method and a device, which are applied to a transaction registration center, wherein a transaction registration table comprising preset transaction paths corresponding to atomic transactions is preset in the transaction registration center; the transaction conflict detection method comprises the steps of aiming at an atomic transaction, obtaining all transaction information related to the atomic transaction, and generating a transaction path to be detected according to the all transaction information; calling a preset transaction path corresponding to the atomic transaction from the transaction registry, and comparing the transaction path to be tested with the preset transaction path to judge whether a conflict exists between the preset transaction path and the transaction path to be tested; and if the conflict exists, updating the preset transaction path in the transaction registry according to the conflict type corresponding to the conflict. The invention can effectively realize the full-coverage detection of the transaction path and improve the transaction detection efficiency.

Description

Transaction conflict detection method and device
Technical Field
The invention relates to the technical field of financial Internet, in particular to a transaction conflict detection method and device.
Background
The traditional impact test for the associated transaction usually depends on the test experience of testers and developers and the accumulation of test documents, and the transaction paths to be covered by the test are analyzed and screened out for testing. However, today of rapid development of financial IT (internet Technology, internet), business requirements are on-line and cycle is accelerated, accumulation of test experience and test documents is greatly influenced, personnel mobility rate is high, IT is difficult to guarantee full coverage of test paths by relying on personal experience of testers and developers, and existing test efficiency is low.
Disclosure of Invention
It is therefore an object of the present invention to provide a transaction conflict detection method and apparatus to improve the above-mentioned problems.
In one aspect, a preferred embodiment of the present invention provides a transaction conflict detection method, which is applied to a transaction registration center, where a transaction registration table including preset transaction paths corresponding to each atomic transaction is preset in the transaction registration center; the transaction conflict detection method comprises the following steps:
aiming at an atomic transaction, acquiring all transaction information related to the atomic transaction, and generating a transaction path to be tested according to all transaction information;
calling a preset transaction path corresponding to the atomic transaction from the transaction registry, and comparing the transaction path to be tested with the preset transaction path to judge whether a conflict exists between the preset transaction path and the transaction path to be tested;
and if the conflict exists, updating the preset transaction path in the transaction registry according to the conflict type corresponding to the conflict.
Further, the step of generating the transaction path to be tested according to the whole transaction information includes:
generating a directed graph set comprising all transaction information according to all transaction information related to the atomic transaction;
and carrying out topological sorting on the basis of each directed graph in the directed graph set, and taking a topological sorting result as the transaction path to be tested.
Further, the conflict type includes a path information conflict; updating the preset transaction path in the transaction registry according to the conflict type corresponding to the conflict, wherein the step comprises the following steps:
and when the conflict type is a path information conflict and the path scale of the transaction path to be tested is larger than that of the preset transaction path, amplifying and updating the preset transaction path according to the path scale of the transaction path to be tested.
Further, the conflict type includes a path node information conflict; updating the preset transaction path in the transaction registry according to the conflict type corresponding to the conflict, wherein the step comprises the following steps:
when the conflict type comprises a path node information conflict, extracting conflict nodes with conflicts and conflict information corresponding to the conflict nodes;
generating an information confirmation page according to the conflict node and conflict information corresponding to the conflict node and feeding back the information confirmation page;
and responding conflict confirmation information input by the user based on the information confirmation page, and updating the preset transaction path according to the conflict confirmation information when the conflict confirmation information is inconsistent with the node information of the preset conflict node in the transaction registry.
Further, the method further comprises:
for each atomic transaction, configuring a transaction identifier corresponding to the atomic transaction;
configuring an atomic transaction table corresponding to the atomic transaction according to the atomic transaction, the transaction identification and the transaction attribute information; and
and configuring a transaction registry comprising a preset transaction path according to the atomic transaction, the transaction identification and the upstream and downstream transaction information corresponding to the atomic transaction.
Further, the step of calling a preset transaction path corresponding to the atomic transaction from the transaction registry includes:
and calling a corresponding preset transaction path according to the transaction identifier corresponding to the atomic transaction.
On the other hand, the preferred embodiment of the present invention further provides a transaction conflict detection apparatus, which is applied to a transaction registration center, wherein a transaction registration table including preset transaction paths corresponding to each atomic transaction is preset in the transaction registration center; the transaction conflict detection apparatus includes:
the path generation module is used for acquiring all transaction information related to an atomic transaction and generating a transaction path to be tested according to all transaction information;
the conflict judging module is used for calling a preset transaction path corresponding to the atomic transaction from the transaction registry and comparing the transaction path to be tested with the preset transaction path so as to judge whether a conflict exists between the preset transaction path and the transaction path to be tested;
and the information updating module is used for updating the preset transaction path in the transaction registry according to the conflict type corresponding to the conflict when the conflict exists.
Further, the path generation module includes:
the directed graph set generating unit is used for generating a directed graph set comprising all transaction information according to all transaction information related to the atomic transaction;
and the path generating unit is used for carrying out topological sorting on the basis of each directed graph in the directed graph set and taking a topological sorting result as the transaction path to be tested.
Further, the conflict type includes a path information conflict; the information updating module comprises:
and the path updating unit is used for amplifying and updating the preset transaction path according to the path scale of the transaction path to be tested when the conflict type is a path information conflict and the path scale of the transaction path to be tested is larger than the path scale of the preset transaction path.
Further, the conflict type includes a path node information conflict; the information update module further comprises:
the node extraction unit is used for extracting conflict nodes with conflicts and conflict information corresponding to the conflict nodes when the conflict types comprise path node information conflicts;
the page feedback unit is used for generating an information confirmation page according to the conflict node and conflict information corresponding to the conflict node and feeding back the information confirmation page;
and the node updating unit is used for responding to conflict confirmation information input by the user based on the information confirmation page and updating the preset transaction path according to the conflict confirmation information when the conflict confirmation information is inconsistent with the preset node information of the conflict node in the transaction registry.
Compared with the prior art, the embodiment of the invention provides a transaction conflict detection method and a transaction conflict detection device, wherein each atomic transaction is taken as a micro service to be registered and managed in a transaction registration center based on the design idea of a micro service architecture, so that the full coverage test of a transaction path can be quickly and conveniently realized during transaction conflict detection, the seamless connection between transaction change and test is ensured, and the transaction test efficiency is effectively improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of a transaction registry according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a transaction conflict detection method according to an embodiment of the present invention.
Fig. 3 is a sub-flowchart of step S11 shown in fig. 2.
Fig. 4 is a schematic view of a topology of a transaction path to be tested.
Fig. 5 is a sub-flowchart of step S14 shown in fig. 2.
Fig. 6 is a block diagram of a transaction conflict detection apparatus according to an embodiment of the present invention.
An icon: 10-a transaction registry; 100-transaction conflict detection means; 110-a path generation module; 1100-directed graph set generation unit; 1101-a path generation unit; 120-conflict judgment module; 130-an information update module; 1300-path update unit; 1301-a node extraction unit; 1302-a page feedback unit; 1303-node update unit; 200-a memory; 300-a memory controller; 400-processor.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
As shown in fig. 1, which is a block diagram of a transaction registry 10 according to an embodiment of the present invention, the transaction registry 10 may include a transaction conflict detection apparatus 100, a memory 200, a memory controller 300, and a processor 400. The memory 200, the memory controller 300 and the processor 400 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components are electrically connected to each other through one or more communication buses or signal lines. The transaction conflict detection apparatus 100 includes at least one software function module which may be stored in the memory 200 in the form of software or firmware or solidified in the operating system in the transaction registry 10. The processor 400 accesses the memory 200 under the control of the memory controller 300 for executing executable modules stored in the memory 200, such as software functional modules and computer programs included in the transaction conflict detection apparatus 100.
It will be appreciated that the configuration shown in figure 1 is merely illustrative and that the transaction registry 10 may include more or fewer components than shown in figure 1 or may have a different configuration than shown in figure 1. In addition, the transaction registry 10 may be, but is not limited to, a smart phone, a Personal Computer (PC), a tablet PC, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a cloud server, a minicomputer, a kiosk, and the like.
Further, as shown in fig. 2, a schematic flow chart of a transaction conflict detection method provided by an embodiment of the present invention is applied to the transaction registration center 10, and specific steps and a flow of the transaction conflict detection method will be described in detail below with reference to fig. 2. It should be understood that the transaction conflict detection method presented in the present embodiment is not limited by the order of the steps and flow described below.
Step S11, aiming at an atomic transaction, acquiring all transaction information related to the atomic transaction, and generating a transaction path to be tested according to the all transaction information;
step S12, calling a preset transaction path corresponding to the atomic transaction from the transaction registry, and comparing the transaction path to be tested with the preset transaction path;
and step S13, judging whether a conflict exists between the preset transaction path and the transaction path to be tested according to the comparison result, if so, executing step S14, otherwise, judging that the transaction path to be tested is matched with the preset transaction path.
And step S14, updating the preset transaction path in the transaction registry according to the conflict type corresponding to the conflict.
Compared with the prior art, the transaction conflict detection method provided by the invention is realized based on the idea of micro-service architecture, namely, each atomic transaction can be used as a micro-service to be registered and managed in the transaction registration center 10, so that when the transaction conflict detection needs to be carried out on a certain atomic transaction, the full coverage of the transaction path related to the atomic transaction can be realized, and the detection efficiency and the detection effect are greatly improved. It should be noted that, in this embodiment, the atomic transaction refers to a small service unit formed by atomizing a transaction function when performing a financial transaction, such as an ATM (Automatic Teller Machine) withdrawal transaction, an online withdrawal transaction, an over-the-counter transaction, a mobile banking transfer transaction, and the like.
In detail, in step S11, the transaction registration center 10 may obtain all transaction information related to an atomic transaction at preset time intervals (e.g., 5 minutes, 10 minutes, etc.). Referring to fig. 3, the process of generating the transaction path to be tested according to the total transaction information may include steps S110 to S111, which are described as follows.
Step S110, generating a directed graph set including all transaction information according to all transaction information related to the atomic transaction;
and step S111, carrying out topological sorting based on each directed graph in the directed graph set, and taking a topological sorting result as the transaction path to be tested.
In steps S110 to S111, the total transaction information related to the atomic transaction includes, but is not limited to, a front transaction, a back transaction, a call transaction, and the like of the atomic transaction, and further, a directed graph set including the total transaction information is generated based on the total transaction information related to the atomic transaction, the directed graph set connects all the atomic transactions having an association relationship, and then the transaction path to be tested is generated by performing topological ordering on each directed graph in the directed graph set. For example, in this embodiment, each atomic transaction may be represented by a transaction identifier such as a number, and it is assumed that the transaction identifier of the atomic transaction that needs to be detected is 6003, and all transaction information related to the atomic transaction 6003 includes 5001, 5002, 5003, 5004, 6001, 6002, 6004; 7001 and 7002; further, the directed graph set generated based on step S110 and all the aforementioned transaction information may be 5001- >5002- >5003- >6003- >5003- > 5004; 6001- >6002- >6003- > 6004; 7001- >7002- >6003- >6004, and finally, based on step S111 and the aforementioned directed graph set, generate the transaction path to be tested as shown in fig. 4.
It can be understood that, when the directed graph is topologically sorted, the topological relation between the atomic transactions is preset and stored in the transaction registration center 10 for the subsequent generation of the transaction path to be tested, and the generation of the transaction path to be tested may be implemented based on a minimum spanning tree algorithm.
In addition, it should be noted that, in the present embodiment, before executing step S11-step S13, the atomic transaction table and the registered transaction table need to be configured, and the configured registered transaction table and the atomic transaction table need to be stored in the transaction registry 10.
Specifically, the configuration process of the atomic transaction table includes: for each atomic transaction, configuring a transaction identifier corresponding to the atomic transaction; the atomic transaction table corresponding to the atomic transaction is configured according to the atomic transaction, the transaction identifier, and the transaction attribute information, where it can be understood that the configuration process of the atomic transaction table may be a process of registering each atomic transaction as a micro service, and for example, when each atomic transaction is registered, the transaction identifier (such as a keyword) corresponding to each atomic transaction and attributes of various dimensions need to be defined, including but not limited to a pre-transaction, a post-transaction, a call transaction list, a message type, communication adaptability, whether data is consumed, transaction basic information, and the like. In this embodiment, the transaction identifier is used to register, invoke, identify, etc. an atomic transaction, and in this embodiment, the transaction identifier may be, but is not limited to, a keyword formed by letters, numbers, symbols, etc., such as 6003 shown in step S11, etc.
Further, the configuration process of the registered transaction table may include: and configuring a transaction registry comprising a preset transaction path according to the atomic transaction, the transaction identification and the upstream and downstream transaction information corresponding to the atomic transaction. The upstream and downstream transaction information refers to a pre-transaction, a post-transaction, a call transaction, and the like related to a certain atomic transaction, and the generation process of the preset transaction path may refer to the description of the generation process of the transaction path to be detected in step S11, which is not described herein again in this embodiment. In addition, in practical implementation, the transaction registration center 10 may drive a calculation engine and generate a transaction path according to a pre-transaction, a post-transaction, and a call transaction of an atomic transaction.
Further, based on the aforementioned atomic transaction table and the configuration of the transaction registry, when the preset transaction path is called in step S12, the preset transaction path corresponding to the atomic transaction may be called according to the transaction identifier corresponding to the atomic transaction. In addition, when the preset transaction path is compared with the transaction path to be tested, the comparison of the path information and the node information may be included, and if the path information or/and the node information are different from the preset transaction path, it may be determined that a conflict exists between the transaction path to be tested and the preset transaction path. For example, for the same atomic transaction, the pre-transaction of the atomic transaction in the transaction path to be tested is different from the pre-transaction of the atomic transaction in the preset transaction path, and the like; for another example, for the same atomic transaction, the information of the atomic transaction in the transaction path to be tested is different from the information of the atomic transaction in the preset transaction path, such as different transaction limits, different transaction types, different customer names, different transaction account numbers, and the like.
Further, in step S13 and step S14, the conflict type may include, but is not limited to, a path information conflict, a node information conflict, and the like. In this embodiment, the process of updating the preset transaction path is different according to different conflict types. For example, when the conflict type includes a path information conflict; the step of updating the preset transaction path in the transaction registry according to the conflict type corresponding to the conflict in step S14 includes: and when the conflict type is a path information conflict and the path scale of the transaction path to be tested is larger than that of the preset transaction path, amplifying and updating the preset transaction path according to the path scale of the transaction path to be tested, thereby further improving the transaction network scale of the financial network.
It should be noted that if the path size of the transaction path to be tested is smaller than the preset transaction path size, but the transaction path to be tested is a part of the preset transaction path, it may be determined that there is no conflict between the transaction path to be tested and the preset transaction path.
For another example, as shown in fig. 5, when the conflict type includes a path node information conflict, the step of updating the preset transaction path in the transaction registry according to the conflict type corresponding to the conflict includes steps S130 to S132, which is specifically described as follows.
Step S130, extracting conflict nodes with conflicts and conflict information corresponding to the conflict nodes;
step S131, generating an information confirmation page according to the conflict node and conflict information corresponding to the conflict node and feeding back the information confirmation page;
step S132, responding conflict confirmation information input by the user based on the information confirmation page, and updating the preset transaction path according to the conflict confirmation information when the conflict confirmation information is inconsistent with node information of a preset conflict node in the transaction registry.
In the above steps S130 to S132, the conflict node is a node (atomic transaction) where information conflicts exist between the transaction path to be tested and the preset transaction path, so as to improve the conflict resolution efficiency and ensure the validity of the conflict resolution result, in the present invention, the information of the node where conflicts exist may be confirmed by manual assistance, that is, an information confirmation page is generated according to the conflict node and the conflict information corresponding to the conflict node and is fed back to the corresponding terminal device, such as a mobile phone, a computer or the transaction registration center 10, so that the staff can confirm the conflict information.
When the conflict confirmation information received by the transaction registration center 10 represents that the node information in the transaction path to be tested is accurate information, the node information in the preset transaction path can be modified according to the node information in the transaction path to be tested; on the contrary, when the conflict validation information received by the transaction registration center 10 represents that the node information in the preset transaction path is accurate information, the node information in the preset transaction path does not need to be modified. Meanwhile, the transaction registration center 10 may further generate early warning information based on a comparison result between the transaction path to be detected and the preset transaction path, and send the early warning information to a maintenance worker corresponding to the conflict node to confirm or modify the node information.
As can be seen from the descriptions of the above steps S11-S14, the transaction conflict detection method implemented based on the micro service architecture provided in this embodiment can implement full coverage detection on the transaction path, and improve the detection efficiency and the detection accuracy. Meanwhile, the invention can also effectively avoid the problems that the prior art needs to rely on test experience and accumulation of test documents and the test is limited due to higher personnel flow rate, and can effectively meet the transaction conflict detection requirements under the background that the current financial network is rapidly developed and the online period of the business requirements is shortened.
In addition, the transaction conflict detection method provided by the invention can also be communicated with an interface automation platform to realize seamless connection of transaction change and test, and the test efficiency is improved.
Further, based on the description of the transaction conflict detection method, as shown in fig. 6, the preferred embodiment of the present invention further provides a transaction conflict detection apparatus 100 applied to the transaction registration center 10, where the transaction conflict detection apparatus 100 includes a path generation module 110, a conflict judgment module 120, and an information update module 130.
The path generating module 110 is configured to, for an atomic transaction, obtain all transaction information related to the atomic transaction, and generate a transaction path to be tested according to the all transaction information; in this embodiment, the detailed description of the step S11 may be referred to for the description of the path generation module 110, that is, the step S11 may be executed by the path generation module 110, and therefore, no further description is provided herein. Optionally, in this embodiment, the path generating module 110 includes a directed graph set generating unit 1100 and a path generating unit 1101.
The directed graph set generating unit 1100 is configured to generate a directed graph set including all transaction information according to all transaction information related to the atomic transaction; in this embodiment, the description of the directed graph set generating unit 1100 may specifically refer to the detailed description of the step S110, that is, the step S110 may be executed by the directed graph set generating unit 1100, and thus no further description is provided herein.
The path generating unit 1101 is configured to perform topology sorting based on each directed graph in the directed graph set, and use a topology sorting result as the transaction path to be tested. In this embodiment, the detailed description of the step S111 may be referred to for the description of the path generating unit 1101, that is, the step S111 may be executed by the path generating unit 1101, and thus no further description is provided herein.
The conflict judgment module 120 is configured to invoke a preset transaction path corresponding to the atomic transaction from the transaction registry, and compare the transaction path to be tested with the preset transaction path to judge whether a conflict exists between the preset transaction path and the transaction path to be tested; in this embodiment, the detailed description of the step S12 may be referred to for the description of the collision determination module 120, that is, the step S12 may be executed by the collision determination module 120, and therefore, no further description is provided herein.
The information updating module 130 is configured to update the preset transaction path in the transaction registry according to a conflict type corresponding to a conflict when the conflict exists. In this embodiment, the detailed description of the step S13 may be referred to for the description of the information updating module 130, that is, the step S13 may be executed by the information updating module 130, and thus, will not be further described herein. Optionally, the information updating module 130 includes a path updating unit 1300, a node extracting unit 1301, a page feedback unit 1302, and a node updating unit 1303
The path updating unit 1300 is configured to, when the conflict type is a path information conflict and the path scale of the transaction path to be tested is greater than the path scale of the preset transaction path, perform amplification and update on the preset transaction path according to the path scale of the transaction path to be tested.
The node extracting unit 1301 is configured to extract a conflict node where a conflict exists and conflict information corresponding to the conflict node when the conflict type includes a path node information conflict; in this embodiment, the description of the node extracting unit 1301 may specifically refer to the detailed description of the step S130, that is, the step S130 may be executed by the node extracting unit 1301, and therefore, no further description is provided herein.
The page feedback unit 1302 is configured to generate an information confirmation page according to the conflict node and the conflict information corresponding to the conflict node, and feed back the information confirmation page; in this embodiment, the description of the page feedback unit 1302 may specifically refer to the detailed description of the step S131, that is, the step S131 may be executed by the page feedback unit 1302, and therefore, no further description is provided herein.
The node updating unit 1303 is configured to respond to conflict confirmation information input by the user based on the information confirmation page, and update the preset transaction path according to the conflict confirmation information when the conflict confirmation information does not match node information of a preset conflict node in the transaction registry. In this embodiment, the detailed description of the step S132 may be referred to for the description of the node updating unit 1303, that is, the step S132 may be executed by the node updating unit 1303, and therefore, no further description is provided herein.
In summary, embodiments of the present invention provide a transaction conflict detection method and apparatus, wherein, based on the design idea of a micro-service architecture, each atomic transaction is regarded as a micro-service to be registered and managed in the transaction registration center 10, so that when performing transaction conflict detection, a full-coverage test of a transaction path can be quickly and conveniently implemented, and meanwhile, seamless connection between transaction change and test is ensured, and transaction test efficiency is effectively improved.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only an alternative embodiment of the present invention and is not intended to limit the present invention, and various modifications and variations of the present invention may occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (6)

1. A transaction conflict detection method is applied to a transaction registration center, wherein a transaction registration table comprising preset transaction paths corresponding to atomic transactions is preset in the transaction registration center; the transaction conflict detection method is characterized by comprising the following steps:
aiming at an atomic transaction, acquiring all transaction information related to the atomic transaction according to a preset time interval, and generating a transaction path to be tested according to all transaction information;
calling a preset transaction path corresponding to the atomic transaction from the transaction registry, and comparing the transaction path to be tested with the preset transaction path;
judging whether a conflict exists between the preset transaction path and the transaction path to be tested according to the comparison result, and if so, updating the preset transaction path in the transaction registry according to a conflict type corresponding to the conflict;
wherein, the step of updating the preset transaction path in the transaction registry according to the conflict type corresponding to the conflict comprises:
when the conflict type is a path information conflict and the path scale of the transaction path to be tested is larger than that of the preset transaction path, amplifying and updating the preset transaction path according to the path scale of the transaction path to be tested;
when the conflict type comprises a path node information conflict, extracting conflict nodes with conflicts and conflict information corresponding to the conflict nodes; generating an information confirmation page according to the conflict node and conflict information corresponding to the conflict node and feeding back the information confirmation page; and responding conflict confirmation information input by the user based on the information confirmation page, and updating the preset transaction path according to the conflict confirmation information when the conflict confirmation information is inconsistent with the node information of the preset conflict node in the transaction registry.
2. The transaction conflict detection method of claim 1, wherein the step of generating the transaction path to be tested according to the total transaction information comprises:
generating a directed graph set comprising all transaction information according to all transaction information related to the atomic transaction;
and carrying out topological sorting on the basis of each directed graph in the directed graph set, and taking a topological sorting result as the transaction path to be tested.
3. The transaction conflict detection method according to any of claims 1-2, characterized in that the method further comprises:
for each atomic transaction, configuring a transaction identifier corresponding to the atomic transaction;
configuring an atomic transaction table corresponding to the atomic transaction according to the atomic transaction, the transaction identification and the transaction attribute information; and
and configuring a transaction registry comprising a preset transaction path according to the atomic transaction, the transaction identification and the upstream and downstream transaction information corresponding to the atomic transaction.
4. The transaction conflict detection method of claim 3, wherein the step of invoking the preset transaction path corresponding to the atomic transaction from the transaction registry comprises:
and calling a corresponding preset transaction path according to the transaction identifier corresponding to the atomic transaction.
5. A transaction conflict detection device is applied to a transaction registration center, wherein a transaction registration table comprising preset transaction paths corresponding to atomic transactions is preset in the transaction registration center; characterized in that said transaction conflict detection means comprises:
the path generation module is used for acquiring all transaction information related to an atomic transaction according to a preset time interval aiming at the atomic transaction and generating a transaction path to be tested according to the all transaction information;
the conflict judging module is used for calling a preset transaction path corresponding to the atomic transaction from the transaction registry and comparing the transaction path to be tested with the preset transaction path so as to judge whether a conflict exists between the preset transaction path and the transaction path to be tested;
the information updating module is used for updating a preset transaction path in the transaction registry according to a conflict type corresponding to a conflict when the conflict exists;
the conflict type comprises a path information conflict; the information updating module comprises:
the path updating unit is used for amplifying and updating the preset transaction path according to the path scale of the transaction path to be tested when the conflict type is a path information conflict and the path scale of the transaction path to be tested is larger than the path scale of the preset transaction path;
the conflict type comprises a path node information conflict; the information update module further comprises:
the node extraction unit is used for extracting conflict nodes with conflicts and conflict information corresponding to the conflict nodes when the conflict types comprise path node information conflicts;
the page feedback unit is used for generating an information confirmation page according to the conflict node and conflict information corresponding to the conflict node and feeding back the information confirmation page;
and the node updating unit is used for responding to conflict confirmation information input by the user based on the information confirmation page and updating the preset transaction path according to the conflict confirmation information when the conflict confirmation information is inconsistent with the preset node information of the conflict node in the transaction registry.
6. The transaction conflict detection apparatus of claim 5, wherein the path generation module comprises:
the directed graph set generating unit is used for generating a directed graph set comprising all transaction information according to all transaction information related to the atomic transaction;
and the path generating unit is used for carrying out topological sorting on the basis of each directed graph in the directed graph set and taking a topological sorting result as the transaction path to be tested.
CN201910055215.6A 2019-01-21 2019-01-21 Transaction conflict detection method and device Active CN109885485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910055215.6A CN109885485B (en) 2019-01-21 2019-01-21 Transaction conflict detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910055215.6A CN109885485B (en) 2019-01-21 2019-01-21 Transaction conflict detection method and device

Publications (2)

Publication Number Publication Date
CN109885485A CN109885485A (en) 2019-06-14
CN109885485B true CN109885485B (en) 2022-08-05

Family

ID=66926460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910055215.6A Active CN109885485B (en) 2019-01-21 2019-01-21 Transaction conflict detection method and device

Country Status (1)

Country Link
CN (1) CN109885485B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110380936B (en) * 2019-07-23 2021-05-14 中国工商银行股份有限公司 Test method and device
CN112651738A (en) * 2019-10-12 2021-04-13 富士通株式会社 Information processing apparatus, information processing method, and computer program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103714456A (en) * 2014-01-06 2014-04-09 同济大学 Software behavior monitor and verification system
CN103838811A (en) * 2012-11-20 2014-06-04 Sap股份公司 Circular transaction path detection
CN106875167A (en) * 2016-08-18 2017-06-20 阿里巴巴集团控股有限公司 The detection method and device in funds transaction path in electronic payment process
CN107528745A (en) * 2016-06-22 2017-12-29 中兴通讯股份有限公司 A kind of service path diagnostic method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150178725A1 (en) * 2013-12-23 2015-06-25 Nicholas Poetsch Transaction authorization control and account linking involving multiple and singular accounts or users

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838811A (en) * 2012-11-20 2014-06-04 Sap股份公司 Circular transaction path detection
CN103714456A (en) * 2014-01-06 2014-04-09 同济大学 Software behavior monitor and verification system
CN107528745A (en) * 2016-06-22 2017-12-29 中兴通讯股份有限公司 A kind of service path diagnostic method and device
CN106875167A (en) * 2016-08-18 2017-06-20 阿里巴巴集团控股有限公司 The detection method and device in funds transaction path in electronic payment process

Also Published As

Publication number Publication date
CN109885485A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN107784552B (en) Information push task execution method and device, computer equipment and storage medium
EP3476092B1 (en) Automation of image validation
CN107633016B (en) Data processing method and device and electronic equipment
US8909562B2 (en) Markov modeling of service usage patterns
CN109885485B (en) Transaction conflict detection method and device
CN109783356A (en) A kind of automated testing method and terminal
CN111885051B (en) Data verification method and device and electronic equipment
CN108073707B (en) Financial business data updating method and device and computer readable storage medium
CN111612085A (en) Method and device for detecting abnormal point in peer-to-peer group
CN114331698A (en) Risk portrait generation method and device, terminal and storage medium
CN108804889B (en) Website registration method and device
CN108429636B (en) Method and device for positioning abnormal system and electronic equipment
CN115439247A (en) Transaction data processing method and device
CN107578250B (en) Two-dimensional code anti-counterfeiting method and system
CN115826997A (en) Version release method and device, electronic equipment and storage medium
CN109726550A (en) Abnormal operation behavioral value method, apparatus and computer readable storage medium
CN112860722A (en) Data checking method and device, electronic equipment and readable storage medium
CN113256366A (en) Order data processing method and system based on big data and cloud computing
CN112612674A (en) Method, device, equipment and computer readable storage medium for monitoring buried point data
Abbas et al. From Good Ideas to Practical Solutions: The Changing Nature of Participation in Our Evolving Digital Landscape [Guest Editorial]
CN112070500B (en) Block chain payment processing method based on digital financial service and cloud computing center
AU2023100036A4 (en) A system for digital receipts enrolment and issuance
CN113497784B (en) Method, apparatus and computer readable storage medium for detecting intelligence data
CN110597967B (en) Order positioning method and equipment
CN117290360A (en) Data processing method, device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant