Specific implementation mode
A kind of fault message recognition methods of this specification embodiment offer, device, server and system.
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation
Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described
Embodiment be only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual,
Every other embodiment obtained by those of ordinary skill in the art without making creative efforts, should all belong to
The range of this specification protection.
Referring to Fig. 1, Fig. 1 is a kind of structural schematic diagram for fault message identifying system that this specification provides, specifically,
The system may include:Failure affairs participant, intermediate affairs participant and transaction initiator;
In this specification embodiment, the fault message identifying system may include distributed transaction system.Correspondingly, institute
It can be the thing in distributed transaction system to state failure affairs participant, the intermediate affairs participant and the transaction initiator
Be engaged in participant.In some embodiments, the intermediate affairs participant may include one or more.
In this specification embodiment, when breaking down in transaction process, the failure affairs participant, Ke Yiyong
In fault message is sent to intermediate affairs participant;
The intermediate affairs participant can be used for returning to malloc failure malloc information, the calling to the transaction initiator
The fault message is carried in failure information;
The transaction initiator can be used for from the malloc failure malloc information that the intermediate affairs participant returns identifying
The fault message.
In this specification embodiment, when carrying out issued transaction, affairs participant can build according to dealing with relationship for affairs
Vertical connection.It can be into line number between the affairs participant connected according to the foundation of issued transaction relationship in subsequent transaction process
According to interaction.Specifically, in this specification embodiment, the company of foundation between the failure affairs participant and intermediate affairs participant
It connects, connection is established between the intermediate affairs participant and the transaction initiator.
In this specification embodiment, the transaction initiator can be client, the initiation for carrying out affairs.Specifically
, can be desktop computer, tablet computer, laptop, smart mobile phone, digital assistants, intelligent wearable device etc..Its
In, intelligent wearable device may include Intelligent bracelet, smartwatch, intelligent glasses, intelligent helmet etc..Certainly, the client
End is not limited to the above-mentioned electronic equipment with certain entity, can also be the software run in above-mentioned electronic equipment.
In this specification embodiment, the intermediate affairs participant and failure affairs participant can be server, can be with
By the affairs participant for the affairs that transaction initiator is initiated, and the failure affairs participant is that the affairs to break down participate in
Person.In some embodiments, the intermediate affairs participant and failure affairs participant may be client.
Below in conjunction with Fig. 2 illustrate the fault message identifying system provided using this specification embodiment carry out issued transaction and
The specific embodiment of fault message identification.Fig. 2 includes:Transaction initiator A, intermediate affairs participant participate in including the first affairs
Person B and the second affairs participant C, failure affairs participant D.
Specifically, after user triggers an affairs, affairs participant A is to the first affairs participant B (affairs participant A
Next stage affairs participant) initiate affairs the first operational order.
Then, the first affairs participant B is based on first operational order to the second affairs participant C (the first affairs ginsengs
With the next stage affairs participant of person B) initiate affairs the second operational order;
Then, the second affairs participant C is based on second operational order to affairs participant D (the second affairs participant C
Next stage affairs participant) initiate affairs third operational order;At this point, affairs participant D is because event occurs for network timeout
Barrier;Correspondingly, affairs participant D becomes failure affairs participant, and to upper level affairs participant:Second affairs participant C
Return to fault message.
Further, the second affairs participant C carries out press process to fault message (calling D network timeouts), and
Stacked data including fault message is sent to upper level affairs participant (the first affairs participant B).
Further, the first affairs participant B loses after receiving the malloc failure malloc information including stacked data by calling
It loses information (call C failure) and carries out press process in the storehouse comprising fault message, and to upper level affairs participant's (affairs
Promoter A) stacked data after press process.At this point, the stack top in storehouse is to call C failures;Stack bottom is to call D networks super
When.
Further, after transaction initiator A obtains stacked data, fault message can be obtained from stack bottom:Call D networks
Time-out.
By in above this specification embodiment, by after breaking down in this specification embodiment, in the calling of return
Fault message is carried in failure information, it is ensured that affairs participant can quickly position and determine fault message, in order to fast
Speed responds, and ensures when actual transaction is handled, and can improve issued transaction efficiency, improves user experience.
A kind of a kind of specific embodiment of fault message recognition methods of this specification introduced below.Fig. 3 is that this specification carries
A kind of flow diagram of embodiment of the fault message recognition methods of confession, present description provides such as embodiment or flow chart institutes
The method operating procedure stated, but may include either more or less operating procedure without performing creative labour based on routine.
The step of being enumerated in embodiment sequence be only numerous step execution sequences in a kind of mode, do not represent uniquely execute it is suitable
Sequence.When system or client production in practice executes, it can be executed according to embodiment or method shown in the drawings sequence
Either execute (such as environment of parallel processor or multiple threads) parallel.It is specific as shown in figure 3, the method can be with
Including:
S302:Fault message is sent to intermediate affairs participant by failure affairs participant.
In this specification embodiment, the fault message may include fault location information and/or defect content information.Tool
Body, can be that the foundation of dealing with relationship of gene affairs connects between failure affairs participant and intermediate affairs participant here
Affairs participant.
S304:The intermediate affairs participant returns to malloc failure malloc information, the malloc failure malloc information to transaction initiator
It is middle to carry the fault message.
In this specification embodiment, after the fault message can be by being stored in storehouse, it is sent to transaction initiator.Tool
Body, in some embodiments, when intermediate affairs participant is one, the intermediate affairs participant returns to transaction initiator
Readjustment failure information, carrying the fault message in the malloc failure malloc information may include:
The fault message is carried out press process by the intermediate affairs participant, obtains the storehouse number for including fault message
According to;
Malloc failure malloc information is returned to transaction initiator, it includes fault message to be carried in the malloc failure malloc information described
Stacked data.
In further embodiments, when the intermediate affairs participant includes multiple affairs participants, the intermediate thing
Business participant returns to malloc failure malloc information to transaction initiator, and carrying the fault message in the malloc failure malloc information includes:
The fault message is carried out press process by the intermediate affairs participant for receiving fault message, obtains including failure
The stacked data of information returns to malloc failure malloc information to the first affairs participant, is carried comprising event in the malloc failure malloc information
Hinder the stacked data of information;
The first affairs participant carries out the malloc failure malloc information in the storehouse comprising fault message at pop down
Reason, obtains the stacked data after pop down, returns to malloc failure malloc information to the second affairs participant, the malloc failure malloc information carries
Stacked data after pop down;
It repeats above-mentioned press process and returns to adjust using the second affairs participant as the first current affairs participant
It is the transaction initiator with the operation of failure information to the second current affairs participant.
S306:The transaction initiator identifies described from the malloc failure malloc information that the intermediate affairs participant returns
Fault message.
In this specification embodiment, transaction initiator receives carry fault message malloc failure malloc information after, can be with
Identify fault message.In further embodiments, when the tune that the transaction initiator is returned from the intermediate affairs participant
With identifying that the fault message may include in failure information:
The transaction initiator obtains in the malloc failure malloc information that the intermediate affairs participant returns and carries stacked data;
The stack bottom of storehouse of the transaction initiator corresponding to the stacked data obtains the fault message.
It can be seen that a kind of one or more embodiments of fault message recognition methods of this specification are in transaction process
In when breaking down, the failure affairs participant that breaks down breaks down information to intermediate affairs participant, follow-up intermediate thing
Business participant carries fault message in the malloc failure malloc information of return, it is ensured that transaction initiator is from carrying fault message
Fault message is quickly determined in malloc failure malloc information, in order to quickly respond.Ensure when actual transaction is handled, it can be with
Issued transaction efficiency is improved, user experience is improved.
A kind of another specific embodiment of fault message recognition methods of this specification introduced below.Fig. 4 is this specification
The flow diagram of another embodiment of the fault message recognition methods of offer, present description provides such as embodiments or flow
The figure method operating procedure, but may include either more or less operation step without performing creative labour based on routine
Suddenly.The step of being enumerated in embodiment sequence is only a kind of mode in numerous step execution sequences, does not represent unique execution
Sequentially.When system or client production in practice executes, it can be held according to embodiment or method shown in the drawings sequence
Row either executes (such as environment of parallel processor or multiple threads) parallel.Specifically as shown in figure 4, the method can
To include:
S402:Receive the fault message that failure affairs participant sends.
In this specification embodiment, the fault message includes:Fault location information and/or defect content information.
S404:Malloc failure malloc information is returned to transaction initiator, for the transaction initiator from the malloc failure malloc
The fault message is identified in information, wherein carry the fault message in the malloc failure malloc information.
In some embodiments, described to return to malloc failure malloc information to transaction initiator, it is taken in the malloc failure malloc information
May include with the fault message:
The fault message is subjected to press process, obtains the stacked data for including fault message;
Malloc failure malloc information is returned to transaction initiator, it includes fault message to be carried in the malloc failure malloc information described
Stacked data.
In further embodiments, described to return to malloc failure malloc information to transaction initiator, in the malloc failure malloc information
Carrying the fault message includes:
The fault message is carried out press process by the affairs participant for receiving fault message, obtains including fault message
Stacked data, return to malloc failure malloc information to the first affairs participant, carry in the malloc failure malloc information and believe comprising failure
The stacked data of breath;
The first affairs participant carries out the malloc failure malloc information in the storehouse comprising fault message at pop down
Reason returns to malloc failure malloc information to the second affairs participant, and the malloc failure malloc information carries the stacked data after pop down;
It repeats above-mentioned press process and returns to adjust using the second affairs participant as the first current affairs participant
It is the transaction initiator with the operation of failure information to the second current affairs participant.
It can be seen that a kind of embodiment of fault message recognition methods of this specification breaks down in transaction process
When, after intermediate affairs participant early receives the fault message that the failure affairs participant that breaks down occurs, to upper level
Fault message is carried in the malloc failure malloc information that affairs participant returns, it is ensured that transaction initiator is from carrying fault message
Fault message is quickly determined in malloc failure malloc information, in order to quickly respond.Ensure when actual transaction is handled, it can be with
Issued transaction efficiency is improved, user experience is improved.
On the other hand this specification also provides a kind of fault message identification device, Fig. 5 is the failure letter that this specification provides
The structural schematic diagram for ceasing a kind of embodiment of identification device, as shown in figure 5, described device 500 may include:
Fault message receiving module 510 can be used for receiving the fault message that failure affairs participant sends;
Malloc failure malloc information return module 520 can be used for returning to malloc failure malloc information to transaction initiator, for institute
It states transaction initiator and identifies the fault message from the malloc failure malloc information, wherein taken in the malloc failure malloc information
With the fault message.
In another embodiment, the malloc failure malloc information return module 520 may include:
First press process unit obtains the heap for including fault message for the fault message to be carried out press process
Stack data;
First malloc failure malloc information returning unit, for returning to malloc failure malloc information to transaction initiator, the calling is lost
Lose the stacked data for including fault message described in being carried in information.
In another embodiment, the malloc failure malloc information return module includes:
The fault message is carried out pop down by the second press process unit, the affairs participant for receiving fault message
Processing, obtains the stacked data for including fault message;
Second malloc failure malloc information returning unit, for returning to malloc failure malloc information, the tune to the first affairs participant
Include the stacked data of fault message with carrying in failure information;
First data processing unit believes the malloc failure malloc information comprising failure for the first affairs participant
Press process is carried out in the storehouse of breath, returns to malloc failure malloc information to the second affairs participant, the malloc failure malloc information carries
Stacked data after pop down;
Second data processing unit, for being repeated the second affairs participant as the first current affairs participant
Above-mentioned press process and return malloc failure malloc information operation to the second current affairs participant be the transaction initiator.
In another embodiment, the fault message may include:Fault location information and/or defect content information.
The above-mentioned fault message recognition methods or device that this specification embodiment provides can be in a computer by processors
Corresponding program instruction is executed to realize, such as using the c++ language of windows operating systems the ends PC realize or other for example
It is realized in intelligent terminal using android, iOS system programming language, and the processing logic based on quantum computer is real
Now etc..As shown in fig. 6, a kind of schematic configuration diagram of the embodiment for the fault message identification client that Fig. 6, which is this specification, to be provided.
In hardware view, which may include processor, internal bus, network interface, memory and nonvolatile memory, when
So it is also possible that the required hardware of other business.Processor reads corresponding computer program from nonvolatile memory
To then being run in memory, fault message identification device is formed on logic level.Certainly, other than software realization mode,
Other realization methods, such as the mode etc. of logical device or software and hardware combining is not precluded in this specification, that is to say, that with
The executive agent of lower process flow is not limited to each logic unit, can also be hardware or logical device.
Specifically, on the other hand this specification also provides a kind of fault message identification server, including processor and storage
Device, the memory store the computer program instructions executed by the processor, and the computer program instructions may include:
Receive the fault message that failure affairs participant sends;
Malloc failure malloc information is returned to transaction initiator, for the transaction initiator from the malloc failure malloc information
Identify the fault message, wherein carry the fault message in the malloc failure malloc information.
In this specification embodiment, the processor may include central processing unit (CPU) or graphics processor
(GPU), naturally it is also possible to including other microcontroller, logic gates, integrated circuits with logic processing capability etc. or its
It is appropriately combined.Memory described in this specification embodiment can be for protecting stored memory device.In digital display circuit,
The equipment that binary data can be preserved can be memory;In integrated circuits, one not physical form have storage work(
The circuit of energy may be memory, such as RAM, FIFO;In systems, the storage device with physical form, which can also be named, deposits
Reservoir etc..When realization, which can also be realized by the way of cloud storage, specific implementation, this specification
It is good to limit.
It can be seen that a kind of fault message recognition methods of this specification, device, server or system embodiment in affairs
When breaking down in processing procedure, the failure affairs participant that breaks down breaks down information to intermediate affairs participant, after
Continuous intermediate affairs participant carries fault message in the malloc failure malloc information of return, it is ensured that transaction initiator is from carrying
Fault message is quickly determined in fault message malloc failure malloc information, in order to quickly respond.Ensure at actual transaction
When reason, issued transaction efficiency can be improved, improves user experience.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the action recorded in detail in the claims or step can be come according to different from the sequence in embodiment
It executes and desired result still may be implemented.In addition, the process described in the accompanying drawings not necessarily require show it is specific suitable
Sequence or consecutive order could realize desired result.In some embodiments, multitasking and parallel processing be also can
With or it may be advantageous.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " patrols
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed are most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method flow can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller includes but not limited to following microcontroller
Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited
Memory controller is also implemented as a part for the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained in the form of logic gate, switch, application-specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. to come in fact
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
Device, module or the unit that above-described embodiment illustrates can specifically be realized, Huo Zheyou by computer chip or entity
Product with certain function is realized.It is a kind of typically to realize that equipment is computer.Specifically, computer for example can be a
People's computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation
Any equipment in equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
Combination.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit is realized can in the same or multiple software and or hardware when specification.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, apparatus or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (device) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable fault message identification equipments
To generate a machine so that the instruction executed by the processor of computer or other programmable fault message identification equipments is produced
Life is for realizing the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
Device.
These computer program instructions, which may also be stored in, can guide computer or other programmable fault message identification equipments
In computer-readable memory operate in a specific manner so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable fault message identification equipments so that
Series of operation steps are executed on a computer or other programmable device to generate computer implemented processing, to calculate
The instruction executed on machine or other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or box
The step of function of being specified in one box of figure or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage, graphene stores or other
Magnetic storage apparatus or any other non-transmission medium can be used for storage and can be accessed by a computing device information.According to herein
In define, computer-readable medium does not include temporary computer readable media (transitory media), such as data of modulation
Signal and carrier wave.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described
There is also other identical elements in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of this specification can be provided as method, apparatus or computer program production
Product.Therefore, complete hardware embodiment, complete software embodiment or implementation combining software and hardware aspects can be used in this specification
The form of example.Moreover, this specification can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
This specification can describe in the general context of computer-executable instructions executed by a computer, such as journey
Sequence module.Usually, program module include routines performing specific tasks or implementing specific abstract data types, program, object,
Component, data structure etc..This specification can also be put into practice in a distributed computing environment, in these distributed computing environment
In, by executing task by the connected remote processing devices of communication network.In a distributed computing environment, program module
It can be located in the local and remote computer storage media including storage device.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device and
For server example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to side
The part of method embodiment illustrates.
The foregoing is merely the embodiments of this specification, are not limited to this specification.For art technology
For personnel, this specification can have various modifications and variations.It is all this specification spirit and principle within made by it is any
Modification, equivalent replacement, improvement etc., should be included within right.