Test method and system for distributed system, electronic equipment and storage medium

A technology of distributed systems and testing methods, which is applied in the field of financial technology, can solve problems such as the reduction of test accuracy, achieve the effects of improving accuracy, solving test problems, and improving test efficiency

Pending Publication Date: 2022-03-25
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Embodiments of the present invention provide a testing method and system, electronic equipment, and storage media for distributed systems, so as to at least solve the network service environment in which the compensation operation of the simulated sub-transaction is completed earlier than the forward operation in the related art, thereby Technical issues that reduce test accuracy

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Test method and system for distributed system, electronic equipment and storage medium
  • Test method and system for distributed system, electronic equipment and storage medium
  • Test method and system for distributed system, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] According to an embodiment of the present invention, an embodiment of a security guarantee method for a financial account is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions , and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0042] figure 1 is a flow chart of an optional testing method for a distributed system according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:

[0043] Step S101, initiate transaction service.

[0044] Step S102, divert the transaction service to the network service environment corresponding to the distributed exception simulator.

[0045] Step S103, inject at least one preset fault into the network service environment, co...

Embodiment 2

[0066] figure 2 is a schematic diagram of an optional test system for a distributed system according to an embodiment of the present invention, such as figure 2 As shown, the test system at least includes: a transaction terminal device, a gateway device, a first-class server group and a distributed abnormal simulator, wherein the transaction terminal device is used to initiate a transaction service, and send the transaction service to the first A first-class server, the first-class server group contains multiple first-class servers; the first-class server guides transaction services to the network service environment corresponding to the distributed abnormal simulator; the distributed abnormal simulator injects at least A preset fault is sent to the network service environment, and the compensation operation of the sub-transaction is completed earlier than the forward operation, and the empty rollback test operation is realized. The sub-transaction refers to the distributed ...

Embodiment 3

[0100] Figure 9 It is a flow chart of the test system operation of an optional simulated empty rollback test scenario according to an embodiment of the present invention, such as Figure 9 As shown, the method includes the following steps:

[0101] Step S100: Push the service list with special tags to the registration center when the distributed exception simulator starts.

[0102] Step S200: The registration center pushes the service list to the consumer server group.

[0103] Step S300: The consumer server group locally caches the service list.

[0104] Step S400: The configuration center configures service parameters that require empty rollback tests, and the configuration center pushes the parameters to the consumer server group in real time.

[0105] Step S500: Inject faults into the fault injection module in the distributed exception simulator.

[0106] Step S600: The transaction terminal device initiates a transaction.

[0107] Step S700: The transaction reaches t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a test method and system for a distributed system, electronic equipment and a storage medium, and relates to the field of financial science and technology, and the test method comprises the steps: initiating a transaction service, guiding the transaction service to a network service environment corresponding to a distributed anomaly simulator, injecting at least one preset fault to the network service environment, and transmitting the preset fault to the distributed anomaly simulator. The compensation operation of the sub-transaction is completed earlier than the forward operation, null rollback test operation is achieved, the sub-transaction refers to a certain sub-transaction in a distributed long transaction chain corresponding to a preset compensation mode used by the distributed system, and the compensation operation refers to operation triggered by transaction service abnormity caused by faults. The technical problem that the test accuracy is reduced due to the fact that the network service environment in which the compensation operation of the sub-transactions is earlier than the forward operation cannot be simulated in the related technology is solved.

Description

technical field [0001] The present invention relates to the field of financial technology, in particular to a test method and system for distributed systems, electronic equipment and storage media. Background technique [0002] For a business system composed of multiple applications (for example, a financial business system), it is characterized by complex systems, long transaction links, large transaction volumes, and frequent interactions between applications. Based on business needs, the system may be required to support 7*24 hours of customer service. Transactions run between multiple systems, each application system runs independently, and interacts with each other in a certain order. However, due to network congestion, network jitter, abnormal database link, abnormal CPU usage, or disk failure, etc., the transaction may fail or time out, triggering the compensation (reverse) operation, if the compensation (reverse) operation runs synchronously with the forward operatio...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/22G06F11/26
CPCG06F11/2273G06F11/261G06F11/2236G06F11/2205
Inventor 王晓力周新衡翁少丽刘学明
Owner INDUSTRIAL AND COMMERCIAL BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products