CN110223173A - Trade link abnormality eliminating method and relevant device - Google Patents

Trade link abnormality eliminating method and relevant device Download PDF

Info

Publication number
CN110223173A
CN110223173A CN201910420339.XA CN201910420339A CN110223173A CN 110223173 A CN110223173 A CN 110223173A CN 201910420339 A CN201910420339 A CN 201910420339A CN 110223173 A CN110223173 A CN 110223173A
Authority
CN
China
Prior art keywords
transaction node
transaction
node
log
error code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910420339.XA
Other languages
Chinese (zh)
Inventor
王娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910420339.XA priority Critical patent/CN110223173A/en
Publication of CN110223173A publication Critical patent/CN110223173A/en
Priority to PCT/CN2019/121692 priority patent/WO2020233066A1/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

This application involves a kind of trade link abnormality eliminating method and relevant device, the method is applied to trade link, and trade link includes multiple transaction nodes;The described method includes: the first transaction node receives the recalls information that the second transaction node returns in the case where transaction calling exception occurs in trade link;First transaction node obtains the log information of each transaction node in N number of transaction node according to N number of error code;First transaction node according to the log information of each transaction node, determine the transaction of trade link call abnormal root because and cause root because target transaction node;First transaction node to target transaction node indicate root because, in order to target transaction node according to root because carry out link exception reparation.By implementing the trade link abnormality processing of the application, the location efficiency of the abnormal nodes in trade link can be improved.

Description

Trade link abnormality eliminating method and relevant device
Technical field
This application involves technical field of data processing more particularly to a kind of trade link abnormality eliminating method and correlation to set It is standby.
Background technique
In process of exchange, the completion of a usual transaction needs the completion that cooperates by multiple team, for example, when using When a kind of product is bought at family, which can be by way of order node, cashier node, account system node, payment channel section Point and bank node etc., and the above-mentioned node being related to is to be responsible for respectively by different R&D teams.When the transaction request is sent out When raw abnormal, since the node of transaction request approach is more, the positioning abnormal nodes inefficiency abnormal with processing.
Summary of the invention
The application proposes a kind of trade link Exception Handling Technique scheme, can improve determining for the abnormal nodes in trade link Position efficiency.
According to the application in a first aspect, providing a kind of trade link abnormality eliminating method, the method is applied to chain transaction Road, the trade link include multiple transaction nodes;The described method includes: transaction occur in trade link calls abnormal situation Under, the first transaction node receives the recalls information that the second transaction node returns;The recalls information includes the mistake of N number of transaction node Error code, the N are the integer greater than 0;First transaction node is top layer's transaction node of the trade link;Described Two transaction nodes are next transaction node of first transaction node;First transaction node according to N number of error code, Obtain the log information of each transaction node in N number of transaction node;First transaction node is according to each friendship The log information of easy node, determine the transaction of the trade link call abnormal root because and cause described because target friendship Easy node;First transaction node to the target transaction node indicate described because in order to the target transaction node According to the described reparation because carrying out link exception.
In some embodiments, the log information is standardized log information, the standardized log information symbol Log reference format is closed, first transaction node determines the chain transaction according to the log information of each transaction node The transaction on road call abnormal root because and cause described because target transaction node, specifically include: first transaction saves Point match the standardized log information according to regular expressions, determine described because first object position;Described first For transaction node according to the first object position, the transaction for extracting the trade link calls abnormal root because and according to described Root because determine cause described because target transaction node.
In some embodiments, first transaction node matches the standardized log letter according to regular expressions Breath, determine described because first object position, comprising: first transaction node is according to the regular expression matching Occurs each log section of error identification in standardized log information;The content of each log section is that the mistake occurs The reason of mark;First transaction node is according to log print time of each log section, when the log is printed Between earliest log section position, be determined as described because first object position.
In some embodiments, first transaction node matches the standardized log letter according to regular expressions Breath, determine described because first object position, comprising: first transaction node is according to the regular expression matching Occurs each log section of error identification in standardized log information;The content of each log section is that the mistake occurs The reason of mark;First transaction node is according to the log errorlevel of each log section, by described log mistake etc. The position of the highest log section of grade, be determined as described because first object position.
In some embodiments, the error code includes the mark of the transaction node, and first transaction node is according to N A error code obtains the log information of each transaction node in N number of transaction node, comprising: first transaction The mark for N number of transaction node that node includes according to N number of error code determines that transaction occur calls abnormal N number of friendship Easy node;First transaction node obtains log information relevant to N number of error code to N number of transaction node.
In some embodiments, in the case where transaction calling exception also occurs in the second transaction node, N number of transaction section The error code of point includes the error code of second transaction node and the error code of N-1 other transaction nodes.
In some embodiments, the error code data format having the same of N number of transaction node.
According to the application second aspect, a kind of trade link exception handling device is provided, described device is applied to chain transaction Road, the trade link include multiple transaction nodes;Described device includes: receiving unit, acquiring unit, determination unit, instruction Unit,
The receiving unit is used for, and in the case where transaction calling exception occurs in trade link, the first transaction node is received The recalls information that second transaction node returns;The recalls information includes the error code of N number of transaction node, and the N is greater than 0 Integer;Second transaction node is next transaction node of first transaction node;
The acquiring unit is used for, and first transaction node obtains N number of transaction section according to N number of error code The log information of each transaction node in point;
The determination unit is used for, and first transaction node is determined according to the log information of each transaction node The transaction of the trade link call abnormal root because and cause described because target transaction node;
The indicating unit is used for, first transaction node to the target transaction node indicate described because, so as to In the target transaction node according to the described reparation because carrying out link exception.
In some embodiments, the log information is standardized log information, the standardized log information symbol Log reference format is closed, the determination unit includes matching unit, and extraction unit, the matching unit is used for, according to canonical table Match the standardized log information up to formula, determine described because first object position;The extraction unit is used for, according to The first object position, the transaction for extracting the trade link call abnormal root because and according to described because determination causes Described because target transaction node.
In some embodiments, the matching unit is used for, the standardized day according to the regular expression matching Occurs each log section of error identification in will information;The content of each log section is that the original of the error identification occurs Cause;According to the log print time of each log section, by the position of the log print time earliest log section, Be determined as described because first object position.
In some embodiments, the matching unit is also used to, standardized according to the regular expression matching Occurs each log section of error identification in log information;The content of each log section is that the original of the error identification occurs Cause;According to the log errorlevel of each log section, by the position of the highest log section of the log errorlevel, Be determined as described because first object position.
In some embodiments, the error code includes the mark of the transaction node, and the acquiring unit is used for, according to The mark for N number of transaction node that N number of error code includes determines that transaction occur calls abnormal N number of transaction node;To N number of transaction node obtains log information relevant to N number of error code.
In some embodiments, in the case where transaction calling exception also occurs in the second transaction node, N number of transaction section The error code of point includes the error code of second transaction node and the error code of N-1 other transaction nodes.
In some embodiments, the error code data format having the same of N number of transaction node.
According to the application third aspect, a kind of electronic equipment is provided, which includes: processor;At storage Manage the memory of device executable instruction;Wherein, the processor is configured to the instruction of the memory storage is called, to described The calling of instruction is so that the method that the processor executes the application first aspect any embodiment.
According to the application fourth aspect, a kind of computer readable storage medium, the computer readable storage medium are provided It is stored with computer program, the computer program is executed by processor in the method for the application first aspect any embodiment.
By implementing above-mentioned trade link abnormality eliminating method, the first transaction node can be according to the recalls information of return In disposably obtain the error code of the transaction node being abnormal in link downstream, then obtain the relevant log of error code Information, by log information obtain transaction call abnormal root because, and by root because quickly orient cause root because target Transaction node, finally by root because being sent to target transaction node, in order to target transaction node according to root because being repaired, we Case does not need to carry out problem exclusion to each node one by one, and the first transaction node can be according to the corresponding log of each error code Information comprehensively, accurately diagnoses the root occurred extremely in trade link because improving and handing over extremely when being abnormal in trade link The efficiency of easy node locating and abnormality processing.
The additional aspect of the application and advantage will be set forth in part in the description, and will partially become from the following description It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to required use in embodiment description Attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present application, for this field For those of ordinary skill, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of trade link abnormality eliminating method schematic flow diagram provided by the embodiments of the present application;
Fig. 2 is the interaction schematic diagram of each node in trade link provided by the embodiments of the present application;
Fig. 3 is a kind of trade link exception handling device structural schematic diagram provided by the embodiments of the present application;
Fig. 4 is another trade link exception handling device structural schematic diagram provided by the embodiments of the present application;
Fig. 5 is a kind of electronic equipment structural schematic diagram provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall in the protection scope of this application.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
For the ease of following understanding, the application scenarios of the embodiment of the present application are described first.The transaction of the application Abnormality processing of the link abnormality eliminating method suitable for trade link, it is generally the case that a transaction processing need two with On transaction node, more than ten times even tens transaction calling could complete trade.Transaction between difference transaction node at present It calls, if there is exception, usually each transaction node returns to the particular error code of oneself definition, and each transaction node can only Perceive the exception of the downstream transaction node called directly.For example, the transaction request can be handed over successively by way of order when single under user Easy node, cashier transaction node, account system transaction node, payment channel transaction node and bank transaction node, In, account system transaction node can only perceive the exception of the payment channel transaction node called directly, but cannot perceive and pass through branch Pay the exception that channel transaction node removes the bank transaction node called indirectly.When transaction is abnormal, currently existing scheme at present, Need to carry out problem exclusion to the log information of each node one by one, when the node being related to is more, time for needing to check compared with Long, the speed that positioning is abnormal and processing is abnormal is slower.The transaction of more transaction nodes can be improved by implementing the embodiment of the present application The abnormal positioning of link and abnormality processing efficiency, are specifically shown in and are described below.
Referring to Figure 1, Fig. 1 is trade link abnormality eliminating method schematic flow diagram provided by the embodiments of the present application.
S101, trade link occur transaction call exception in the case where, the first transaction node receive the second transaction node The recalls information of return.
In some possible implementations, it is in the current transaction node to transaction message that the transaction, which is called abnormal, Processing do not meet default processing logic in the case where dish out, the transaction is called abnormal includes system calling exception and business Call the exception abnormal, wherein the abnormal hardware for transaction node of system calling breaks down or operating system breaks down, industry The abnormal exception that business demand generation is unsatisfactory for for calling is called in business.
In the embodiment of the present application, the first transaction node is top layer's transaction node in trade link, i.e., initiates earliest The transaction node of calling, the second transaction node are the next transaction nodes being connected with the first transaction node.Occur in trade link In the case that exception is called in transaction, the first transaction node receives the recalls information that the second transaction node returns, wherein recalls information Error code including N number of transaction node, the N are the integer greater than 0.Also there is transaction in the second transaction node and calls exception In the case of, the error code of N number of transaction node includes the error code of the second transaction node and the mistake of N-1 other transaction nodes Code.
It is illustrated below with Fig. 2, Fig. 2 is that the interaction of each node in trade link provided by the embodiments of the present application is shown It is intended to.Assuming that a trade link includes: transaction node A, transaction node B, transaction node C, transaction node D, transaction node E, Totally 5 transaction nodes, mutual transaction call relation include: that transaction node A calls transaction node B, transaction node B to call Transaction node C, transaction node C call transaction node D and transaction node E, transaction node D and transaction node E returning response to friendship Easy node C, transaction node C returning response give transaction node B, and transaction node B returning response gives transaction node A.In the application reality It applies in example, the transaction node can be the logical node according to logical function partition, be also possible to the object according to physical presence The physical node that service node divides is managed, the application is not specifically limited in this embodiment.
In some possible embodiments, it in recalls information may include: whether transaction calling business handles success, with It include wrong context in the recalls information and in the case where occurring trading calling processing exception, N number of transaction section The error code of point is recorded in wrong context.
It, can be with when the error code of N number of transaction node to be recorded in wrong context in some possible embodiments It is recorded, can also be recorded using error code queue mode using error code stacked manner, it can also be using other numbers It is recorded according to structure, the application is not specifically limited in this embodiment.
For example, as shown in Fig. 2, transaction node C is after the error code for generating transaction node C, if transaction node C is It include wrong context in the received recalls information fed back to transaction node E, and recorded friendship in the wrong context The error code of easy node E, then transaction node C can add the error code of transaction node C in wrong context, so that in mistake Hereinafter record the error code of transaction node C and the error code of transaction node E.
In addition, if receiving other transaction nodes when current transaction node generates the error code of current transaction node The recalls information of feedback does not include wrong context, then current transaction node can create wrong context and by this layer system Error code be recorded in newly-built wrong context.For example, transaction node E can be generated when occurring to trade calling exception The error code of transaction node E is recorded in wrong context simultaneously anti-by the error code of transaction node E, and newly-built wrong context Feed transaction node C.
By implementing the embodiment of above-mentioned trade link abnormality processing, on upper layer, transaction node can be according to the calling of return The error code that the transaction node being abnormal in trade link downstream is disposably obtained in information, can be quick according to error code Abnormal transaction node is navigated to, does not need to carry out problem exclusion to each node one by one, improves abnormal transaction node positioning Efficiency.
In the embodiment of the present application, the error code data format having the same that different transaction nodes generate, such as handing over The error code that easy node C generates transaction node C is identical with the data format for the error code for generating transaction node E in transaction node E. In some possible embodiments, the error code that different transaction nodes generate all uses TLV (Tag-Length-Value) data Format, TLV are Tag, the abbreviation of Length, Value, and a basic data element just includes three domains above.Tag unique identification The data element, Length are the length in the domain Value, and Value is exactly data itself.Be conducive to mistake using TLV data format The extension of digital content.Referring specifically to table 1, table 1 is an example of error code data format.
1 error code data format sample of table
Wherein, errorlevel can be divided into 4 different mistakes etc. in specific implementation by 1 to 5 expression errorlevel Grade, errorlevel is from low to high successively are as follows: INFO, WARN, ERROR, FATAL.Wherein the log information of INFO grade is for giving birth to Some important informations of output program operation in environment are produced, the log information of WARN grade is for alerting latent fault, ERROR etc. Although the log information of grade points out that error event occurs, but still does not influence continuing to run for system, the log letter of FATAL grade Breath has recorded grave error event, and the wrong time will lead to the collapse of application program.
6 to 11 expression transaction nodes numbers, transaction node number unique identification transaction node.In the specific implementation, A transaction node number is distributed for each transaction node in advance, it, can according to this mark with this transaction node of unique identification To be directly targeted to specific transaction node by an error code.In other implementations, transaction node number can be with It being indicated using the address (Internet Protocol) IP of the transaction node, the domain name that the transaction node also can be used indicates, The embodiment of the present application is not specifically limited transaction node number.
12 to 18 expression error codeds, the error coded are the error code of self-defining inside each transaction node, example Customized mistake as shown in table 2.
The customized mistake of table 2
Error code Error description
1000 Illegal required parameter
1001 User authentication failure
1002 Illegal authorization message
1003 Using being not authorized to
1004 Field is more than the range of definition
1005 Information is invalid or goes beyond the scope
1006 The update token of offer is out of date
1007 The mismatch that field and registration are filled in when applying
1008 Server refusal authorizes data access authority
It is to be appreciated that the example of above-mentioned error code data format is only an example, error code may include more More data contents, is also possible to other fixed formats in addition to TLV format, and the application does not limit this.The application Embodiment requires the data format of error code used in each layer of transaction node identical, it is intended that using identical Data format facilitates upstream transaction node and carries out at unified to the error code of each transaction node in trade link downstream Reason.
S102, first transaction node obtain each friendship in N number of transaction node according to N number of error code The log information of easy node.
In some embodiments, the error code includes the mark of the transaction node, first transaction node according to The mark for N number of transaction node that N number of error code includes determines that transaction occur calls abnormal N number of transaction node, Described in mark can be the domain name or Internet protocol address of the transaction node;First transaction node is to the N A transaction node obtains log information relevant with N number of error code, implements are as follows: first transaction node is to institute It states N number of transaction node and sends corresponding error code respectively, N number of transaction node receives corresponding mistake After code, according to corresponding error code query log information library, obtain relevant to corresponding error code Then log information relevant to the corresponding error code is sent to first transaction node by log information.
S103, first transaction node determine the trade link according to the log information of each transaction node Transaction call abnormal root because and cause described because target transaction node.
In some embodiments, the log information is standardized log information, the standardized log information symbol Log reference format is closed, step 103 can be accomplished in that first transaction node matches according to regular expressions The standardized log information, determine described because first object position;First transaction node is according to described first Target position, extract the trade link transaction call abnormal root because, and according to described because determine cause described because Target transaction node.In the present solution, the log information of the first transaction node matching criteria according to regular expressions, determines root The first object position of cause, the application provide two kinds of implementations, referring specifically to being described below.
First, there is each of error identification in the log information of matching criteria according to regular expressions in the first transaction node A log section;Wherein, the content of each log section is the reason of the error identification occurs;First transaction node is according to each day The log print time of will section, by the position of log print time earliest log section, be determined as described because first Target position.The regular expression is usually used to the text that retrieval meets some mode (rule), used here as canonical table The log section with error identification is retrieved up to formula, wherein error identification can be INFO, WARN, ERROR, and FATAL etc. is being obtained To after each log section with error identification, then according to the log print time of each log section, can obtain root because of position, I.e. using log print time earliest log section as described because position.Wherein according to the log print time determine root because Position be suitable for only a link trade link.
Second, the first transaction node, which is matched according to regular expressions in the standardized log information, there is error identification Each log section;The content of each log section is the reason of the error identification occurs;First transaction node is according to each day The log errorlevel of will section, by the position of the highest log section of log errorlevel, be determined as described because first Target position.The regular expression is usually used to the text that retrieval meets some mode (rule), used here as canonical table The log section with error identification is retrieved up to formula, wherein error identification can be INFO, WARN, ERROR, and FATAL etc. is being obtained To after each log section with error identification, then according to the log errorlevel of each log section, can obtain root because of position, I.e. using the highest log section of log errorlevel as described because position.The root wherein determined according to log errorlevel The position of cause is suitable for the trade link of multiple-limb link.
S104, first transaction node to the target transaction node indicate described because, in order to the target friendship Easy node is according to the described reparation because carrying out link exception.
For example, transaction node B passes through error code only when null pointer exception occurs for the transaction node B in the trade link of Fig. 2 It can determine that the exception is caused by being not present by the memory headroom that pointer is directed toward, in addition, transaction node B not can determine that the exception is Caused by the processing logic of itself transaction node meets logic of propositions, still downstream the processing logic of transaction node do not meet it is pre- If caused by logic.After executing step S101- step S103 therefore, it is necessary to transaction node A, the root of the null pointer exception is obtained Then cause, such as the root that transaction node A obtains null pointer exception here are traded and are saved because being that transaction node E does not upload specified file Point A sends the root of null pointer exception because transaction node E can be according to the root that transaction node A is sent because carrying out chain to transaction node E The reparation of road exception.By implementing above-described embodiment, the abnormal positioning and abnormality processing efficiency of trade link are improved, is avoided Each transaction node in trade link is checked one by one.
In the embodiment of the present application, it can disposably be obtained under it in the recalls information according to return in the first transaction node Then the error code for the transaction node being abnormal in trip link obtains the relevant log information of error code, passes through log information Obtain transaction call abnormal root because, and by root because quickly orient cause root because target transaction node, finally by root Because being sent to target transaction node, in order to target transaction node according to root because being repaired, this programme does not need one by one to each A node carries out problem exclusion, and the first transaction node can be according to the corresponding log information of each error code, comprehensively, accurately The root occurred extremely in diagnosis trade link is because improving the positioning of exception transaction node and exception when being abnormal in trade link The efficiency of processing.
Fig. 3 is referred to, Fig. 3 is trade link exception handling device structural schematic diagram provided by the embodiments of the present application.It is described Device is applied to trade link, and the trade link includes multiple transaction nodes;Described device 300 includes: receiving unit 301, Acquiring unit 302, determination unit 303, indicating unit 304.
The receiving unit 301 is used for, and in the case where transaction calling exception occurs in trade link, the first transaction node is connect Receive the recalls information of the second transaction node return;The recalls information includes the error code of N number of transaction node, and the N is greater than 0 Integer;Second transaction node is next transaction node of first transaction node;
The acquiring unit 302 is used for, and first transaction node obtains N number of transaction according to N number of error code The log information of each transaction node in node;
The determination unit 303 is used for, and first transaction node is according to the log information of each transaction node, really The transaction of the fixed trade link call abnormal root because and cause described because target transaction node;
The indicating unit 304 is used for, first transaction node to the target transaction node indicate described because, with Convenient for the target transaction node according to the described reparation because carrying out link exception.
In some embodiments, referring to fig. 4, the log information is standardized log information, the standardized day Will information meets log reference format, and the determination unit 303 includes matching unit 401, extraction unit 402, the matching list Member 401 is used for, and matches the standardized log information according to regular expressions, determine described because first object position; The extraction unit 402 is used for, and according to the first object position, abnormal root is called in the transaction for extracting the trade link Cause, and according to described because determine cause described because target transaction node.
In some embodiments, the matching unit 401 is used for, standardized according to the regular expression matching Occurs each log section of error identification in log information;The content of each log section is that the original of the error identification occurs Cause;According to the log print time of each log section, by the position of the log print time earliest log section, Be determined as described because first object position.
In some embodiments, the matching unit 401 is also used to, and is standardized according to the regular expression matching Log information in there is each log section of error identification;The content of each log section is that the error identification occurs Reason;It is according to the log errorlevel of each log section, the institute of the highest log section of the log errorlevel is in place Set, be determined as described because first object position.
In some embodiments, the error code includes the mark of the transaction node, and the acquiring unit 302 is used for, According to the mark for N number of transaction node that N number of error code includes, determine that transaction occur calls abnormal N number of transaction section Point;To N number of transaction node, log information relevant to N number of error code is obtained.
In some embodiments, in the case where transaction calling exception also occurs in the second transaction node, N number of transaction section The error code of point includes the error code of second transaction node and the error code of N-1 other transaction nodes.
In some embodiments, the error code data format having the same of N number of transaction node.
In some embodiments, device provided by the embodiments of the present application has function or comprising module can be used for holding The method of row embodiment of the method description above, specific implementation are referred to the description of embodiment of the method above, for sake of simplicity, this In repeat no more.
The embodiment of the present application also provides a kind of electronic equipment, comprising: memory, for storing executable instruction;And place Device is managed, for communicating with the memory to execute the executable instruction to complete described in any of the above-described embodiment of the application The operation of trade link abnormality eliminating method.
Fig. 5 is a kind of electronic equipment structural block diagram provided by the embodiments of the present application.Below with reference to Fig. 5, it illustrates be suitable for For realizing the structural schematic diagram of the terminal device of the embodiment of the present application or the electronic equipment of server.As shown in figure 5, the electronics Equipment includes: one or more processors 501;One or more input interfaces 502, one or more output interfaces 503 and are deposited Reservoir 504.Above-mentioned processor 501, input interface 502, output interface 503 and memory 504 are connected by bus 505.Storage For storing instruction, processor 501 is used to execute the instruction of the storage of memory 502 to device 502.Wherein, processor 501 is configured to use In calling described program instruction execution:
In the case where transaction calling exception occurs in trade link, by input interface 502, receives the second transaction node and return The recalls information returned;The recalls information includes the error code of N number of transaction node, and the N is the integer greater than 0;Described first Transaction node is top layer's transaction node of the trade link;Second transaction node is under first transaction node One transaction node;
First transaction node obtains N number of transaction node by input interface 502 according to N number of error code In each transaction node log information;
First transaction node determines the transaction of the trade link according to the log information of each transaction node Call abnormal root because and cause described because target transaction node;
By output interface 503, Xiang Suoshu target transaction node indicate described because in order to the target transaction node According to the described reparation because carrying out link exception.
It should be appreciated that in the embodiment of the present application, alleged processor 501 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
The memory 504 may include read-only memory and random access memory, and to processor 501 provide instruction and Data.The a part of of memory 504 can also include nonvolatile RAM.For example, memory 504 can also be deposited Store up the information of device type.
In some embodiments, the processor 501 is used to execute the trade link abnormality processing of the embodiment of the present application description Method, for receiving data, the output interface 503 is used for output data to the input interface 502, passes through the processor 501, it states input interface 502 and a kind of trade link exception provided by the embodiments of the present application can be performed in the output interface 503 Implementation described in each embodiment of processing method, for sake of simplicity, details are not described herein.
A kind of computer readable storage medium, the computer-readable storage medium are provided in another embodiment of the application Matter is stored with computer program, and the computer program includes program instruction, and described program instructs realization when being executed by processor: In the case where transaction calling exception occurs in trade link, the first transaction node receives the calling letter that the second transaction node returns Breath;The recalls information includes the error code of N number of transaction node, and the N is the integer greater than 0;First transaction node is Top layer's transaction node of the trade link;Second transaction node is next transaction section of first transaction node Point;First transaction node obtains the day of each transaction node in N number of transaction node according to N number of error code Will information;First transaction node determines the transaction of the trade link according to the log information of each transaction node Call abnormal root because and cause described because target transaction node;First transaction node is to the target transaction section Point instruction described because in order to which the target transaction node is according to the described reparation because carrying out link exception.
The computer readable storage medium can be the storage inside list of electronic equipment described in aforementioned any embodiment Member, such as the hard disk or memory of terminal.The computer readable storage medium is also possible to the External memory equipment of the terminal, Such as the plug-in type hard disk being equipped in the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the computer readable storage medium is also Can both including the electronic equipment internal storage unit and also including External memory equipment.The computer readable storage medium For other programs and data needed for storing the computer program and the electronic equipment.The computer-readable storage Medium can be also used for temporarily storing the data that has exported or will export.
Those of ordinary skill in the art may be aware that in conjunction with each exemplary list that applied embodiment describes herein Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond scope of the present application.
It is apparent to those skilled in the art that for convenience of description and succinctly, the clothes of foregoing description The specific work process of business device, equipment and unit, can refer to corresponding processes in the foregoing method embodiment, and application also can be performed The implementation of electronic equipment described in embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed server, device and method, it can To realize by another way.For example, server example described above is only schematical, for example, the list Member division, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or Component can be combined or can be integrated into another system, or some features can be ignored or not executed.In addition, shown Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect Coupling or communication connection are also possible to electricity, mechanical or other form connections.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize the embodiment of the present application scheme according to the actual needs Purpose.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should all cover within the scope of protection of this application.Therefore, the protection scope of the application should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of trade link abnormality eliminating method, which is characterized in that the method is applied to trade link, the trade link Including multiple transaction nodes;The described method includes:
In the case where transaction calling exception occurs in trade link, the first transaction node receives the calling that the second transaction node returns Information;The recalls information includes the error code of N number of transaction node, and the N is the integer greater than 0;First transaction node For top layer's transaction node of the trade link;Second transaction node is next transaction section of first transaction node Point;
First transaction node obtains the day of each transaction node in N number of transaction node according to N number of error code Will information;
First transaction node determines that the transaction of the trade link is called according to the log information of each transaction node Abnormal root because and cause described because target transaction node;
First transaction node to the target transaction node indicate described because, in order to the target transaction node according to The described reparation because carrying out link exception.
2. the method according to claim 1, wherein the log information be standardized log information, it is described Standardized log information meets log reference format, and first transaction node is believed according to the log of each transaction node Breath, determine the transaction of the trade link call abnormal root because and cause described because target transaction node, specific packet It includes:
First transaction node matches the standardized log information according to regular expressions, determine described because first Target position;
For first transaction node according to the first object position, abnormal root is called in the transaction for extracting the trade link Cause, and according to described because determine cause described because target transaction node.
3. according to the method described in claim 2, it is characterized in that, first transaction node matches institute according to regular expressions State standardized log information, determine described because first object position, comprising:
There is error identification in first transaction node standardized log information according to the regular expression matching Each log section;The content of each log section is the reason of the error identification occurs;
First transaction node is earliest by the log print time according to log print time of each log section The position of log section, be determined as described because first object position.
4. according to the method described in claim 2, it is characterized in that, first transaction node matches institute according to regular expressions State standardized log information, determine described because first object position, comprising:
There is error identification in first transaction node standardized log information according to the regular expression matching Each log section;The content of each log section is the reason of the error identification occurs;
First transaction node is highest by the log errorlevel according to the log errorlevel of each log section The position of log section, be determined as described because first object position.
5. the method according to claim 1, wherein the error code includes the mark of the transaction node, institute The first transaction node is stated according to N number of error code, obtains the log letter of each transaction node in N number of transaction node Breath, comprising:
The mark for N number of transaction node that first transaction node includes according to N number of error code, determination are traded Call abnormal N number of transaction node;
First transaction node obtains log information relevant to N number of error code to N number of transaction node.
6. the method according to claim 1, wherein transaction also occur in the second transaction node calls abnormal feelings Under condition, the error code of N number of transaction node includes the error code and N-1 other transaction nodes of second transaction node Error code.
7. method according to claim 1-6, which is characterized in that
The error code data format having the same of N number of transaction node.
8. a kind of trade link exception handling device, which is characterized in that described device is applied to trade link, the trade link Including multiple transaction nodes;Described device includes: receiving unit, acquiring unit, determination unit, indicating unit,
The receiving unit is used for, and in the case where transaction calling exception occurs in trade link, the first transaction node receives second The recalls information that transaction node returns;The recalls information includes the error code of N number of transaction node, and the N is whole greater than 0 Number;Second transaction node is next transaction node of first transaction node;
The acquiring unit is used for, and first transaction node obtains in N number of transaction node according to N number of error code Each transaction node log information;
The determination unit is used for, first transaction node according to the log information of each transaction node, determine described in The transaction of trade link call abnormal root because and cause described because target transaction node;
The indicating unit is used for, first transaction node to the target transaction node indicate described because in order to institute Target transaction node is stated according to the described reparation because carrying out link exception.
9. a kind of electronic equipment characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to calling the instruction of the memory storage, the calling to described instruction is so that described Processor perform claim requires method described in 1 to 7 any one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program are executed by processor to realize method described in claim 1 to 7 any one.
CN201910420339.XA 2019-05-20 2019-05-20 Trade link abnormality eliminating method and relevant device Pending CN110223173A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910420339.XA CN110223173A (en) 2019-05-20 2019-05-20 Trade link abnormality eliminating method and relevant device
PCT/CN2019/121692 WO2020233066A1 (en) 2019-05-20 2019-11-28 Abnormity processing method based on data computation link, and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910420339.XA CN110223173A (en) 2019-05-20 2019-05-20 Trade link abnormality eliminating method and relevant device

Publications (1)

Publication Number Publication Date
CN110223173A true CN110223173A (en) 2019-09-10

Family

ID=67821501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910420339.XA Pending CN110223173A (en) 2019-05-20 2019-05-20 Trade link abnormality eliminating method and relevant device

Country Status (2)

Country Link
CN (1) CN110223173A (en)
WO (1) WO2020233066A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111861747A (en) * 2020-07-08 2020-10-30 支付宝(杭州)信息技术有限公司 Transaction link exception handling method and device and electronic equipment
WO2020233066A1 (en) * 2019-05-20 2020-11-26 深圳壹账通智能科技有限公司 Abnormity processing method based on data computation link, and related device
CN112487071A (en) * 2020-11-17 2021-03-12 中信银行股份有限公司 Transaction query method and device, electronic equipment and readable storage medium
CN113220540A (en) * 2021-06-07 2021-08-06 深圳华锐金融技术股份有限公司 Service management method, device, computer equipment and storage medium
CN113407370A (en) * 2020-03-16 2021-09-17 中国移动通信有限公司研究院 Root cause error clustering method, device, equipment and computer readable storage medium
CN113778804A (en) * 2021-09-15 2021-12-10 北京有竹居网络技术有限公司 Log printing method and device, computer equipment and storage medium
WO2023277802A3 (en) * 2021-07-01 2023-02-02 Shopee Singapore Private Limited Device and method for identifying errors in a software application

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948207A (en) * 2021-02-23 2021-06-11 中国工商银行股份有限公司 Information transfer method, information transfer device, electronic apparatus, and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309525A (en) * 2008-06-30 2008-11-19 中兴通讯股份有限公司 Route recovery method according to failure positioning in automatic exchange optical network
CN101729391A (en) * 2008-10-23 2010-06-09 华为技术有限公司 Method, node and system for acquiring link aggregation group information
CN107992415A (en) * 2017-11-28 2018-05-04 中国银联股份有限公司 The fault location and analysis method and associated server of a kind of transaction system
CN108933695A (en) * 2018-06-25 2018-12-04 百度在线网络技术(北京)有限公司 Method and apparatus for handling information
CN109308252A (en) * 2017-07-27 2019-02-05 中国移动通信集团浙江有限公司 A kind of fault location processing method and processing device
CN109766323A (en) * 2018-12-17 2019-05-17 深圳壹账通智能科技有限公司 The full link monitoring method, apparatus of loan transaction, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110223173A (en) * 2019-05-20 2019-09-10 深圳壹账通智能科技有限公司 Trade link abnormality eliminating method and relevant device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309525A (en) * 2008-06-30 2008-11-19 中兴通讯股份有限公司 Route recovery method according to failure positioning in automatic exchange optical network
CN101729391A (en) * 2008-10-23 2010-06-09 华为技术有限公司 Method, node and system for acquiring link aggregation group information
CN109308252A (en) * 2017-07-27 2019-02-05 中国移动通信集团浙江有限公司 A kind of fault location processing method and processing device
CN107992415A (en) * 2017-11-28 2018-05-04 中国银联股份有限公司 The fault location and analysis method and associated server of a kind of transaction system
CN108933695A (en) * 2018-06-25 2018-12-04 百度在线网络技术(北京)有限公司 Method and apparatus for handling information
CN109766323A (en) * 2018-12-17 2019-05-17 深圳壹账通智能科技有限公司 The full link monitoring method, apparatus of loan transaction, computer equipment and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020233066A1 (en) * 2019-05-20 2020-11-26 深圳壹账通智能科技有限公司 Abnormity processing method based on data computation link, and related device
CN113407370A (en) * 2020-03-16 2021-09-17 中国移动通信有限公司研究院 Root cause error clustering method, device, equipment and computer readable storage medium
CN111861747A (en) * 2020-07-08 2020-10-30 支付宝(杭州)信息技术有限公司 Transaction link exception handling method and device and electronic equipment
US11489717B2 (en) 2020-07-08 2022-11-01 Alipay (Hangzhou) Information Technology Co., Ltd. Method, apparatus, and electronic device for transaction link exception handling
CN112487071A (en) * 2020-11-17 2021-03-12 中信银行股份有限公司 Transaction query method and device, electronic equipment and readable storage medium
CN113220540A (en) * 2021-06-07 2021-08-06 深圳华锐金融技术股份有限公司 Service management method, device, computer equipment and storage medium
WO2023277802A3 (en) * 2021-07-01 2023-02-02 Shopee Singapore Private Limited Device and method for identifying errors in a software application
CN113778804A (en) * 2021-09-15 2021-12-10 北京有竹居网络技术有限公司 Log printing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2020233066A1 (en) 2020-11-26

Similar Documents

Publication Publication Date Title
CN110223173A (en) Trade link abnormality eliminating method and relevant device
CN107633016B (en) Data processing method and device and electronic equipment
CN110297766A (en) Method for testing software and software testing system based on distributed test node cluster
CN104718533B (en) Hardware fault management system, method and the framework of business equipment
CN100574221C (en) A kind of multisystem error code management method, Apparatus and system
US7778982B2 (en) System for processing and using electronic documents
CN110245154B (en) Multi-path link exception handling method and related equipment
CN107463767A (en) Cloud HIS medical insurances data processing method and system
US10719844B2 (en) Service processing method, terminal and server
CN107590070A (en) A kind of service flow debugging method and device
CN110599265B (en) Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium
CN111782456B (en) Anomaly detection method, device, computer equipment and storage medium
CN110310100A (en) Project management method, device, electronic equipment and storage medium
CN112446786A (en) Abnormal transaction processing method and device, electronic equipment and readable storage medium
CN109190776A (en) Reinspection method, apparatus, terminal device and the storage medium of vehicle failure
CN107273250A (en) The method of testing and device of electronic declaration form automatic cover system
CN110225076A (en) File interaction method, apparatus, electronic equipment and storage medium
US20150026770A1 (en) Safety information transfer system, device and method based on extended parameter set
CN112613288B (en) Method, device, computer equipment and storage medium for generating bill
CN109032629A (en) A kind of code update method and device
CN112637222A (en) Request processing method and device
CN113762912B (en) Service processing method, equipment and storage medium of ABS service system
CN113836145B (en) Method, device, electronic equipment and computer readable storage medium for requesting data
CN115098528A (en) Service processing method and device, electronic equipment and computer readable storage medium
CN105989064A (en) Record information checking method and device

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
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20240419