CN106598764A - Exception handling method and device - Google Patents
Exception handling method and device Download PDFInfo
- Publication number
- CN106598764A CN106598764A CN201510664598.9A CN201510664598A CN106598764A CN 106598764 A CN106598764 A CN 106598764A CN 201510664598 A CN201510664598 A CN 201510664598A CN 106598764 A CN106598764 A CN 106598764A
- Authority
- CN
- China
- Prior art keywords
- processing unit
- data processing
- data
- unit
- parent
- 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.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses an exception handling method and device. The method comprises: detecting whether a data processing program has a data processing unit generating exception, wherein the data processing program comprises multiple data processing units for performing data processing; when detecting that the data processing program has the data processing unit generating the exception, searching a processing unit associated with the data processing unit generating the exception; and transmitting prompt information to the processing unit associated with the data processing unit generating the exception, wherein the prompt information is used for prompting the data processing unit generating the exception in the data processing program. The exception handling method and device solve a technical problem of low efficiency when exception generated in the data processing process in the prior art is processed.
Description
Technical field
The application is related to data processing field, in particular to a kind of abnormality eliminating method and device.
Background technology
What original network (web) daily record (for example, Apache daily records, Nginx daily records, IIS daily records etc.) was recorded
Information is enriched very much, for example, the dimensional information of broadcast monitoring log recording have showing advertisement or redirect the date of generation,
The concrete time, the dimensional informations such as parameter, advertisement and identifier, the source that advertisement occurs and the equipment that uses are accessed, cause original
The web daily records of beginning but fast, easily the operation such as cannot carry out collecting, count according to each dimension.For convenience,
Quickly the information of broadcast monitoring daily record each dimension is carried out collecting, counted, needed at original web daily records
Reason, processing procedure can be divided into log read, daily record parsing and daily record and preserve three big processing units, and each is big
Processing unit inside again can be divided into many little processing units, so as to define the nested layer by layer of processing unit.By
Cannot ensure to occur without any exception or mistake in the processing procedure of web daily records, so any one is little when therein
When there is abnormal or mistake in processing unit, associated processing unit how timely, automatic response abnormality quick
Handle it and become the difficult point of Embedded process unit.
Web daily records (for example, broadcast monitoring daily record) processing procedure common at present is all the connection of processing unit, no
Exist multilamellar with it is nested.Even for complicated, nested processing unit, abnormality processing major part is single by processing
Expired time checking mechanism between unit is processed, although this mode is using universal, but can not to abnormal and
When respond and subsequent treatment, existence time postpone possibility;Also part system is in complicated processing unit
Portion does not carry out any process, is allowed to free release, and only carries out exception catching and process in complex process unit periphery,
Although this mode is simple, performance issue is there may be, such as abnormal caused resource cannot discharge in a short time, extremely
The problems such as lock.Description by more than is can be seen that using the mode such as expired time checking mechanism and peripheral exception catching
The exception of complex process unit can not be effectively processed all.
More poorly efficient problem during for processing to the exception that occurs in data handling procedure in correlation technique, at present
Effective solution is proposed not yet.
The content of the invention
The main purpose of the application is to provide a kind of abnormality eliminating method and device, to solve in correlation technique to data
More poorly efficient problem when the exception occurred in processing procedure is processed.
To achieve these goals, a kind of one side according to the application, there is provided abnormality eliminating method.The method
Including:With the presence or absence of the data processing unit that exception occurs in detection data processing routine, wherein, data processor
Include multiple data processing units for performing data processing;There is generation in data processor is detected different
During normal data processing unit, the processing unit associated with the data processing unit that exception occurs is searched;And Xiang Yufa
The processing unit of raw abnormal data processing unit association sends information, wherein, information is used to point out data
Exist in processing routine and abnormal data processing unit occurs.
Further, when there is the data processing unit of generation exception in data processor is detected, search and send out
Before the processing unit of raw abnormal data processing unit association, the method also includes:It is many in establishment data processor
Incidence relation between individual data processing unit.
Further, data processor includes the first data processing unit, creates multiple data in data processor
Incidence relation between processing unit includes:Detect that the first data processing unit whether there is downstream processing unit;And
When detecting that the first data processing unit has downstream processing unit, the first data processing unit and the first data are associated
The downstream processing unit of processing unit.
Further, data processor includes the first data processing unit, creates multiple data in data processor
Incidence relation between processing unit includes:Detect that the first data processing unit whether there is parent processing unit;And
When detecting that the first data processing unit has parent processing unit, the first data processing unit and the first data are associated
The parent processing unit of processing unit.
Further, detect that the first data processing unit includes with the presence or absence of parent processing unit:Obtain data object to take
The association identification of band, wherein, data object be the first data processing unit process object, association identification be used for represent
First data processing unit whether there is association process unit;If the value of association identification is the first value, it is determined that first
There is parent processing unit in data processing unit;And if the value of association identification is not the first value, it is determined that the first number
There is no parent processing unit according to processing unit.
Further, data processor includes the first data processing unit, creates multiple data in data processor
Incidence relation between processing unit includes:Detect the first data processing unit with the presence or absence of downstream processing unit and parent
Processing unit;When detecting that the first data processing unit has downstream processing unit and parent processing unit, by first
Data processing unit is associated with the downstream processing unit and parent processing unit of the first data processing unit respectively;In detection
Go out that the first data processing unit has downstream processing unit and the first data processing unit does not have parent processing unit, close
Join the downstream processing unit of the first data processing unit and the first data processing unit;And detecting at the first data
Processing unit is swum in the absence of reason unit and the first data processing unit has parent processing unit, at the first data of association
The parent processing unit of reason unit and the first data processing unit.
To achieve these goals, a kind of another aspect according to the application, there is provided exception handling device.The device
Including:Detector unit, for the data processing unit in detection data processing routine with the presence or absence of generation exception, its
In, data processor includes multiple data processing units for performing data processing;Searching unit, for
When there is the data processing unit of generation exception in detecting data processor, search and the data processing that exception occurs
The processing unit of unit association;And transmitting element, for the process associated with the data processing unit that exception occurs
Unit sends information, wherein, information exists in being used to point out data processor and occurs at abnormal data
Reason unit.
Further, the device also includes:Creating unit, for creating multiple data processing lists in data processor
Incidence relation between unit.
Further, data processor includes the first data processing unit, and creating unit includes:First detection mould
Block, for detecting that the first data processing unit whether there is downstream processing unit;And first relating module, for
When detecting that the first data processing unit has downstream processing unit, at the first data processing unit of association and the first data
The downstream processing unit of reason unit.
Further, data processor includes the first data processing unit, and creating unit includes:Second detection mould
Block, for detecting that the first data processing unit whether there is parent processing unit;And second relating module, for
When detecting that the first data processing unit has parent processing unit, at the first data processing unit of association and the first data
The parent processing unit of reason unit.
By the application, using the data processing unit in detection data processing routine with the presence or absence of generation exception, its
In, data processor includes multiple data processing units for performing data processing;Detecting data processing
When there is the data processing unit of generation exception in program, the process that abnormal data processing unit is associated is searched and occurs
Unit;And information is sent to the processing unit associated with the data processing unit that exception occurs, wherein, point out
Information exists in being used to point out data processor and abnormal data processing unit occurs, and solves logarithm in correlation technique
More poorly efficient problem when being processed according to the exception occurred in processing procedure, and then reached at effectively processing data
The effect of the exception occurred during reason.
Description of the drawings
The accompanying drawing for constituting the part of the application is used for providing further understanding of the present application, the schematic reality of the application
Apply example and its illustrate for explaining the application, do not constitute the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the flow chart of the abnormality eliminating method according to the embodiment of the present application;
Fig. 2 is the flow chart of the log processing according to the embodiment of the present application;And
Fig. 3 is the schematic diagram of the exception handling device according to the embodiment of the present application.
Specific embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combine.Below with reference to the accompanying drawings and in conjunction with the embodiments describing the application in detail.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present application, it is clear that described embodiment
The only embodiment of the application part, rather than the embodiment of whole.Based on the embodiment in the application, ability
The every other embodiment obtained under the premise of creative work is not made by domain those of ordinary skill, should all belong to
The scope of the application protection.
It should be noted that the description and claims of this application and the term " first " in above-mentioned accompanying drawing,
" second " etc. is for distinguishing similar object, without being used to describe specific order or precedence.Should manage
The data that solution is so used can be exchanged in the appropriate case, so as to embodiments herein described herein.Additionally,
Term " comprising " and " having " and their any deformation, it is intended that covering is non-exclusive to be included, for example,
Contain that process, method, system, product or the equipment of series of steps or unit is not necessarily limited to clearly to list that
A little steps or unit, but may include clearly not list or for these processes, method, product or equipment are solid
Other steps having or unit.
According to the embodiment of the present application, there is provided a kind of abnormality eliminating method, Fig. 1 is the exception according to the embodiment of the present application
The flow chart of processing method.As shown in figure 1, the method includes steps S102 to step S106:
Step S102, with the presence or absence of the data processing unit that exception occurs in detection data processing routine, wherein, number
Include multiple data processing units for performing data processing according to processing routine.
Data processor refers to the program for performing data processing, for example, web log processing programs.Data processing list
Unit performs the specific processing unit of data processing in referring to data processor, for example, in web log processing programs
Processing unit etc. is kept including log read processing unit, daily record dissection process unit and daily record.It should be noted that
Each data processing unit potentially includes the data processing unit of subclass, and for example, log read processing unit includes configuration
File reads subelement, acquisition filename subelement and file and reads subelement etc..
Step S104, is present when there is abnormal data processing unit in data processor is detected, search with
There is the processing unit of abnormal data processing unit association.
In a data processor, be probably annexation arranged side by side between data processing unit, for example it is, above-mentioned
Log read processing unit, daily record dissection process unit and daily record keep annexation i.e. arranged side by side between processing unit;
Nest relation is also likely to be present between data processing unit, for example, above-mentioned log read processing unit is read with configuration file
Subelement is taken, filename subelement and file is obtained and is read between subelement i.e. nest relation.
When the embodiment of the present application has the abnormal data processing unit of generation in data processor is detected, searching should
There is the data processing unit of abnormal data processing unit association, for example, search the abnormal data processing list of the generation
The upstream processing unit of unit, downstream processing unit, parent processing unit and subclassing unit etc..Alternatively, in inspection
When there is the data processing unit of generation exception in measuring data processor, search and the data processing list that exception occurs
Before the processing unit of unit's association, the method also includes:In establishment data processor between multiple data processing units
Incidence relation.
Specifically, the incidence relation in establishment data processor between multiple data processing units can be designer
The incidence relation in data processor between multiple data processing units is created previously according to flow chart of data processing, also may be used
Being the incidence relation being automatically created between multiple data processing units.
Preferably, in order to save labour turnover, data processor includes the first data processing unit, creates at data
Incidence relation in reason program between multiple data processing units includes:Under detecting that the first data processing unit whether there is
Trip processing unit;And when detecting that the first data processing unit has downstream processing unit, at the first data of association
The downstream processing unit of reason unit and the first data processing unit.
Due to being annexation arranged side by side between existing most data processing unit, there is no nesting, thus, it is only required to
The association of upstream and downstream is carried out to data processing unit.
Specifically, the first data processing unit can be any one data processing unit in data processor, this Shen
Please embodiment by taking the first Data Data processing unit as an example to creating in data processor between multiple data processing units
Incidence relation illustrate.The embodiment of the present application detects that the first data processing unit whether there is downstream processing unit,
Specifically, the first data processing can be detected by way of the event call-back between object (i.e. data processing unit)
Unit whether there is downstream processing unit, i.e. data object enters next data processing via the first data processing unit
After unit, notify that the first data processing unit has downstream data processing units by event call-back, if no thing
Part readjustment swims data processing unit in the absence of illustrating the first data processing unit.It should be noted that event call-back
Refer to that downstream data processing units call certain event of upstream data processing element, for example, data object is via first
When data processing unit enters to next data processing unit, while carrying certain event of the first data processing unit
Title, then next data processing unit can trigger the event.
The embodiment of the present application when detecting that the first data processing unit has downstream processing unit, by the first data processing
Unit and processing unit is associated downstream, for example, can store in tables of data the first data processing unit and its
Mapping relations between downstream processing unit, it is also possible to create downstream processing unit in the first data processing unit in advance
Object, and sky is appointed as, when detecting that the first data processing unit has downstream processing unit, will process downstream
Unit is assigned to processing unit object downstream.
It should be noted that the first data processing unit and upstream processing unit associate can also by data object come
Realize, specifically, data processor includes the first data processing unit and the second data processing unit, data object
The second data processing unit is reached via the first data processing unit, at this point it is possible to by the letter of the first data processing unit
Breath passes to the second data cell via data object, and now, the second data processing unit is receiving the first data processing
Illustrate after the information of unit which has upstream processing unit, and its upstream processing unit is the first data processing unit.
But, when the incidence relation by tables of data data storage processing unit, it is only necessary to detect the first data processing unit
Upstream processing unit or detection the first data processing unit downstream processing unit.
The embodiment of the present application whether there is downstream processing unit by the first data processing unit of automatic detection, and deposit at which
It is associated in downstream processing unit, realizes the incidence relation set up between data processing unit automatically, save manpower
Cost, and there is versatility.
Preferably, data processor includes the first data processing unit, in establishment data processor at multiple data
Incidence relation between reason unit includes:Detect that the first data processing unit whether there is parent processing unit;And
When detecting that the first data processing unit has parent processing unit, at the first data processing unit of association and the first data
The parent processing unit of reason unit.
Specifically, the first data processing unit can be any one data processing unit in data processor, this Shen
Please embodiment be to creating in data processor between multiple data processing units with the first Data Data processing unit
Incidence relation is illustrated.
Alternatively, detect that the first data processing unit includes with the presence or absence of parent processing unit:Obtain data object to carry
Association identification, wherein, data object is the object that the first data processing unit is processed, and association identification is used to represent the
One data processing unit whether there is association process unit;If the value of association identification is the first value, it is determined that the first number
There is parent processing unit according to processing unit;And if the value of association identification is not the first value, it is determined that the first data
There is no parent processing unit in processing unit.
The value that user can be identified previously according to the rank specified associations of each processing unit, leads in flow chart of data processing
Cross the corresponding association identification of data object carrying and enter to next data processing unit, for example, in log processing flow process
In, it is intended that the value of the association identification of log read processing unit is 0, represents that log read processing unit does not have at parent
Reason unit and its be downstream processing unit parent processing unit, it is intended that the value of the association identification of configuration file reading unit
For 1, represent that configuration file reading unit is subclassing unit and which does not have subclassing unit.
When log processing flow process starts, the value of the association identification that specified data object is carried is log read processing unit
The value of association identification, when data object enters to configuration file reading unit and processed, detects data object and takes
The value of the association identification of band is 0, illustrates that the data processing unit of its upstream is its parent processing unit, sets up daily record reading
The incidence relation between processing unit and configuration file reading unit is taken, for example, can be read in configuration file in advance single
Parent processing unit object is created in unit, and sky is appointed as, is detecting that log read processing unit has parent process
During unit (i.e. daily record reading processing unit), log read processing unit is assigned to into parent processing unit object,
It can be the incidence relation that parent processing unit and its subclassing unit are stored by tables of data.Data object via
When configuration file reading unit enters next data processing unit, the value change of the association identification that data object is carried
The value of the association identification carried for the value of association identification in configuration file reading unit, i.e. data object is changed to 1, under
The value of the association identification that the data object that one data processing unit gets is carried is 1.
Alternatively, data processor includes the first data processing unit, in establishment data processor at multiple data
Incidence relation between reason unit includes:At detecting the first data processing unit with the presence or absence of downstream processing unit and parent
Reason unit;When detecting that the first data processing unit has downstream processing unit and parent processing unit, by the first number
Associated with the downstream processing unit and parent processing unit of the first data processing unit according to processing unit respectively;Detecting
There is downstream processing unit in the first data processing unit and the first data processing unit does not have parent processing unit, association
The downstream processing unit of the first data processing unit and the first data processing unit;And detecting the first data processing
Processing unit is swum in the absence of unit and the first data processing unit has parent processing unit, associate the first data processing
The parent processing unit of unit and the first data processing unit.
It should be noted that first data processing unit of detection of the embodiment of the present application with the presence or absence of downstream processing unit with
And the first data processing unit of detection whether there is the implementation of parent processing unit as described above, here is no longer gone to live in the household of one's in-laws on getting married
State.
The embodiment of the present application can give each data processing unit addition upstream processing unit, downstream processing unit, parent
Processing unit, subclassing unit, wherein, it is transmitted by data object between data processing unit, data pair
As subsidiary association identification, newest processing unit and parent processing unit.Specifically, when data processing unit is created,
The newest processing unit that can be carried according to data object fills in the upstream processing unit for creating processing unit, and by right
Callback events mode as between by the backfill of the downstream processing unit of newest processing unit, as parent processing unit and
Subclassing unit is specified according to the association identification that data object is carried, it is intended that mode is such as upstream and downstream processing unit.
By way of associating upstream and downstream processing unit and father and son's class processing unit make between data processing unit, to define a net
Shape structure, so, when exception occurs in any one data processing unit, can be transferred through upstream and downstream processing unit and father
Abnormal information is quickly traveled to subclassing unit associated data processing unit, so as to being whole data processing
Process is quickly responded to abnormal.
Illustrate that the embodiment of the present application is set up in data processor between each data processing unit with an example below
Incidence relation:
Fig. 2 is the flow chart of the log processing according to the embodiment of the present application.As shown in Fig. 2 each step passes through one
Corresponding data processing unit realizes that log processing program includes that log read unit, daily record resolution unit and daily record are protected
Memory cell, wherein, log read unit includes configuration file reading unit, obtains filename unit, reads file list
Unit.It is transmitted by data object between data processing unit, data object subsidiary association identification, newest process list
Unit, three objects of parent processing unit, the incidence relation in log processing program between each data processing unit create
Process is as follows:
Step S1, log read, create log read processing unit object, wherein, parent, subclass, upstream and
Downstream processing unit object is appointed as sky, and creates data object, it is intended that the value of the association identification of data object is 0 (table
Show no parent processing unit), newest processing unit is entered as current processing unit (i.e. daily record reading processing unit),
Parent processing unit is entered as sky.
Step S2, configuration file read, and create configuration file reading unit object, according to the pass that data object is carried
The value of connection mark is 0, it is intended that the parent processing unit of current processing unit (i.e. configuration file reading unit) and upstream
The newest processing unit (i.e. daily record reading processing unit) that processing unit is carried in being data object, and by data pair
As the value of the association identification for carrying was changed to for 1 (expression belongs to subclassing unit).The parent that data object is carried processes single
The value of unit is appointed as the value of the newest processing unit of data object carrying, the value of the newest processing unit that data object is carried
Current processing unit (i.e. configuration file reading unit) is updated to, additionally, ought by the event call-back mode of object
Pretreatment unit is updated in the downstream processing unit of upstream processing unit.
Step S3, obtains filename, establishment file name processing unit object, according to the association mark that data object is carried
The value of knowledge is 1, it is intended that the parent processing unit of current processing unit (i.e. filename processing unit) is taken for data object
The parent processing unit of band, it is intended that the upstream processing unit of current processing unit (i.e. filename processing unit) is data
The newest processing unit that object is carried, and the value of the newest processing unit that data object is carried is updated to currently processed list
First (i.e. filename processing unit), the value of the value and parent processing unit of the association identification that data object is carried are constant.
Step S4, reads file stream, creates reading processing unit object, according to the association identification that data object is carried
Value be 1, it is intended that the parent processing unit of current processing unit (i.e. reading processing unit) be data object carry
The value of parent processing unit, it is intended that the upstream processing unit of current processing unit is the newest process list that data object is carried
The value of unit, and the value of the newest processing unit that data object is carried is updated to current processing unit (i.e. reading process list
Unit), the value of the association identification that data object is carried is updated to 2 (expression needs to create parent processing unit), data object
The parent processing unit of carrying is constant.
Step S5, daily record parsing, creates daily record resolution unit, and the value of the association identification carried according to data object is
2, it is intended that the parent processing unit of current processing unit (i.e. daily record resolution unit) is sky, it is intended that current processing unit
Upstream processing unit is the newest processing unit that data object is carried, and the newest processing unit that data object is carried is more
It is newly current processing unit, the value of the association identification that data object is carried is updated to 0, at the parent that data object is carried
The value of reason unit is sky.
Step S6, subsequent processes are with above-mentioned steps S1 to step S5.
The embodiment of the present application creates the incidence relation between each data processing unit by above-mentioned steps, and so any one
There is exception in individual processing unit, can be transferred through parent, subclass, upstream, downstream processing unit quickly by anomalous propagation
To associated processing unit, respective handling is carried out for associated processing unit, it is ensured that normal program operation is exited.
Step S106, sends information to the processing unit associated with the data processing unit that exception occurs, its
In, information exists in being used to point out data processor and abnormal data processing unit occurs.
There is abnormal data processing unit by whether there is in detection data processing routine in the embodiment of the present application, its
In, data processor includes multiple data processing units for performing data processing;Detecting data processing
When there is the data processing unit of generation exception in program, the process that abnormal data processing unit is associated is searched and occurs
Unit;And information is sent to the processing unit associated with the data processing unit that exception occurs, wherein, point out
Information exists in being used to point out data processor and abnormal data processing unit occurs, such that it is able to abnormal information is fast
Propagate to fastly and the data processing unit that abnormal data processing unit presence is associated occurs, at associated data
Reason unit carries out respective handling, it is ensured that normal program operation is exited, and solves in correlation technique to data handling procedure
The middle exception for occurring problem more poorly efficient when being processed, and then go out in having reached effectively processing data processing procedure
The effect of existing exception.
Specifically, in existing flow chart of data processing be mostly streamline processing form, for example, log processing stream
Journey, is stateless between data processing unit, i.e., data processing unit is not associated each other, in log processing
In flow process, any one data processing unit occurs abnormal, it is impossible to its upstream processing unit of fast notification and downstream processes list
Unit, cannot more notify parent processing unit and subclassing unit, cause its upstream processing unit, downstream processes list
Unit, parent processing unit and subclassing unit may proceed to operation, and occupying system resources affect systematic function.This Shen
Please embodiment by being associated to the data processing unit in data processor, for example, add association process unit
Information, so that association is set up between stateless data processing unit, this is provided to abnormal fast automatic propagation
Each data processing unit subsequent treatment after condition and abnormal generation provides condition, while simplifying at complex data
The abnormality processing of reason unit.
It should be noted that can be in such as one group of computer executable instructions the step of the flow process of accompanying drawing is illustrated
Perform in computer system, and, although show logical order in flow charts, but in some cases, can
With with different from the shown or described step of order execution herein.
According to the another aspect of the embodiment of the present application, there is provided a kind of exception handling device, the exception handling device can be with
For performing the abnormality eliminating method of the embodiment of the present application, the abnormality eliminating method of the embodiment of the present application can also be by this
The exception handling device of application embodiment is performing.
Fig. 3 is the schematic diagram of the exception handling device according to the embodiment of the present application, as shown in figure 3, the device includes:
Detector unit 10, searching unit 20 and transmitting element 30.
Detector unit 10, for the data processing unit in detection data processing routine with the presence or absence of generation exception, its
In, data processor includes multiple data processing units for performing data processing.
Data processor refers to the program for performing data processing, for example, web log processing programs.Data processing list
Unit performs the specific processing unit of data processing in referring to data processor, for example, in web log processing programs
Processing unit etc. is kept including log read processing unit, daily record dissection process unit and daily record.It should be noted that
Each data processing unit potentially includes the data processing unit of subclass, and for example, log read processing unit includes configuration
File reads subelement, acquisition filename subelement and file and reads subelement etc..
Searching unit 20, when there is abnormal data processing unit for existing in data processor is detected,
Search and the processing unit that abnormal data processing unit is associated occurs.
In a data processor, be probably annexation arranged side by side between data processing unit, for example it is, above-mentioned
Log read processing unit, daily record dissection process unit and daily record keep annexation i.e. arranged side by side between processing unit;
Nest relation is also likely to be present between data processing unit, for example, above-mentioned log read processing unit is read with configuration file
Subelement is taken, filename subelement and file is obtained and is read between subelement i.e. nest relation.
The embodiment of the present application exists in detector unit 10 detects data processor and abnormal data processing list occurs
When first, the data processing unit of the abnormal data processing unit association of the generation is searched by searching unit 20, for example,
The upstream processing unit of the abnormal data processing unit of the lookup of searching unit 20 generation, downstream processing unit, parent
Processing unit and subclassing unit etc..Alternatively, the device also includes:Creating unit, for creating data processing
Incidence relation in program between multiple data processing units.
Specifically, the incidence relation in creating unit establishment data processor between multiple data processing units can be
Designer creates the association in data processor between multiple data processing units and closes previously according to flow chart of data processing
System, or the incidence relation being automatically created between multiple data processing units.
Alternatively, data processor includes the first data processing unit, and creating unit includes:First detection module,
For detecting that the first data processing unit whether there is downstream processing unit;And first relating module, in detection
When going out the first data processing unit and there is downstream processing unit, the first data processing unit of association and the first data processing list
The downstream processing unit of unit.
Alternatively, data processor includes the first data processing unit, and creating unit includes:Second detection module,
For detecting that the first data processing unit whether there is parent processing unit;And second relating module, in detection
When going out the first data processing unit and there is parent processing unit, the first data processing unit of association and the first data processing list
The parent processing unit of unit.
Alternatively, the second detection module includes:Acquisition submodule, for obtaining the association identification of data object carrying,
Wherein, data object is the object that the first data processing unit is processed, and association identification is for the first data processing list of expression
Unit whether there is association process unit;Determination sub-module, for when the value of association identification is the first value, determining first
There is parent processing unit in data processing unit, when the value of association identification is not worth for first, determine the first data processing
There is no parent processing unit in unit.
Alternatively, data processor includes the first data processing unit, and creating unit includes:3rd detection module,
For detecting that the first data processing unit whether there is downstream processing unit and parent processing unit;3rd relating module,
For when detecting that the first data processing unit has downstream processing unit and parent processing unit, at the first data
Reason unit is associated with the downstream processing unit and parent processing unit of the first data processing unit respectively;4th association mould
Block, for detecting that the first data processing unit has downstream processing unit and the first data processing unit does not have father
Class processing unit, associates the downstream processing unit of the first data processing unit and the first data processing unit;And the 5th
Relating module, for processing unit and the first data processing unit are swum in the absence of the first data processing unit is detected
There is parent processing unit, associate the parent processing unit of the first data processing unit and the first data processing unit.
Transmitting element 30, for prompting letter is sent to the processing unit associated with the data processing unit that exception occurs
Breath, wherein, information exists in being used to point out data processor and abnormal data processing unit occurs.
The embodiment of the present application occurs at abnormal data by whether there is in 10 detection data processing routine of detector unit
Reason unit, wherein, data processor includes multiple data processing units for performing data processing;In detection
Unit has the abnormal data processing unit of generation in detecting data processor when, searching unit 20 is searched and is sent out
The processing unit of raw abnormal data processing unit association;And transmitting element 30 is to the data processing abnormal with generation
The processing unit of unit association sends information, wherein, information is present in being used to point out data processor to be sent out
Raw abnormal data processing unit, such that it is able to rapidly propagating to abnormal information and abnormal data processing list occurring
There is the processing unit of association in unit, the data processing unit for being associated carries out respective handling, it is ensured that normal program operation
Or exit, solve when the exception in correlation technique to occurring in data handling procedure is processed more poorly efficient asking
Topic, and then the effect of the exception occurred in having reached effectively processing data processing procedure.
Above-mentioned the embodiment of the present application sequence number is for illustration only, does not represent the quality of embodiment.
In above-described embodiment of the application, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment
The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, other can be passed through
Mode realize.Wherein, device embodiment described above is only schematic, such as described unit is drawn
Point, can be a kind of division of logic function, when actually realizing, can have an other dividing mode, such as multiple units or
Component can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another
Point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, list
Unit or INDIRECT COUPLING or the communication connection of module, can be electrical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can local to be located at one, or can also be distributed to
On multiple units.Some or all of unit therein can be selected according to the actual needs to realize this embodiment scheme
Purpose.
In addition, each functional unit in the application each embodiment can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.It is above-mentioned integrated
Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit
When, can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the application
The part for substantially contributing to prior art in other words or all or part of the technical scheme can be produced with software
The form of product is embodied, and the computer software product is stored in a storage medium, including some instructions to make
Obtain a computer equipment (can be personal computer, server or network equipment etc.) and perform each enforcement of the application
The all or part of step of example methods described.And aforesaid storage medium includes:USB flash disk, read only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive,
Magnetic disc or CD etc. are various can be with the medium of store program codes.
The above is only the preferred implementation of the application, it is noted that for the ordinary skill people of the art
For member, on the premise of without departing from the application principle, some improvements and modifications can also be made, these improve and moisten
Decorations also should be regarded as the protection domain of the application.
Claims (10)
1. a kind of abnormality eliminating method, it is characterised in that include:
With the presence or absence of the data processing unit that exception occurs in detection data processing routine, wherein, at the data
Reason program includes multiple data processing units for performing data processing;
When there is the data processing unit of generation exception in the data processor is detected, search and occur
The processing unit of abnormal data processing unit association;And
Information is sent to the processing unit associated with the data processing unit that exception occurs, wherein, it is described to carry
Show information and abnormal data processing unit occurs for pointing out to exist in the data processor.
2. method according to claim 1, it is characterised in that exist in the data processor is detected and send out
During the data processing unit of raw exception, before searching the processing unit associated with the data processing unit that exception occurs,
Methods described also includes:
Create the incidence relation between multiple data processing units in the data processor.
3. method according to claim 2, it is characterised in that the data processor includes the first data processing
Unit, the incidence relation in the establishment data processor between multiple data processing units include:
Detect that first data processing unit whether there is downstream processing unit;And
When detecting that first data processing unit has the downstream processing unit, first number is associated
According to processing unit and the downstream processing unit of first data processing unit.
4. method according to claim 2, it is characterised in that the data processor includes the first data processing
Unit, the incidence relation in the establishment data processor between multiple data processing units include:
Detect that first data processing unit whether there is parent processing unit;And
When detecting that first data processing unit has the parent processing unit, first number is associated
According to processing unit and the parent processing unit of first data processing unit.
5. method according to claim 4, it is characterised in that detection first data processing unit whether there is
Parent processing unit includes:
The association identification that data object is carried is obtained, wherein, the data object is the first data processing list
The object that unit is processed, the association identification are used to represent that first data processing unit whether there is association process
Unit;
If the value of the association identification is the first value, it is determined that first data processing unit has the father
Class processing unit;And
If the value of the association identification is not the described first value, it is determined that first data processing unit is not deposited
In parent processing unit.
6. method according to claim 2, it is characterised in that the data processor includes the first data processing
Unit, the incidence relation in the establishment data processor between multiple data processing units include:
Detect first data processing unit with the presence or absence of downstream processing unit and parent processing unit;
When detecting that first data processing unit has downstream processing unit and parent processing unit, by institute
State the first data processing unit and process single with the downstream processing unit and parent of first data processing unit respectively
Unit's association;
Detecting that first data processing unit has downstream processing unit and first data processing unit
There is no parent processing unit, associate under first data processing unit and first data processing unit
Trip processing unit;And
Processing unit and the first data processing list are swum in the absence of first data processing unit is detected
There is parent processing unit in unit, associate the father of first data processing unit and first data processing unit
Class processing unit.
7. a kind of exception handling device, it is characterised in that include:
Detector unit, for the data processing unit in detection data processing routine with the presence or absence of generation exception, its
In, the data processor includes multiple data processing units for performing data processing;
, there is abnormal data processing unit for existing in the data processor is detected in searching unit
When, search and the processing unit that abnormal data processing unit is associated occurs;And
Transmitting element, for sending information to the processing unit associated with the data processing unit that exception occurs,
Wherein, the information exists in being used to point out the data processor and abnormal data processing unit occurs.
8. device according to claim 7, it is characterised in that described device also includes:
Creating unit, for creating the incidence relation in the data processor between multiple data processing units.
9. device according to claim 8, it is characterised in that the data processor includes the first data processing
Unit, the creating unit include:
First detection module, for detecting that first data processing unit whether there is downstream processing unit;With
And
First relating module, for when detecting that first data processing unit has downstream processing unit,
Associate the downstream processing unit of first data processing unit and first data processing unit.
10. device according to claim 8, it is characterised in that the data processor includes the first data processing
Unit, the creating unit include:
Second detection module, for detecting that first data processing unit whether there is parent processing unit;With
And
Second relating module, for when detecting that first data processing unit has parent processing unit,
Associate the parent processing unit of first data processing unit and first data processing unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510664598.9A CN106598764B (en) | 2015-10-14 | 2015-10-14 | Abnormality eliminating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510664598.9A CN106598764B (en) | 2015-10-14 | 2015-10-14 | Abnormality eliminating method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106598764A true CN106598764A (en) | 2017-04-26 |
CN106598764B CN106598764B (en) | 2019-12-03 |
Family
ID=58552208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510664598.9A Active CN106598764B (en) | 2015-10-14 | 2015-10-14 | Abnormality eliminating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106598764B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080086515A1 (en) * | 2006-10-06 | 2008-04-10 | International Business Machines Corporation | Method and System for a Soft Error Collection of Trace Files |
CN104036034A (en) * | 2014-06-30 | 2014-09-10 | 百度在线网络技术(北京)有限公司 | Log analysis method and device for data warehouse |
CN104253715A (en) * | 2013-06-28 | 2014-12-31 | 鸿富锦精密工业(深圳)有限公司 | Monitoring system and method of multi-level cascade business |
-
2015
- 2015-10-14 CN CN201510664598.9A patent/CN106598764B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080086515A1 (en) * | 2006-10-06 | 2008-04-10 | International Business Machines Corporation | Method and System for a Soft Error Collection of Trace Files |
CN104253715A (en) * | 2013-06-28 | 2014-12-31 | 鸿富锦精密工业(深圳)有限公司 | Monitoring system and method of multi-level cascade business |
CN104036034A (en) * | 2014-06-30 | 2014-09-10 | 百度在线网络技术(北京)有限公司 | Log analysis method and device for data warehouse |
Also Published As
Publication number | Publication date |
---|---|
CN106598764B (en) | 2019-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2252021B1 (en) | Treatment of web feeds as work assignment in a contact center | |
US7908160B2 (en) | System and method for producing audit trails | |
US9961162B2 (en) | Disambiguating online identities | |
US20100169153A1 (en) | User-Adaptive Recommended Mobile Content | |
US8612375B2 (en) | Dynamic playbook: experimentation platform for social networks | |
US10430420B2 (en) | Weighting sentiment information | |
WO2012012080A2 (en) | Extracting facts from social network messages | |
CN107748790B (en) | Online service system, data loading method, device and equipment | |
US8560606B2 (en) | Social network informed mashup creation | |
JP5373818B2 (en) | Centralized social network response tracking | |
CN110659404B (en) | Information recommendation method, device and storage medium | |
CN108512726A (en) | A kind of method and apparatus of data monitoring | |
CN112636942A (en) | Method and device for monitoring service host node | |
US8712100B2 (en) | Profiling activity through video surveillance | |
US20110055230A1 (en) | Community-Based Knowledge Sharing | |
CN106844423A (en) | A kind of method and device of Data Detection | |
US20170337192A1 (en) | Network node, indexing server and methods performed thereby for supportingindexing of audio visual content | |
CN116545740B (en) | Threat behavior analysis method and server based on big data | |
CN110336731B (en) | User matching method and device in group | |
CN110324588B (en) | Video analysis warning event information storage method based on dictionary structure | |
US10135926B2 (en) | Shuffle embedded distributed storage system supporting virtual merge and method thereof | |
CN107729206A (en) | Real-time analysis method, system and the computer-processing equipment of alarm log | |
CN116820874A (en) | Enterprise-level big data component and method for monitoring and alarming application | |
CN106598764A (en) | Exception handling method and device | |
CN114579416B (en) | Index determination method, device, server and medium |
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 | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |