CN116385001B - Transaction log playback method and device, electronic equipment and storage medium - Google Patents

Transaction log playback method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116385001B
CN116385001B CN202310666747.XA CN202310666747A CN116385001B CN 116385001 B CN116385001 B CN 116385001B CN 202310666747 A CN202310666747 A CN 202310666747A CN 116385001 B CN116385001 B CN 116385001B
Authority
CN
China
Prior art keywords
historical transaction
transaction log
historical
target
playback
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
CN202310666747.XA
Other languages
Chinese (zh)
Other versions
CN116385001A (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.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202310666747.XA priority Critical patent/CN116385001B/en
Publication of CN116385001A publication Critical patent/CN116385001A/en
Application granted granted Critical
Publication of CN116385001B publication Critical patent/CN116385001B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure provides a transaction log playback method, a device, electronic equipment and a storage medium, and relates to the technical fields of information technology and finance, wherein the method comprises the following steps: acquiring a candidate operation node set; acquiring a first historical transaction log set, determining a first historical transaction log based on the first historical transaction log set, and first historical transaction information; acquiring a target operation node set from the candidate operation node set, and constructing a target playback flow based on the target operation node set; and based on the first historical transaction information, acquiring node operation instructions of each first historical transaction log, and executing a target playback flow based on the node operation instructions so as to play back each first historical transaction log in the first historical transaction log set. The historical transaction log sets are processed to determine each transaction log, and the candidate operation node sets are obtained through processing, so that playback of multiple service flows can be realized, the playback cost of the service flows is reduced, and the practicability is high.

Description

Transaction log playback method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the field of information technology and financial technology, and in particular relates to a transaction log playback method, a transaction log playback device, electronic equipment and a storage medium.
Background
For a flow test scene of a banking system, branches are multiple, flows are long, a large number of transactions are involved, the test requirement of the long flows is difficult to meet only by single-interface test, and the automated test of the flow interfaces of multiple transactions in series is required. In addition, since the process type scene has many branches, it is difficult for the tester to comprehensively and effectively cover all branch scenes in the regression test process, so that the help of the automatic playback tool needs to be sought: however, the traditional method only plays back a single transaction message, and cannot play back the single transaction message completely and truly according to the test flow, and the playback application is limited to single transaction test.
Disclosure of Invention
The present disclosure aims to solve, at least to some extent, one of the technical problems in the related art.
To this end, an object of the present disclosure is to propose a transaction log playback method.
A second object of the present disclosure is to propose a transaction log playback device.
A third object of the present disclosure is to propose an electronic device.
A fourth object of the present disclosure is to propose a non-transitory computer readable storage medium.
A fifth object of the present disclosure is to propose a computer programme product.
To achieve the above object, an embodiment of a first aspect of the present disclosure provides a transaction log playback method, including: acquiring a candidate operation node set in a transaction log playback system; acquiring a candidate operation node set in a transaction log playback system; acquiring a first historical transaction log set to be replayed, determining at least one first historical transaction log based on the first historical transaction log set, and first historical transaction information of the first historical transaction log; acquiring a target operation node set of each first historical transaction log from the candidate operation node set, and constructing a target playback flow of each first historical transaction log based on the target operation node set; and acquiring node operation instructions of each first historical transaction log based on the first historical transaction information, and executing the target playback flow based on the node operation instructions so as to play back each first historical transaction log in the first historical transaction log set.
According to one embodiment of the present disclosure, the acquiring a candidate set of operation nodes in a transaction log playback system includes: acquiring second historical transaction information of each second historical transaction log in the second historical transaction log set; clustering all second historical transaction information to obtain third historical transaction information in various clusters obtained after clustering; acquiring a first operation sequence of third historical transaction information in various clusters and a second operation sequence of each initial operation node in an initial operation node set in the transaction log playback system; and according to the first operation sequence and the second operation sequence, associating third historical transaction information in various clusters with each initial operation node in the initial operation node set to obtain the candidate operation node set after association.
According to one embodiment of the present disclosure, the clustering the entire second historical transaction information to obtain third historical transaction information in each cluster obtained after clustering includes: acquiring a preset transaction time interval and a preset transaction type; and clustering all the second historical transaction information according to the transaction time interval, and/or clustering all the second historical transaction information according to the transaction type to obtain third historical transaction information in various clusters obtained after clustering.
According to one embodiment of the disclosure, the obtaining the target operation node set of each first historical transaction log from the candidate operation node set includes: acquiring fourth historical transaction information matched with the first historical transaction information of each first historical transaction log in third historical transaction information under each candidate operation node in the candidate operation node set; and acquiring the target operation node set of each first historical transaction log according to the candidate operation nodes of each fourth historical transaction message.
According to one embodiment of the disclosure, the constructing, based on the target operation node set, a target playback flow of each first historical transaction log includes: acquiring a second operation sequence of fourth historical transaction information under each target operation node in the target operation node set; and according to the second operation sequence, connecting all the target operation nodes in the target operation node set in series to obtain target playback flows of all the first historical transaction logs.
According to one embodiment of the disclosure, the obtaining node operation instructions of each first historical transaction log based on the first historical transaction information, and executing the target playback flow based on the node operation instructions to play back each first historical transaction log in the first historical transaction log set includes: analyzing the transaction message in the first historical transaction information to obtain the flow dynamic parameters in the transaction message; and generating node operation instructions of each first historical transaction log according to the flow dynamic parameters. Executing node operation instructions of all target operation nodes in the target operation node set according to the second operation sequence so as to execute target playback flows of all first historical transaction logs in the first historical transaction log set; and playing back each first historical transaction log in the first historical transaction log set based on the execution of the target playback flow.
According to one embodiment of the present disclosure, the flow dynamic parameters include at least one of a user name, a historical service identification, a historical operation timestamp, and a historical operation serial number.
To achieve the above object, a second aspect of the present disclosure provides a transaction log playback device, including: the first acquisition module is used for acquiring a candidate operation node set in the transaction log playback system; the second acquisition module is used for acquiring a first historical transaction log set to be replayed, and acquiring a target operation node set of each first historical transaction log from the candidate operation node set according to first historical transaction information in each first historical transaction log in the first historical transaction log set; the construction module is used for constructing a target playback flow of each first historical transaction log based on the target operation node set; and the playback module is used for acquiring node operation instructions of each first historical transaction log based on the first historical transaction information, and executing the target playback flow based on the node operation instructions so as to play back each first historical transaction log in the first historical transaction log set.
To achieve the above object, an embodiment of a third aspect of the present disclosure provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to implement a transaction log playback method according to an embodiment of the first aspect of the present disclosure.
To achieve the above object, a fourth aspect embodiment of the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions for implementing a transaction log playback method according to an embodiment of the first aspect of the present disclosure.
To achieve the above object, an embodiment of a fifth aspect of the present disclosure proposes a computer program product comprising a computer program for implementing a transaction log playback method according to an embodiment of the first aspect of the present disclosure when being executed by a processor.
The historical transaction log sets are processed to determine each transaction log, and the candidate operation node sets are obtained through processing, so that playback of multiple service flows can be realized, the playback cost of the service flows is reduced, and the practicability is high.
Drawings
FIG. 1 is a schematic diagram of a transaction log playback method of one embodiment of the present disclosure;
FIG. 2 is a schematic diagram of another transaction log playback method of one embodiment of the present disclosure;
FIG. 3 is a schematic diagram of another transaction log playback method of an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another transaction log playback method of one embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a transaction log playback device of one embodiment of the present disclosure;
fig. 6 is a schematic diagram of an electronic device according to one embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present disclosure and are not to be construed as limiting the present disclosure.
Fig. 1 is a schematic diagram of an exemplary embodiment of a transaction log playback method according to the present disclosure, as shown in fig. 1, the transaction log playback method includes the following steps:
s101, acquiring a candidate operation node set in a transaction log playback system.
It should be noted that, the operation node is the smallest operation unit in the transaction flow, and one transaction flow may include one operation node, or may include a plurality of transaction nodes, which may be specific according to the actual situation. For example, in the flow of approval reporting, the operation node may be a department manager confirmation node, a responsible person confirmation node, or the like.
The transaction log playback method of the embodiment of the application can be applied to a scene of bank transaction log playback, and an execution subject of the transaction log playback method of the embodiment of the application can be the transaction log playback device of the embodiment of the application, and the transaction log playback device can be arranged on electronic equipment.
It should be noted that the transaction log playback system is a system that needs to perform transaction log playback, and the system may be various, and is not limited herein, and the transaction log playback system may be, for example, a deposit card transaction log system of a bank, a credit card transaction log system, or the like.
In the embodiment of the present disclosure, the candidate operation node set is all operation node sets in the transaction log, and the operation nodes in the sets are operation nodes in a period of time, or may be all operation nodes in a history, which is not limited in any way.
The candidate operations and the operation nodes in the node set may have priority levels, or may be equal operation nodes, which is not limited in any way. The step with higher priority may be a step of operation to be executed preferentially as compared with the step with lower priority.
S102, acquiring a first historical transaction log set to be played back, determining at least one first historical transaction log based on the first historical transaction log set, and first historical transaction information of the first historical transaction log.
In the embodiment of the present disclosure, the first historical transaction log set is a set of transaction logs that need to be played back currently, where the transaction log set may include a plurality of first historical transaction logs, or may include only one first historical transaction log, which is not limited herein, and may be specific according to actual situations.
In the embodiment of the present disclosure, the first historical transaction log set obtaining method may be various, which is not limited herein.
Alternatively, the first set of historical transaction logs may be manually entered.
Optionally, the first historical transaction log set may be acquired from the transaction log playback system by setting an acquisition condition. The collection condition may be various, and is not limited in any way, and for example, the collection condition may be a transaction log within a specific time period.
In an implementation, the first historical transaction log set may be a mixed log set, and the plurality of historical transaction logs are obtained from the historical transaction log set, and may be distinguished and obtained based on historical transaction information of the logs.
It should be noted that the first historical transaction information may include specific information of the first historical transaction log different from other first historical transaction logs, and the specific information may be various, for example, serial numbers, account numbers, transaction times, and the like.
S103, acquiring a target operation node set of each first historical transaction log from the candidate operation node set, and constructing a target playback flow of each first historical transaction log based on the target operation node set.
In the embodiment of the present disclosure, after the target operation node set is obtained, the target playback flow of each first historical transaction log may be constructed by processing the candidate operation nodes in the target operation node set. In this way, a set of target operational nodes adapted to each first historical transaction log may be obtained.
The treatment method may be various, and is not limited in any way herein.
Alternatively, the order of each candidate operation node in the target playback flow may be determined based on the order of the time stamps of each candidate operation node, so as to construct a corresponding target playback flow.
Optionally, the candidate operation nodes can be matched into the existing playback flow by comparing the historical target playback flow, so as to construct a corresponding target playback flow.
S104, based on the first historical transaction information, acquiring node operation instructions of each first historical transaction log, and executing a target playback flow based on the node operation instructions so as to play back each first historical transaction log in the first historical transaction log set.
In the embodiment of the disclosure, a candidate operation node set in a transaction log playback system is firstly obtained, then a first historical transaction log set to be played back is obtained, a target operation node set of each first historical transaction log is obtained from the candidate operation node set according to first historical transaction information in each first historical transaction log in the first historical transaction log set, then a target playback flow of each first historical transaction log is constructed based on the target operation node set, finally node operation instructions of each first historical transaction log are obtained based on the first historical transaction information, and the target playback flow is executed based on the node operation instructions so as to play back each first historical transaction log in the first historical transaction log set. Therefore, the historical transaction log sets are processed to determine each transaction log, and the candidate operation node sets are obtained, so that the playback of the multi-service process can be realized, the playback cost of the service process is reduced, and the practicability is high.
In the above embodiment, the method for obtaining the candidate operation node set in the transaction log playback system may be further explained by fig. 2, and includes:
s201, second historical transaction information of each second historical transaction log in the second historical transaction log set is obtained.
In an embodiment of the present disclosure, the second set of transaction logs is a set in which second historical transaction logs are stored. The second historical transaction log is a set of historical transaction logs which are not currently required to be confirmed in the system, and the second historical transaction log set can be the historical transaction log in the past period of time or the historical transaction log in all the past period of time, and is not limited at all, and can be specifically limited according to actual design requirements.
S202, clustering all the second historical transaction information to obtain third historical transaction information in various clusters obtained after clustering.
In the embodiment of the disclosure, all the second historical transaction information is clustered, and a plurality of clusters can be obtained. It should be noted that the clustering rule may be various, for example, clustering may be performed based on information such as operation time of the operation node, operator, and pipeline sign.
As a possible implementation manner, a preset transaction time interval and a transaction type may be first obtained, then all second historical transaction information is clustered according to the transaction time interval, and/or all second historical transaction information is clustered according to the transaction type, so as to obtain third historical transaction information in various clusters obtained after clustering. Therefore, the second historical transaction information can be clustered more conveniently through the unique information of the transaction time interval and the transaction type, and the clustering effect and the subsequent clustering processing effect are improved.
S203, acquiring a first operation sequence of third historical transaction information in various clusters, and determining a candidate operation node set according to the first operation sequence and the third historical transaction information in various clusters.
In the embodiments of the present disclosure, the method for obtaining the first operation sequence may be various in the embodiments of the present disclosure, and is not limited herein.
Alternatively, the first order of operation may be determined by the chronological order of the operating nodes.
Alternatively, different operation nodes may be provided with different running water numbers, and the first operation order may be determined based on the running water numbers.
Optionally, the judgment can be performed through a similar transaction such as "to-do list query", and because in each approval node, an operator needs to first query a to-do task on the system and then can process the to-do task, when the transaction appears in the log, the transaction is considered as a different node, so that an abstract node separator is generated, and finally, the transaction appearing in the same separation interval is judged to be the same node transaction.
Alternatively, a combination of two or a combination of all three judgment conditions may be used.
In the embodiment of the disclosure, the candidate operation node set may be multiple, which is a set of operation nodes of different transaction flows.
In the embodiment of the disclosure, first second historical transaction information of each second historical transaction log in the second historical transaction log set is acquired, then all the second historical transaction information is clustered, third historical transaction information in various clusters obtained after clustering is acquired, finally a first operation sequence of the third historical transaction information in various clusters is acquired, and a candidate operation node set is determined according to the first operation sequence and the third historical transaction information in various clusters. Therefore, irrelevant steps can be filtered out by clustering the second historical transaction information and screening the clustering result according to the first operation sequence and the third historical transaction information in various clusters, and a more accurate candidate operation node set is obtained.
In the above embodiment, the target operation node set of each first historical transaction log is obtained from the candidate operation node set, which may be further explained by fig. 3, and the method includes:
s301, fourth historical transaction information matched with the first historical transaction information of each first historical transaction log in the third historical transaction information of each candidate operation node in the candidate operation node set is obtained.
In the embodiment of the disclosure, in order to match the operation sequence of each operation node in the first historical transaction log, the third historical transaction information under each candidate operation node may be matched with the first historical transaction information of each first historical transaction log, and if the matching is successful, the third historical transaction information which is considered to be successful in matching is the fourth historical transaction information.
S302, acquiring a target operation node set of each first historical transaction log according to the candidate operation nodes of each fourth historical transaction information.
In the embodiment of the disclosure, first, fourth historical transaction information matched with first historical transaction information of each first historical transaction log in third historical transaction information under each candidate operation node in the candidate operation node set may be acquired, and then, a target operation node set of each first historical transaction log may be acquired according to the candidate operation node of each fourth historical transaction information. Therefore, the target operation node set of each first historical transaction log can be determined by clustering and matching based on the historical transaction information, and an accurate data basis is provided for the subsequent target playback flow of constructing each first historical transaction log.
In the embodiment of the disclosure, after the target operation node set is obtained, the target playback flow of each first historical transaction log is constructed based on the target operation node set, and the second operation sequence of the fourth historical transaction information under each target operation node in the target operation node set can be obtained first, and then each target operation node in the target operation node set is connected in series according to the second operation sequence, so as to obtain the target playback flow of each first historical transaction log. By acquiring the second operation sequence of the fourth historical transaction information under the target operation nodes, the operation sequence of each target operation node in the target operation node set can be determined, so that an accurate target playback flow can be acquired.
It should be noted that, the second operation order of the fourth historical transaction information is set in advance, or may be obtained based on node information of each operation node in the fourth historical transaction information, for example, the determination may be performed based on the operation time and the operation serial number of the operation node, which is not limited in any way.
In the above embodiment, based on the first historical transaction information, the node operation instruction of each first historical transaction log is obtained, and the target playback flow is executed based on the node operation instruction, so as to play back each first historical transaction log in the first historical transaction log set, and further explained by fig. 4, the method includes:
s401, analyzing the transaction message in the first historical transaction information to obtain the flow dynamic parameters in the transaction message.
In the embodiment of the disclosure, the flow dynamic parameter is a parameter that may vary in each transaction flow, and the flow dynamic parameter may be various, for example, an operation identity, an internet protocol address, an input amount, time, and the like.
S402, generating node operation instructions of each first historical transaction log according to the flow dynamic parameters.
It should be noted that, when the operation node corresponding to the flow dynamic parameter is executed, the node operation instruction may be called, so as to remind the user to input or obtain the flow dynamic parameter through the data in the calling program.
S403, executing node operation instructions of all target operation nodes in the target operation node set according to the second operation sequence so as to execute target playback flow of all first historical transaction logs in the first historical transaction log set.
S404, playing back each first historical transaction log in the first historical transaction log set based on the execution of the target playback flow.
In the embodiment of the disclosure, firstly, analyzing a transaction message in first historical transaction information, acquiring a flow dynamic parameter in the transaction message, then generating a node operation instruction of each first historical transaction log according to the flow dynamic parameter, then executing the node operation instruction of each target operation node in a target operation node set according to a second operation sequence to execute a target playback flow of each first historical transaction log in the first historical transaction log set, and finally playing back each first historical transaction log in the first historical transaction log set based on the execution of the target playback flow. Therefore, the node operation instruction is generated through the flow dynamic parameters, so that the target playback flow can be perfected, the target playback flow can input or acquire or process the flow dynamic parameters, and the normal operation of the target playback flow is ensured.
It should be noted that, the flow dynamic parameters include at least one of a user name, a historical service identifier, a historical operation timestamp and a historical operation serial number.
Corresponding to the transaction log playback methods provided in the above embodiments, an embodiment of the present disclosure further provides a transaction log playback device, and since the transaction log playback device provided in the embodiment of the present disclosure corresponds to the transaction log playback method provided in the above embodiments, implementation of the transaction log playback method described above is also applicable to the transaction log playback device provided in the embodiment of the present disclosure, and will not be described in detail in the following embodiments.
Fig. 5 is a schematic diagram of a transaction log playback device according to the present disclosure, as shown in fig. 5, the transaction log playback device 500 includes: the device comprises an acquisition module 510, a determination module 520, a construction module 530 and a playback module 540.
The obtaining module 510 is configured to obtain a candidate operation node set in the transaction log playback system.
A determining module 520 for obtaining a first set of historical transaction logs to be played back, determining at least one first historical transaction log based on the first set of historical transaction logs, and first historical transaction information of the first historical transaction log
The construction module 530 is configured to obtain a target operation node set of each first historical transaction log from the candidate operation node set, and construct a target playback flow of each first historical transaction log based on the target operation node set.
The playback module 540 is configured to obtain node operation instructions of each first historical transaction log based on the first historical transaction information, and execute a target playback flow based on the node operation instructions, so as to play back each first historical transaction log in the first historical transaction log set.
In one embodiment of the present disclosure, the obtaining module 510 is further configured to: acquiring second historical transaction information of each second historical transaction log in the second historical transaction log set; clustering all second historical transaction information to obtain third historical transaction information in various clusters obtained after clustering; and acquiring a first operation sequence of third historical transaction information in various clusters, and determining a candidate operation node set according to the first operation sequence and the third historical transaction information in various clusters.
In one embodiment of the present disclosure, the obtaining module 510 is further configured to: acquiring a preset transaction time interval and a preset transaction type; and clustering all the second historical transaction information according to the transaction time interval, and/or clustering all the second historical transaction information according to the transaction type to obtain third historical transaction information in various clusters obtained after clustering.
In one embodiment of the present disclosure, the construction module 530 is further configured to: acquiring fourth historical transaction information matched with the first historical transaction information of each first historical transaction log in third historical transaction information under each candidate operation node in the candidate operation node set; and acquiring a target operation node set of each first historical transaction log according to the candidate operation nodes of each fourth historical transaction information.
In one embodiment of the present disclosure, the construction module 530 is further configured to: acquiring a second operation sequence of fourth historical transaction information under each target operation node in the target operation node set; and according to the second operation sequence, connecting all the target operation nodes in the target operation node set in series to obtain the target playback flow of each first historical transaction log.
In one embodiment of the present disclosure, the playback module 540 is further configured to: analyzing a transaction message in the first historical transaction information to obtain a flow dynamic parameter in the transaction message; generating node operation instructions of each first historical transaction log according to the flow dynamic parameters; according to the second operation sequence, executing node operation instructions of all target operation nodes in the target operation node set so as to execute target playback flows of all first historical transaction logs in the first historical transaction log set; and playing back each first historical transaction log in the first historical transaction log set based on the execution of the target playback flow.
In one embodiment of the present disclosure, the flow dynamic parameters include at least one of a user name, a historical service identification, a historical operation timestamp, and a historical operation serial number.
The historical transaction log sets are processed to determine each transaction log, and the candidate operation node sets are obtained through processing, so that playback of multiple service flows can be realized, the playback cost of the service flows is reduced, and the practicability is high.
In order to implement the above embodiments, the embodiments of the present disclosure further provide an electronic device 600, as shown in fig. 6, where the electronic device 600 includes: the processor 601 is communicatively coupled to a memory 602, the memory 602 storing instructions executable by the at least one processor, the instructions being executable by the at least one processor 601 to implement a transaction log playback method as an embodiment of the first aspect of the present disclosure.
To achieve the above-described embodiments, the embodiments of the present disclosure also propose a non-transitory computer readable storage medium storing computer instructions for causing a computer to implement a transaction log playback method as the embodiments of the first aspect of the present disclosure.
To achieve the above embodiments, the embodiments of the present disclosure also propose a computer program product comprising a computer program which, when executed by a processor, implements a transaction log playback method as the embodiments of the first aspect of the present disclosure.
In the description of the present disclosure, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings are merely for convenience in describing the present disclosure and simplifying the description, and do not indicate or imply that the device or element being referred to must have a specific orientation, be configured and operated in a specific orientation, and therefore should not be construed as limiting the present disclosure.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present disclosure, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Although embodiments of the present disclosure have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.

Claims (9)

1. A transaction log playback method, the method comprising:
acquiring a candidate operation node set in a transaction log playback system;
acquiring a first historical transaction log set to be replayed, determining at least one first historical transaction log based on the first historical transaction log set, and first historical transaction information of the first historical transaction log;
acquiring a target operation node set of each first historical transaction log from the candidate operation node set, and constructing a target playback flow of each first historical transaction log based on the target operation node set;
analyzing the transaction message in the first historical transaction information to obtain the flow dynamic parameters in the transaction message;
generating node operation instructions of each first historical transaction log according to the flow dynamic parameters;
according to the second operation sequence, executing node operation instructions of all target operation nodes in the target operation node set so as to execute target playback flows of all first historical transaction logs in the first historical transaction log set;
and playing back each first historical transaction log in the first historical transaction log set based on the execution of the target playback flow.
2. The method of claim 1, wherein the obtaining a set of candidate operational nodes in a transaction log playback system comprises:
acquiring second historical transaction information of each second historical transaction log in the second historical transaction log set;
clustering all second historical transaction information to obtain third historical transaction information in various clusters obtained after clustering;
and acquiring a first operation sequence of third historical transaction information in various clusters, and determining the candidate operation node set according to the first operation sequence and the third historical transaction information in various clusters.
3. The method of claim 2, wherein clustering all the second historical transaction information to obtain third historical transaction information in each cluster obtained after clustering, comprises:
acquiring a preset transaction time interval and a preset transaction type;
and clustering all the second historical transaction information according to the transaction time interval, and/or clustering all the second historical transaction information according to the transaction type to obtain third historical transaction information in various clusters obtained after clustering.
4. The method of claim 2, wherein the obtaining the target set of operation nodes for each first historical transaction log from the set of candidate operation nodes comprises:
acquiring fourth historical transaction information matched with the first historical transaction information of each first historical transaction log in third historical transaction information under each candidate operation node in the candidate operation node set;
and acquiring the target operation node set of each first historical transaction log according to the candidate operation nodes of each fourth historical transaction message.
5. The method of claim 4, wherein constructing a target playback flow for each first historical transaction log based on the set of target operational nodes comprises:
acquiring a second operation sequence of fourth historical transaction information under each target operation node in the target operation node set;
and according to the second operation sequence, connecting all the target operation nodes in the target operation node set in series to obtain target playback flows of all the first historical transaction logs.
6. The method of claim 1, wherein the flow dynamics parameters include at least one of a user name, a historical business identification, a historical operation timestamp, and a historical operation flow number.
7. A transaction log playback device, comprising:
the acquisition module is used for acquiring a candidate operation node set in the transaction log playback system;
the system comprises a determining module, a recording module and a processing module, wherein the determining module is used for acquiring a first historical transaction log set to be replayed, determining at least one first historical transaction log based on the first historical transaction log set and first historical transaction information of the first historical transaction log;
the construction module is used for acquiring a target operation node set of each first historical transaction log from the candidate operation node set and constructing a target playback flow of each first historical transaction log based on the target operation node set;
the playback module is used for analyzing the transaction message in the first historical transaction information and acquiring the flow dynamic parameters in the transaction message; generating node operation instructions of each first historical transaction log according to the flow dynamic parameters; according to the second operation sequence, executing node operation instructions of all target operation nodes in the target operation node set so as to execute target playback flows of all first historical transaction logs in the first historical transaction log set; and playing back each first historical transaction log in the first historical transaction log set based on the execution of the target playback flow.
8. An electronic device, comprising a memory and a processor;
wherein the processor runs a program corresponding to executable program code stored in the memory by reading the executable program code for implementing the method according to any one of claims 1-6.
9. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-6.
CN202310666747.XA 2023-06-07 2023-06-07 Transaction log playback method and device, electronic equipment and storage medium Active CN116385001B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310666747.XA CN116385001B (en) 2023-06-07 2023-06-07 Transaction log playback method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310666747.XA CN116385001B (en) 2023-06-07 2023-06-07 Transaction log playback method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116385001A CN116385001A (en) 2023-07-04
CN116385001B true CN116385001B (en) 2023-08-22

Family

ID=86966061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310666747.XA Active CN116385001B (en) 2023-06-07 2023-06-07 Transaction log playback method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116385001B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119762A (en) * 2015-09-23 2015-12-02 普元信息技术股份有限公司 System and method of cloud platform for realizing transaction playback and transaction reworking based on logs
CN109101627A (en) * 2018-08-14 2018-12-28 交通银行股份有限公司 heterogeneous database synchronization method and device
CN110209734A (en) * 2019-05-05 2019-09-06 深圳市腾讯计算机系统有限公司 Data copy method, device, computer equipment and storage medium
CN110990363A (en) * 2019-11-29 2020-04-10 交通银行股份有限公司 Distributed database multithreading collaborative transaction log playback method and system
CN111611100A (en) * 2020-05-26 2020-09-01 中国工商银行股份有限公司 Transaction fault detection method, apparatus, computing device and medium
CN112256581A (en) * 2020-10-27 2021-01-22 华泰证券股份有限公司 Log playback test method and device for high-simulation securities trade system
CN114281784A (en) * 2021-12-22 2022-04-05 中国农业银行股份有限公司 Transaction log playback method, device, equipment and medium for distributed core system
CN114443603A (en) * 2022-01-29 2022-05-06 中国农业银行股份有限公司 Transaction log playback method and device, computer equipment and medium
CN115328876A (en) * 2022-08-17 2022-11-11 中国银行股份有限公司 Method and device for recording page operation log

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1729671A (en) * 2002-12-20 2006-02-01 松下电器产业株式会社 System and terminal equipment for collecting content history log and server equipment
US20040143661A1 (en) * 2003-01-14 2004-07-22 Akio Higashi Content history log collecting system
CA3074916A1 (en) * 2014-10-02 2016-04-07 Ecoatm, Llc Application for device evaluation and other processes associated with device recycling
US20170083013A1 (en) * 2015-09-23 2017-03-23 International Business Machines Corporation Conversion of a procedural process model to a hybrid process model
CN110377531B (en) * 2019-07-19 2021-08-10 清华大学 Persistent memory storage engine device based on log structure and control method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119762A (en) * 2015-09-23 2015-12-02 普元信息技术股份有限公司 System and method of cloud platform for realizing transaction playback and transaction reworking based on logs
CN109101627A (en) * 2018-08-14 2018-12-28 交通银行股份有限公司 heterogeneous database synchronization method and device
CN110209734A (en) * 2019-05-05 2019-09-06 深圳市腾讯计算机系统有限公司 Data copy method, device, computer equipment and storage medium
EP3968175A1 (en) * 2019-05-05 2022-03-16 Tencent Technology (Shenzhen) Company Limited Data replication method and apparatus, and computer device and storage medium
CN110990363A (en) * 2019-11-29 2020-04-10 交通银行股份有限公司 Distributed database multithreading collaborative transaction log playback method and system
CN111611100A (en) * 2020-05-26 2020-09-01 中国工商银行股份有限公司 Transaction fault detection method, apparatus, computing device and medium
CN112256581A (en) * 2020-10-27 2021-01-22 华泰证券股份有限公司 Log playback test method and device for high-simulation securities trade system
CN114281784A (en) * 2021-12-22 2022-04-05 中国农业银行股份有限公司 Transaction log playback method, device, equipment and medium for distributed core system
CN114443603A (en) * 2022-01-29 2022-05-06 中国农业银行股份有限公司 Transaction log playback method and device, computer equipment and medium
CN115328876A (en) * 2022-08-17 2022-11-11 中国银行股份有限公司 Method and device for recording page operation log

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"生产原型交易回放测试设计及实践";曾立环等;《中国金融电脑》;39-48 *

Also Published As

Publication number Publication date
CN116385001A (en) 2023-07-04

Similar Documents

Publication Publication Date Title
CN110033244B (en) Intelligent contract execution method and device based on block chain and electronic equipment
CN109166026B (en) Account checking method, account checking device, computer equipment and storage medium
CN110088744A (en) A kind of database maintenance method and its system
CN109460307A (en) Micro services a little, which are buried, based on log calls tracking and its system
CN107203464B (en) Method and device for positioning service problem
US9405531B2 (en) Methods for building application intelligence into event driven applications through usage learning, and systems supporting such applications
CN106980572B (en) Online debugging method and system for distributed system
CN114022151A (en) Block chain data visualization method and system, electronic device and storage medium
CN114116801A (en) Data list checking method and device
CN116385001B (en) Transaction log playback method and device, electronic equipment and storage medium
CN114281784A (en) Transaction log playback method, device, equipment and medium for distributed core system
CN116662351B (en) Bank data acquisition method and system
CN111405027B (en) Block chain consensus result screening method, device, computer equipment and storage medium
CN107423140B (en) Return code identification method and device
CN111125263A (en) Reservation request management method, reservation function entity and readable storage medium
CN115757107A (en) Embedded point detection method, device, server and storage medium
CN115061924A (en) Automatic test case generation method and generation device
CN106570004B (en) Data management method and device
CN113535772A (en) Merchant refund execution method and device
CN111143377B (en) Automatic driving simulation data collection method, device and system
CN113190458A (en) Method and device for automatically analyzing buried point data, computer equipment and storage medium
CN114819981A (en) Customer service problem processing method, device, equipment and storage medium
CN113360363A (en) Test method, device, equipment and computer storage medium for micro service system
CN112764888A (en) Distributed transaction checking and judging method and system based on log analysis
CN110866070A (en) Data processing method, device, processing equipment and system

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