CN111563007A - Operation error repairing method, device, computer system and readable storage medium - Google Patents
Operation error repairing method, device, computer system and readable storage medium Download PDFInfo
- Publication number
- CN111563007A CN111563007A CN202010343420.5A CN202010343420A CN111563007A CN 111563007 A CN111563007 A CN 111563007A CN 202010343420 A CN202010343420 A CN 202010343420A CN 111563007 A CN111563007 A CN 111563007A
- Authority
- CN
- China
- Prior art keywords
- data
- snapshot
- target data
- index
- error
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
- G06F11/1451—Management of the data involved in backup or backup restore by selection of backup contents
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to a block chain technology, and discloses an operation error repairing method, an operation error repairing device, a computer system and a readable storage medium, which are used for identifying and repairing errors occurring in the process of obtaining target data by operating bottom layer data of production equipment, and comprise the following steps: acquiring target data and index blood margin thereof; comparing the target data with the latest data, and judging whether the target data has mutation or not; if so, identifying link data with errors in the index blood margin of the target data; if not, storing the target data and the index blood margin thereof into a preset database; and index correction or data correction is carried out on the link data to repair the link data, new target data and corresponding index blood margin are obtained, and the new target data and the corresponding index blood margin are stored in a database. The invention identifies the link with errors in the process of obtaining the target data by operating the bottom data, and realizes the technical effects of identifying the data in the error link and repairing the operation errors of the production equipment.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for recovering an operation error, a computer system, and a readable storage medium.
Background
Big data (big data, mega data) or huge data refers to massive, high growth rate and diversified information assets which need a new processing mode to have stronger decision power, insight and flow optimization capability. Currently, the analysis of big data mainly adopts a method of summarizing and summarizing the big data based on multiple dimensions and various indexes to obtain a specific rule in the big data. However, since the information in the big data is too huge, the calculation process of the big data is easy to be wrong, and the summary of the big data is inaccurate.
The currently used method is to reversely deduce the summarized result through a table and intermediate data to obtain the error occurring region, and the method can only roughly identify the error occurring position, and cannot accurately obtain the error occurring link data, so that the link data is difficult to repair.
Disclosure of Invention
The invention aims to provide an operation error repairing method, an operation error repairing device, a computer system and a readable storage medium, which are used for solving the problem that in the prior art, error link data cannot be accurately obtained, so that the link data is difficult to repair.
In order to achieve the above object, the present invention provides an operation error recovery method for identifying and recovering errors occurring during a process of obtaining target data by operating underlying data by a production device, including:
acquiring target data and index blood margin thereof; the index blood margin represents the whole process of operating bottom layer data by production equipment to obtain the target data;
comparing the target data with the latest data, and judging whether mutation occurs in the target data; if so, identifying link data with errors in the index blood margin of the target data through a recursive algorithm; if not, storing the target data and the index blood relationship thereof into a preset database; wherein the latest data refers to target data recently obtained by the production equipment;
and index correction or data correction is carried out on the link data to repair the link data, new target data and corresponding index blood margins are obtained, and the new target data and the corresponding index blood margins are stored in the database.
In the above scheme, before obtaining the target data and the index blood margin thereof, the method further comprises:
the method comprises the steps of obtaining update data formed by updating bottom layer data of production equipment to make an update snapshot, obtaining a process of operating the update data by the production equipment to obtain target data to make an operation snapshot, and using the update snapshot and the operation snapshot as index consanguinity of the target data to reflect the whole process of operating the bottom layer data by the production equipment to obtain the target data.
In the above scheme, the step of obtaining update data formed by updating the underlying data of the production equipment to make an update snapshot includes:
receiving a trigger signal generated when the production equipment updates the bottom layer data to form the updated data, controlling the production equipment to suspend operation of the updated data according to the trigger signal, and acquiring the updated data to make an updated snapshot.
In the above scheme, the step of obtaining a process of operating the update data by the production equipment to obtain the target data to make an operation snapshot includes:
triggering the production equipment to operate the updated data according to the updated snapshot, and detecting whether a stage index appears in the operation process; the stage indexes refer to stage results generated in the process of operating and updating data by the production equipment;
if yes, the operation is suspended, operation snapshots of the stage indexes are made, and the production equipment is triggered to continue the operation according to the operation snapshots.
In the above scheme, the step of comparing the target data with the latest data and judging whether the target data has a mutation includes:
setting the latest target data in the database as the latest data, and comparing the difference value between the target data and the latest data to obtain a check difference value;
judging whether the check difference value meets a preset expected threshold value or not; if the expected threshold value is not met, determining that the target data has errors; if the expected threshold is met, determining that the target data has no errors.
In the above scheme, the step of identifying, by a recursive algorithm, link data in which an error occurs in an index blood margin of the target data includes:
extracting an index blood margin of the target data, and performing descending arrangement on the operation snapshots according to the generation time of the operation snapshots in the index blood margin to obtain snapshot sequencing;
sequentially carrying out trial-and-error operation on the operation snapshots according to the snapshot sorting to obtain a test difference value, and judging whether the test difference value meets the expected threshold value; if so, determining the operation snapshot as the wrong link data; if not, acquiring the next sequential operation snapshot in the snapshot sorting and carrying out trial and error operation until the operation snapshot with the test difference value meeting the expected threshold value is obtained, or completing the trial and error operation of all the operation snapshots in the snapshot sorting; the trial and error operation adopts an operation method used by the production equipment for operating the stage indexes in the operation snapshot to obtain the target data;
if the trial and error operation of all the operation snapshots in the snapshot sorting is completed and the test data meeting the expected threshold value cannot be obtained, extracting the updated snapshot of the index blood margin and carrying out trial and error operation on the updated snapshot to obtain a test difference value, and judging whether the test difference value meets the expected threshold value or not; and if so, setting the updated snapshot as the wrong link data, otherwise, deleting the target data and the index blood margin thereof and ending.
In the above scheme, the step of performing index correction or data correction on the link data to repair the link data includes:
detecting a snapshot corresponding to the link data with the error; if the snapshot is an operation snapshot, setting the snapshot as a correction snapshot and performing index correction on the target data and the index blood margin thereof to obtain new target data and corresponding index blood margin; if the snapshot is an updating snapshot, setting the snapshot as a correcting snapshot and performing data correction on the target data and the index blood margin thereof to obtain new target data and corresponding index blood margin;
index correction, namely deleting all running snapshots from the running snapshot at the head in the running sequence to the running snapshot before the corrected snapshot; triggering the production equipment to perform the trial and error operation on the stage indexes in the correction snapshot, detecting whether the stage indexes appear in the trial and error operation process, if so, suspending the trial and error operation and making a repair snapshot of the stage indexes, and triggering the production equipment to continue the trial and error operation according to the operation snapshot; taking all the running snapshots from the running snapshot at the last position to the correction snapshot in the running sequence, the correction snapshot, the repair snapshot and the update snapshot as new target data and corresponding index blood margins;
data correction, namely deleting all running snapshots in the index blood margin, triggering the production equipment to perform trial and error operation on corrected data in the corrected snapshots, detecting whether a stage index appears in the trial and error operation process, if so, suspending the trial and error operation and making a repair snapshot of the stage index, and triggering the production equipment to continue the trial and error operation according to the operation snapshot; and taking the updating snapshot and the repairing snapshot as new target data and corresponding index blood margin.
In order to achieve the above object, the present invention further provides an operation error recovery apparatus for identifying and recovering an error occurring during a process of obtaining target data by operating underlying data in a production facility, including:
the information acquisition module is used for acquiring target data and index blood margin thereof; the index blood margin represents the whole process of operating bottom layer data by production equipment to obtain the target data;
the error judgment module is used for comparing the target data with the latest data and judging whether mutation occurs in the target data; if so, identifying link data with errors in the index blood margin of the target data through a recursive algorithm; if not, storing the target data and the index blood relationship thereof into a preset database; wherein the latest data refers to target data recently obtained by the production equipment;
and the error repairing module is used for performing index correction or data correction on the link data to repair the link data, acquiring new target data and corresponding index blood margin, and storing the new target data and the corresponding index blood margin into the database.
Link data new target data and corresponding latest data link data new target data and corresponding link data new target data
The present invention also provides a computer system including a plurality of computer devices, each computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processors of the plurality of computer devices collectively implement the steps of the above-described operation error recovery method when executing the computer program.
In order to achieve the above object, the present invention further provides a computer-readable storage medium, which includes a plurality of storage media, each storage medium storing a computer program, and the computer programs stored in the storage media, when executed by a processor, collectively implement the steps of the above operation error recovery method.
According to the operation error repairing method, the operation error repairing device, the computer system and the readable storage medium, the index blood margin is identified through the recursive algorithm, the link data with errors in the process of obtaining the target data by operating the bottom data of the production equipment is efficiently identified, and the technical effect of identifying the error link data is achieved; by repairing the link data and generating new target data and corresponding index blood margin, the technical effect of repairing the operation error of the production equipment (namely the error link data) is realized.
Drawings
FIG. 1 is a flowchart illustrating a first method for recovering operation errors according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a process between a server and a manufacturing apparatus running an operation error recovery method according to a second embodiment of the operation error recovery method of the present invention;
FIG. 3 is a flowchart illustrating a method of repairing an operation error according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of the method for recovering operational errors according to the present invention, wherein a recursive algorithm is used to identify link data in which an error occurs in an index blood margin of the target data;
FIG. 5 is a flowchart illustrating a method for repairing the ring data to obtain new target data and corresponding index blood margin according to a second embodiment of the present invention;
FIG. 6 is a block diagram of a third embodiment of an apparatus for computing an error recovery;
fig. 7 is a schematic diagram of a hardware structure of a computer device according to a fourth embodiment of the computer system of the present invention.
Reference numerals:
1. operation error repair device 2, server 3, network 4, production equipment 5, computer equipment 11, information acquisition module 12, error judgment module 13, error repair module 51, memory 52 and processor
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides an operation error repairing method, an operation error repairing device, a computer system and a readable storage medium, which are suitable for the technical field of computers and provide an operation error repairing method based on an information acquisition module, an error judgment module and an error repairing module. According to the invention, through the identification of the index blood margin by the recursive algorithm, the link data with errors in the process of obtaining the target data by operating the bottom data by the production equipment is efficiently identified, and the technical effect of identifying the error link data is realized; by repairing the data in the link and generating new target data and corresponding index blood margin, the technical effect of repairing the operation error of the production equipment is realized.
Example one
Referring to fig. 1, an operation error recovery method of this embodiment is used to identify and recover an error occurring during a process of obtaining target data by operating bottom layer data by a production device, and includes:
s101: acquiring target data and index blood margin thereof; the index blood margin represents the whole process of operating bottom layer data by production equipment to obtain the target data;
s102: comparing the target data with the latest data, and judging whether mutation occurs in the target data; if so, identifying link data with errors in the index blood margin of the target data through a recursive algorithm; if not, storing the target data and the index blood relationship thereof into a preset database; wherein the latest data refers to target data recently obtained by the production equipment;
s103: and index correction or data correction is carried out on the new target data and the corresponding link data to repair the link data, the new target data and the corresponding index blood margin are obtained, and the new target data and the corresponding index blood margin are stored in the database.
The index blood margin is identified through the recursive algorithm, link data with errors are efficiently identified in the process of obtaining target data by operating bottom data of production equipment, and the technical effect of identifying the error link data is achieved; by repairing the data in the link and generating new target data and corresponding index blood margin, the technical effect of repairing the operation error of the production equipment is realized.
Example two
The embodiment is a specific application scenario of the first embodiment, and the method provided by the present invention can be more clearly and specifically explained through the embodiment.
The method provided by this embodiment is specifically described below by taking an example of the method for acquiring root rights and acquiring a logical image file from a terminal running an IOS operating system. It should be noted that the present embodiment is only exemplary, and does not limit the protection scope of the embodiments of the present invention.
Fig. 2 schematically shows an environment application diagram of the operation error recovery method according to a first embodiment of the present application.
In the exemplary embodiment, the server 2 in which the encrypted information extraction method is located is connected to at least one production apparatus 4 via a network 3, the database being provided in the server 2; the server 2 may provide services through one or more networks 3, which networks 3 may include various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and/or the like. The network 3 may include physical links, such as coaxial cable links, twisted pair cable links, fiber optic links, combinations thereof, and/or the like. The network 3 may include wireless links, such as cellular links, satellite links, Wi-Fi links, and/or the like;
the production device 4 may be a server or a server cluster running a computer program, or a PC (e.g., a personal computer) with a Mac OS X, or Windows, or Linux, or BSD platform, or a mobile communication device (e.g., a smart phone) with an android or IOS platform.
Fig. 3 is a flowchart of an embodiment of a method for recovering an operation error, which includes steps S200 to S204.
S200: the method comprises the steps of obtaining update data formed by updating bottom layer data of production equipment to make an update snapshot, obtaining a process of operating the update data by the production equipment to obtain target data to make an operation snapshot, and using the update snapshot and the operation snapshot as index consanguinity of the target data to reflect the whole process of operating the bottom layer data by the production equipment to obtain the target data.
In order to obtain the whole process of obtaining target data by obtaining the operational bottom data of the production equipment, the step makes a snapshot through the operational process of the production equipment so as to obtain an updated snapshot and an operational snapshot, thereby realizing the acquisition of the operational process data; moreover, the environment of the production equipment during operation of the bottom layer data is completely recorded in the snapshot, so that the problem that the accuracy of region identification is reduced due to the fact that the reverse-pushing result is interfered by the change of the bottom layer data of the production equipment or the operation environment of the updated bottom layer data obtained by updating the bottom layer data when the reverse-pushing after the summarized result is obtained manually is solved.
It should be noted that the snapshot refers to a copy of data generated by copying the data before the change; in this embodiment, the snapshot adopts a cold snapshot copy technology, and the cold quick-find copy technology is a snapshot making technology based on cold backup, where cold backup refers to a complete backup of a database performed in a situation where the database is closed and cannot be updated, and therefore, the cold snapshot copy technology is a most secure way to ensure that a system can be completely restored. The snapshot module is a computer program running with a cold snapshot copy technology; the index blood margin refers to the change of data in each level under a calculation rule in the process of recording original data to obtain target data according to the calculation rule.
In a preferred embodiment, the step of obtaining the update data formed by the production equipment updating its underlying data to make the update snapshot includes:
receiving a trigger signal generated when the production equipment updates the bottom layer data to form the updated data, controlling the production equipment to suspend operation of the updated data according to the trigger signal, and acquiring the updated data to make an updated snapshot.
In the step, the production equipment acquires a corresponding production database according to the real-time data and acquires a corresponding dimension table according to the dimension mark; the production equipment obtains updated data by calculating the real-time data and the bottom layer in the dimension table and writes the updated data into the dimension table to update the dimension table; the production equipment can add and sum the two independent variables, can also carry out weighted summation on the two independent variables according to different weight coefficients, or can calculate the bottom layer data in the real-time data and the dimension table in a mode of multiplying or dividing the two independent variables, wherein the two independent variables are the real-time data and the bottom layer data respectively, and the dependent variable is the updated data. For example: the real-time data is 1, the bottom layer data is 2, if the data rule is a summation procedure, the update data 1+2 is 3, and the update data 3 is overlaid on the bottom layer data 2 to achieve the effect of updating the bottom layer data of the database, so that the bottom layer data of the production equipment is a20 before updating, and the bottom layer data of the dimension table obtained by updating the real-time data is a 30.
In this embodiment, a trigger signal sent by a production device according to update data is received, where the trigger signal has a database where the update data is located and mark information of a dimension table, and the updated dimension table is obtained according to the mark information of the trigger signal, so as to lock updated bottom layer data in the dimension table; and making an update snapshot for the updated bottom data in the dimension table.
It should be noted that, it is prior art that the production device updates the bottom layer data according to the real-time data, and how to store the content of the bottom layer data before the production device receives the real-time data and the content of the updated data after the production device updates the real-time data is solved in this application, so the process of the generation device updating the bottom layer data through the real-time data is not described in detail in this application.
In a preferred embodiment, the step of obtaining a process of operating the update data by the production equipment to obtain the target data to make an operation snapshot includes:
triggering the production equipment to operate the updated data according to the updated snapshot, and detecting whether a stage index appears in the operation process; the stage indexes refer to stage results generated in the process of operating and updating data by the production equipment;
if yes, the operation is suspended, operation snapshots of the stage indexes are made, and the production equipment is triggered to continue the operation according to the operation snapshots.
In this embodiment, the production device calculates the update data according to a preset service rule to obtain the target data, where the service rule is a rule algorithm used by the production device to calculate the update data to obtain the target data, and each rule is set by a developer according to a function and an action of the generation device. Further, the business rule has at least one hierarchy and a calculation rule defining a dependency relationship between the hierarchies, and thus, by recording the update data in the hierarchy located at the head, the stage data of each hierarchy is sequentially calculated according to the calculation rule and finally the target data is obtained. The business rule is assumed to have a plurality of levels, wherein the phase indexes of the first level are obtained by calculating the underlying data through a calculation rule; except the first level, the stage indexes of any level are obtained by calculating the stage indexes of the previous level through a calculation rule.
For example: the calculation of the stage index of the level 4 depends on the stage index of the level 3, the calculation of the stage index of the level 3 depends on the stage index calculation of the level 2, the calculation of the stage index of the level 2 depends on the stage index of the level 1, and the calculation of the stage index of the level 1 depends on the bottom data; assuming that the calculation rule is to sequentially increase the phase indexes by one according to the increase of the hierarchy, if the bottom level data is A30, the phase index of the hierarchy 1 is A31, and so on, the phase index of the hierarchy 4 is A34; when the stage indexes of the level 1 obtain the stage data A31 through bottom data calculation, suspending the calculation of the service rules, and making an operation snapshot on the stage data A31 through a triggering snapshot module; if the business rules have a total of 4 levels, then the level 4 phase index A34 is set as the target data.
In this embodiment, in S2, the target data, the update snapshot, and the operation snapshot are stored in the repair database and are associated with each other, and the target data, the update snapshot, and the operation snapshot are summarized to form a data set, so as to implement association of the target data, the update snapshot, and the operation snapshot, where the data set is an index blood margin of the target data.
S201: acquiring target data and index blood margin thereof;
and the index blood margin represents the whole process of operating the bottom layer data by the production equipment to obtain the target data.
S202: comparing the target data with the latest data, and judging whether mutation occurs in the target data; if so, identifying link data with errors in the index blood margin of the target data through a recursive algorithm; if not, storing the target data and the index blood relationship thereof into a preset database; wherein the latest data refers to target data recently obtained by the production equipment;
in order to identify link data with errors in the target data, the index blood margin is identified through a recursive algorithm, link data with errors in the process of obtaining the target data by operating the bottom data of the production equipment is efficiently identified, and the technical effect of identifying the error link data is achieved.
In this embodiment, before determining whether the target data has an error, the method further includes:
judging whether the target data has invalid information or not; if the information is invalid, generating an abnormal signal; if the invalid information is not present, a valid signal is generated.
In the step, providing an invalid code set, sequentially comparing invalid codes in the invalid code set with the target data, and if the target data is inconsistent with all the invalid codes, judging that the target data does not have invalid information and generating a valid signal; and if the target data is at least consistent with one invalid code, judging that invalid information exists in the target data and generating an abnormal signal. Wherein the invalid codes in the invalid code set include, but are not limited to! @, #? And &.
Therefore, the step mainly transmits the data error of the obtained target data to the client through the abnormal signal, and the error can be caused by the system error of the server operated by the business rule, so that the user can conveniently check the system error through the step.
In a preferred embodiment, the step of comparing the target data with the latest data and determining whether the target data has a mutation includes:
setting the latest target data in the database as the latest data, and comparing the difference value between the target data and the latest data to obtain a check difference value;
in the step, the difference value between the target data and the latest data is compared through a check rule to obtain a check difference value, wherein the check rule is a rule for identifying the difference value of the target data in the operation process and can be set by a user according to the requirement of the user; the effective signal is recorded with the code of the business rule, the target data obtained by the business rule is obtained recently in the database through the index code, and the target data is used as the latest data.
For example: the check rule can be set to subtract the ones digit of the target data from the ones digit of the latest data, and/or subtract the result value of the target data from the result value of the latest data to obtain the growth rate of the target data compared with the latest data, and/or compare the text of the target data with the text of the latest data, and generate a comparison result 0 if the two texts are consistent, and generate a comparison result 1 if the two texts are not consistent.
Based on the above example, if the previous target data is a24 and the current target data is a34, the check difference obtained by the check rule is: 4-4 ═ 0.
Judging whether the check difference value meets a preset expected threshold value or not; if the expected threshold value is not met, determining that the target data has errors; if the expected threshold is met, determining that the target data has no errors.
In this step, the expected threshold is set based on the verification rule and according to the needs of the user, and may be a specific value, such as: 0. 1, 2, 3, or a range of values, such as: 0,1), may also be a set of values, such as {0}, and may also be a growth rate, such as: 50 percent.
Illustratively, assuming that the desired threshold is 0, if the target data is a34 and the latest data is a25, then the check difference obtained is 4-5-1, and thus does not meet the desired threshold of 0. And/or, assuming that the expected threshold is 50%, if the target data is a39 and the latest data is a25, the obtained check difference is 39-25-14, so that the target data has an increase rate of more than 50% compared with the latest data, and thus the expected threshold is not met by 50%. And/or, assuming that the expected threshold is {0}, if the target data is B35 and the latest data is A25, comparing the text B of the target data with the text A of the latest data, judging that the two texts are inconsistent and generating a comparison result 1, wherein the comparison result does not meet the expected threshold {0 }.
Therefore, in this step, the bottom layer data of the obtained target data or the information that an operation error occurs in the operation process of the bottom layer data is transmitted to the client through the exception signal. Meanwhile, the abnormal signal in the step also identifies the real abnormal condition, for example, if the number of people in a certain area is increased explosively in a short time, the user at the user end can be reminded through the abnormal signal to observe whether the error occurs in the calculation process of the target data, if the error does not occur, the situation of disaster possibly occurs in the time, and the user can be helped to prepare as soon as possible.
In a preferred embodiment, referring to fig. 4, the step of identifying, by a recursive algorithm, a segment data in which an error occurs in the index blood margin of the target data includes:
s202-1: extracting an index blood margin of the target data, and performing descending arrangement on the operation snapshots according to the generation time of the operation snapshots in the index blood margin to obtain snapshot sequencing;
in this step, the generation time may be obtained by obtaining a timestamp of the running snapshot, where the timestamp is generated by the production equipment during the data processing of the underlying data and is used to reflect time information of the generation time of the operational snapshot, and the timestamp is loaded into the operational snapshot when the operational snapshot is generated.
S202-2: sequentially carrying out trial-and-error operation on the operation snapshots according to the snapshot sorting to obtain a test difference value, and judging whether the test difference value meets the expected threshold value; if so, determining the operation snapshot as the wrong link data; if not, acquiring the next sequential operation snapshot in the snapshot sorting and carrying out trial and error operation until the operation snapshot with the test difference value meeting the expected threshold value is obtained, or completing the trial and error operation of all the operation snapshots in the snapshot sorting; the trial and error operation adopts an operation method used by the production equipment for operating the stage indexes in the operation snapshot to obtain the target data.
For example: extracting an operation snapshot located at the first position of operation sequencing, if the operation snapshot is extracted as A32, adding one to the index A32 of the stage through a calculation rule in a service rule to obtain test data A33, and obtaining a verification difference value of "-1" according to a verification rule, namely the verification difference value does not meet an expected threshold value;
continuously extracting the operation snapshot corresponding to the next operation label A02, if the stage index extracted from the operation snapshot is A32 and the calculation rule of the service rule is adopted, performing one-step calculation on the stage index A32 according to the hierarchy to obtain test data A34, and if the check difference value obtained according to the check rule is '0', the test data accords with the expected threshold value;
the phase indexes of the operation snapshots corresponding to the obtained operation labels A02 are used for obtaining test data A34 meeting the expected threshold value through the business rule, and then the calculation is stopped and the operation labels A02 of the operation snapshots of the test data A34 are extracted; in the operation sorting, the operation label a03 located at the first bit of the operation label a02 is set as an error label, and the stage index a32 of the operation snapshot corresponding to the error label a03 is determined as the error link data.
S202-3: if the trial and error operation of all the operation snapshots in the snapshot sorting is completed and the test data meeting the expected threshold value cannot be obtained, extracting the updated snapshot of the index blood margin and carrying out trial and error operation on the updated snapshot to obtain a test difference value, and judging whether the test difference value meets the expected threshold value or not; and if so, setting the updated snapshot as the wrong link data, otherwise, deleting the target data and the index blood margin thereof and ending.
Exemplarily, it is assumed that the check rule includes subtracting the ones digit of the target data from the ones digit of the latest data, and also includes subtracting the tens digit of the target data from the tens digit of the latest data, and if the previous target data is a24, the current target data is a 34; the first check difference obtained by the check rule is then: 4-4 is 0, and the second check difference obtained by the check rule is: 3-2 ═ 1. The expected threshold is {0,1}, and the expression means that the first check difference value should meet the expected threshold 0, and the second check difference value should meet the expected threshold 1; it can be determined that the current target data meets the expected threshold.
However, if the target data of this time is a24, even if the test data meeting the expected threshold 0 is obtained, the test data meeting the expected threshold 1 cannot be obtained, and at this time, the bottom labels of the updated snapshots need to be sorted in descending order to obtain the bottom ranking, such as: AD03, AD02, AD 01; the bottom data of the updated snapshot corresponding to the bottom label is respectively: a20, a20, a 10; firstly, extracting an update snapshot corresponding to AD03, if bottom-layer data A20 in the update snapshot is extracted, performing one-addition calculation on the index A20 in the stage according to a calculation rule in a service rule to obtain test data A24, and if a check difference value obtained according to the check rule is '0', the test data does not meet an expected threshold value; therefore, the updated snapshot corresponding to the next bottom label AD02 is continuously extracted, if the bottom data extracted from the updated snapshot is a20, the bottom data a20 is updated to a30, and through the calculation rule of the business rule, a step of adding one to the a30 according to the hierarchy is performed to obtain test data a34, and the check difference value obtained according to the check rule is "1", that is, the test data meets the expected threshold value.
The step aims to solve the problem that when target data which does not meet an expected threshold value is generated, namely, an operation error in a non-business rule or an error occurs in updated data, the target data is bottom data, or the business rule itself or a server where the business rule is located is in error, therefore, by determining that the bottom data, the business rule and the server where the business rule is located are in error link data, a checking prompt is sent to a user, namely, the user can mainly check whether an operation program of the server or a program code of the business rule is in error, so that the user can conveniently perform error checking.
S203: and index correction or data correction is carried out on the link data to repair the link data, new target data and corresponding index blood margins are obtained, and the new target data and the corresponding index blood margins are stored in the database.
The new target data and the corresponding link data which are in error for repairing are used for obtaining the target data without the error, and the technical effect of repairing the operation error of the production equipment is realized by repairing the link data and generating the new target data and the corresponding index blood margin.
In a preferred embodiment, referring to fig. 5, index correction or data correction is performed on the link data to repair new target data of the link data, and the corresponding steps include:
s203-1: detecting a snapshot corresponding to the link data with the error;
s203-2: if the snapshot is an operation snapshot, setting the snapshot as a correction snapshot and performing index correction on the target data and the index blood margin thereof to obtain new target data and corresponding index blood margin;
s203-3: and if the snapshot is an updating snapshot, setting the snapshot as a correcting snapshot and performing data correction on the target data and the index blood margin thereof to obtain new target data and corresponding index blood margin.
Index correction, namely deleting all running snapshots from the running snapshot at the head in the running sequence to the running snapshot before the corrected snapshot; triggering the production equipment to perform the trial and error operation on the stage indexes in the correction snapshot, detecting whether the stage indexes appear in the trial and error operation process, if so, suspending the trial and error operation and making a repair snapshot of the stage indexes, and triggering the production equipment to continue the trial and error operation according to the operation snapshot; taking all the running snapshots from the running snapshot at the last position to the correction snapshot in the running sequence, the correction snapshot, the repair snapshot and the update snapshot as new target data and corresponding index blood margins;
data correction, namely deleting all running snapshots in the index blood margin, triggering the production equipment to perform trial and error operation on corrected data in the corrected snapshots, detecting whether a stage index appears in the trial and error operation process, if so, suspending the trial and error operation and making a repair snapshot of the stage index, and triggering the production equipment to continue the trial and error operation according to the operation snapshot; and taking the updating snapshot and the repairing snapshot as new target data and corresponding index blood margin.
Preferably, to further ensure the privacy and security of all the data present, all the data may also be stored in a node of a block chain. For example, index consanguinity, target data, and production equipment operation underlying data may all be stored in blockchain nodes.
It should be noted that the blockchain in the present invention is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
In the step, the link data with errors in the running snapshot is checked, so that production equipment does not need to perform trial and error operation on the corrected snapshot and generate new target data and corresponding index blood margins, the occurrence of repeated operation is avoided, and the efficiency of error repairing of the link data with errors is improved.
EXAMPLE III
Referring to fig. 6, an operation error recovery apparatus 1 of the present embodiment is used for identifying and recovering an error occurring in a process of obtaining target data by operating bottom layer data by a production device, and includes:
the information acquisition module 11 is used for acquiring target data and index blood margin thereof; the index consanguinity reflects the whole process of obtaining target data by operating bottom data by production equipment;
an error judgment module 12, configured to judge whether the target data has an error; if so, identifying link data with errors in the index blood margin of the target data through a recursive algorithm; if not, storing the target data and the index blood relationship thereof into a preset database;
and an error repairing module 13, configured to repair the ring data to obtain new target data and corresponding target blood margin, and store the new target data and the corresponding target blood margin in the database.
The technical scheme is based on a data processing technology of big data, whether the target data have errors is judged, and link data with errors in index blood margins of the target data are identified through a recursive algorithm; if not, the target data and the index blood margin thereof are stored in a preset database, errors occurring in the data synchronization process between the production equipment and the database, particularly in the data incremental backup process are identified (in the embodiment, whether errors occur in the data incremental backup is known by comparing the latest data with the target data), and the accuracy of the target data generated by the production equipment is ensured by repairing the link data to obtain the new target data and the corresponding index blood margin, so that the data synchronized to the database can be ensured to be accurate.
Example four:
in order to achieve the above object, the present invention further provides a computer system, where the computer system includes a plurality of computer devices 5, and the components of the operation error recovery apparatus 1 according to the second embodiment may be dispersed in different computer devices, and the computer devices may be smartphones, tablet computers, notebook computers, desktop computers, rack servers, blade servers, tower servers, or rack servers (including independent servers or a server cluster formed by a plurality of servers) that execute programs, and the like. The computer device of the embodiment at least includes but is not limited to: a memory 51, a processor 52, which may be communicatively coupled to each other via a system bus, as shown in FIG. 7. It should be noted that fig. 7 only shows a computer device with components, but it should be understood that not all of the shown components are required to be implemented, and more or fewer components may be implemented instead.
In this embodiment, the memory 51 (i.e., a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the memory 51 may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the memory 51 may be an external storage device of a computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device. Of course, the memory 51 may also include both internal and external storage devices of the computer device. In this embodiment, the memory 51 is generally used for storing an operating system and various application software installed in the computer device, such as a program code of the operation error recovery apparatus in the first embodiment. Further, the memory 51 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 52 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 52 is typically used to control the overall operation of the computer device. In this embodiment, the processor 52 is configured to run a program code stored in the memory 51 or process data, for example, run an operation error recovery apparatus, so as to implement the operation error recovery method according to the first embodiment.
Example five:
to achieve the above objects, the present invention also provides a computer-readable storage system including a plurality of storage media such as a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, which when executed by a processor 52, implements corresponding functions. The computer readable storage medium of this embodiment is used for storing an operation error recovery apparatus, and when being executed by the processor 52, the computer readable storage medium implements the operation error recovery method of the first embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. An operation error recovery method for identifying and recovering errors occurring during a process of a production device periodically operating continuously updated bottom data to obtain target data, the method comprising:
acquiring target data and index blood margin thereof; the index blood margin represents the whole process of operating bottom layer data by production equipment to obtain the target data;
comparing the target data with the latest data, and judging whether mutation occurs in the target data; if so, identifying link data with errors in the index blood margin of the target data through a recursive algorithm; if not, storing the target data and the index blood relationship thereof into a preset database; the latest data refers to target data obtained by operating bottom layer data by the production equipment in the previous period;
and index correction or data correction is carried out on the link data to repair the link data, new target data and corresponding index blood margins are obtained, and the new target data and the corresponding index blood margins are stored in the database.
2. The method of claim 1, wherein before obtaining the target data and the index blood margin thereof, the method further comprises:
the method comprises the steps of obtaining update data formed by updating bottom layer data of production equipment to make an update snapshot, obtaining a process of operating the update data by the production equipment to obtain target data to make an operation snapshot, and using the update snapshot and the operation snapshot as index consanguinity of the target data to reflect the whole process of operating the bottom layer data by the production equipment to obtain the target data.
3. The operational error recovery method of claim 2, wherein the step of obtaining the update data formed by updating the underlying data of the production equipment to make the update snapshot comprises:
receiving a trigger signal generated when the production equipment updates the bottom layer data to form the updated data, controlling the production equipment to suspend operation of the updated data according to the trigger signal, and acquiring the updated data to make an updated snapshot.
4. The operation error recovery method according to claim 2, wherein the step of obtaining a process of operating the update data by the production equipment to obtain the target data to make an operation snapshot includes:
triggering the production equipment to operate the updated data according to the updated snapshot, and detecting whether a stage index appears in the operation process; the stage indexes refer to stage results generated in the process of operating and updating data by the production equipment;
if yes, the operation is suspended, operation snapshots of the stage indexes are made, and the production equipment is triggered to continue the operation according to the operation snapshots.
5. The method according to claim 1, wherein the step of comparing the target data with the latest data and determining whether the target data has a mutation comprises:
setting the latest target data in the database as the latest data, and comparing the difference value between the target data and the latest data to obtain a check difference value;
judging whether the check difference value meets a preset expected threshold value or not; if the expected threshold value is not met, determining that the target data has errors; if the expected threshold is met, determining that the target data has no errors.
6. The method according to claim 1, wherein the step of identifying, by a recursive algorithm, link data in which an error occurs in an index blood margin of the target data includes:
extracting an index blood margin of the target data, and performing descending arrangement on the operation snapshots according to the generation time of the operation snapshots in the index blood margin to obtain snapshot sequencing;
sequentially carrying out trial-and-error operation on the operation snapshots according to the snapshot sorting to obtain a test difference value, and judging whether the test difference value meets the expected threshold value; if so, determining the operation snapshot as the wrong link data; if not, acquiring the next sequential operation snapshot in the snapshot sorting and carrying out trial and error operation until the operation snapshot with the test difference value meeting the expected threshold value is obtained, or completing the trial and error operation of all the operation snapshots in the snapshot sorting; the trial and error operation adopts an operation method used by the production equipment for operating the stage indexes in the operation snapshot to obtain the target data;
if the trial and error operation of all the operation snapshots in the snapshot sorting is completed and the test data meeting the expected threshold value cannot be obtained, extracting the updated snapshot of the index blood margin and carrying out trial and error operation on the updated snapshot to obtain a test difference value, and judging whether the test difference value meets the expected threshold value or not; and if so, setting the updated snapshot as the wrong link data, otherwise, deleting the target data and the index blood margin thereof and ending.
7. The operation error recovery method according to claim 6, wherein the step of performing index correction or data correction on the link data to recover the link data includes:
detecting a snapshot corresponding to the link data with the error; if the snapshot is an operation snapshot, setting the snapshot as a correction snapshot and performing index correction on the target data and the index blood margin thereof to obtain new target data and corresponding index blood margin; if the snapshot is an updating snapshot, setting the snapshot as a correcting snapshot and performing data correction on the target data and the index blood margin thereof to obtain new target data and corresponding index blood margin;
index correction, namely deleting all running snapshots from the running snapshot at the head in the running sequence to the running snapshot before the corrected snapshot; triggering the production equipment to perform the trial and error operation on the stage indexes in the correction snapshot, detecting whether the stage indexes appear in the trial and error operation process, if so, suspending the trial and error operation and making a repair snapshot of the stage indexes, and triggering the production equipment to continue the trial and error operation according to the operation snapshot; taking all the running snapshots from the running snapshot at the last position to the correction snapshot in the running sequence, the correction snapshot, the repair snapshot and the update snapshot as new target data and corresponding index blood margins;
data correction, namely deleting all running snapshots in the index blood margin, triggering the production equipment to perform trial and error operation on corrected data in the corrected snapshots, detecting whether a stage index appears in the trial and error operation process, if so, suspending the trial and error operation and making a repair snapshot of the stage index, and triggering the production equipment to continue the trial and error operation according to the operation snapshot; and taking the updating snapshot and the repairing snapshot as new target data and corresponding index blood margin.
8. An operation error recovery device for identifying and recovering errors occurring in the process of obtaining target data by operating bottom data by production equipment is characterized by comprising:
the information acquisition module is used for acquiring target data and index blood margin thereof; the index blood margin represents the whole process of operating bottom layer data by production equipment to obtain the target data;
the error judgment module is used for comparing the target data with the latest data and judging whether mutation occurs in the target data; if so, identifying link data with errors in the index blood margin of the target data through a recursive algorithm; if not, storing the target data and the index blood relationship thereof into a preset database; wherein the latest data refers to target data recently obtained by the production equipment;
and the error repairing module is used for performing index correction or data correction on the link data to repair the link data, acquiring new target data and corresponding index blood margin, and storing the new target data and the corresponding index blood margin into the database.
9. A computer system comprising a plurality of computer devices, each computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processors of the plurality of computer devices when executing the computer program collectively implement the steps of the operational error recovery method of any of claims 1 to 7.
10. A computer-readable storage medium comprising a plurality of storage media, each storage medium having a computer program stored thereon, wherein the computer programs stored in the storage media, when executed by a processor, collectively implement the steps of the operational error recovery method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010343420.5A CN111563007B (en) | 2020-04-27 | 2020-04-27 | Operation error repairing method, device, computer system and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010343420.5A CN111563007B (en) | 2020-04-27 | 2020-04-27 | Operation error repairing method, device, computer system and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111563007A true CN111563007A (en) | 2020-08-21 |
CN111563007B CN111563007B (en) | 2022-11-25 |
Family
ID=72073263
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010343420.5A Active CN111563007B (en) | 2020-04-27 | 2020-04-27 | Operation error repairing method, device, computer system and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111563007B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114356940A (en) * | 2021-12-20 | 2022-04-15 | 云南电网有限责任公司信息中心 | Power grid data management platform and method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101154172A (en) * | 2006-09-27 | 2008-04-02 | 英业达股份有限公司 | Method for centralized establishing dependent snap |
EP2778818A1 (en) * | 2013-03-12 | 2014-09-17 | Hitachi Ltd. | Identification of faults in a target system |
CN104123448A (en) * | 2014-07-14 | 2014-10-29 | 南京理工大学 | Multi-data-stream anomaly detection method based on context |
CN107688504A (en) * | 2016-08-05 | 2018-02-13 | 中兴通讯股份有限公司 | Data management abnormal means to save the situation and system |
CN110516971A (en) * | 2019-08-29 | 2019-11-29 | 杭州网易再顾科技有限公司 | Method, apparatus, medium and the calculating equipment of abnormality detection |
-
2020
- 2020-04-27 CN CN202010343420.5A patent/CN111563007B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101154172A (en) * | 2006-09-27 | 2008-04-02 | 英业达股份有限公司 | Method for centralized establishing dependent snap |
EP2778818A1 (en) * | 2013-03-12 | 2014-09-17 | Hitachi Ltd. | Identification of faults in a target system |
CN104123448A (en) * | 2014-07-14 | 2014-10-29 | 南京理工大学 | Multi-data-stream anomaly detection method based on context |
CN107688504A (en) * | 2016-08-05 | 2018-02-13 | 中兴通讯股份有限公司 | Data management abnormal means to save the situation and system |
CN110516971A (en) * | 2019-08-29 | 2019-11-29 | 杭州网易再顾科技有限公司 | Method, apparatus, medium and the calculating equipment of abnormality detection |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114356940A (en) * | 2021-12-20 | 2022-04-15 | 云南电网有限责任公司信息中心 | Power grid data management platform and method |
CN114356940B (en) * | 2021-12-20 | 2024-05-14 | 云南电网有限责任公司信息中心 | Power grid data management system and method |
Also Published As
Publication number | Publication date |
---|---|
CN111563007B (en) | 2022-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110300984B (en) | Changing smart contracts recorded in a blockchain | |
CN111045855B (en) | Method, apparatus and computer program product for backing up data | |
US9983941B2 (en) | Method and apparatus for recovering data | |
CN110162414B (en) | Method and device for realizing artificial intelligent service based on micro-service architecture | |
CN109784058A (en) | Version strong consistency method of calibration, client, server and storage medium | |
CN111858146B (en) | Method, apparatus and computer program product for recovering data | |
CN111666087A (en) | Operation rule updating method and device, computer system and readable storage medium | |
CN112035144B (en) | Upgrading method and device of block chain system, computer equipment and storage medium | |
CN113420026B (en) | Database table structure changing method, device, equipment and storage medium | |
US11269540B2 (en) | Method, apparatus, and computer program product for managing application system | |
TW202013226A (en) | Webpage content self-protection method and associated server | |
CN112817935A (en) | Data processing method, device and equipment based on field type and storage medium | |
CN111563007B (en) | Operation error repairing method, device, computer system and readable storage medium | |
CN109462661B (en) | Data synchronization method and device, computer equipment and storage medium | |
CN114461217A (en) | Code compiling method and device, electronic equipment and storage medium | |
CN109634979A (en) | Data-updating method and device | |
CN113590181A (en) | Configuration file checking method, device, equipment and storage medium | |
CN111698227B (en) | Information synchronization management method, device, computer system and readable storage medium | |
CN113704569A (en) | Information processing method and device and electronic equipment | |
CN112035155A (en) | Version update management method and device, computer equipment and readable storage medium | |
CN112817652B (en) | Configuration method and device of computer environment, computer equipment and storage medium | |
CN114237991A (en) | Main/standby service switching method, device, equipment and medium based on cold standby mode | |
CN113760608A (en) | Data recovery method and device, electronic equipment and storage medium | |
WO2022172422A1 (en) | Information processing device, information processing method, and information processing program | |
CN111857542A (en) | Method, apparatus and computer program product for managing a storage system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20220526 Address after: 518000 China Aviation Center 2901, No. 1018, Huafu Road, Huahang community, Huaqiang North Street, Futian District, Shenzhen, Guangdong Province Applicant after: Shenzhen Ping An medical and Health Technology Service Co.,Ltd. Address before: Room 12G, Area H, 666 Beijing East Road, Huangpu District, Shanghai 200001 Applicant before: PING AN MEDICAL AND HEALTHCARE MANAGEMENT Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |