CN113608931A - Fault-tolerant processing method, device and equipment for updating application resources and storage medium - Google Patents

Fault-tolerant processing method, device and equipment for updating application resources and storage medium Download PDF

Info

Publication number
CN113608931A
CN113608931A CN202111012772.3A CN202111012772A CN113608931A CN 113608931 A CN113608931 A CN 113608931A CN 202111012772 A CN202111012772 A CN 202111012772A CN 113608931 A CN113608931 A CN 113608931A
Authority
CN
China
Prior art keywords
error
error reporting
application
fault
user side
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111012772.3A
Other languages
Chinese (zh)
Inventor
陈优优
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202111012772.3A priority Critical patent/CN113608931A/en
Publication of CN113608931A publication Critical patent/CN113608931A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3452Performance evaluation by statistical analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to an artificial intelligence technology, and discloses a fault-tolerant processing method for updating application resources, which comprises the following steps: carrying out data statistics processing on error reporting information from a user side to generate an error reporting data statistical table; acquiring the model of the user side with the error reporting amount larger than a preset error reporting threshold value from the error reporting data statistical table as a target model; splicing the target model and the updated version number of the application to obtain a spliced code; acquiring a rollback resource packet which is matched with the updated version number of the application in advance according to the splicing codes; and performing resource rollback processing on the application on the user side with the target model through the rollback resource packet so as to realize fault-tolerant processing of updating the application resources on the user side with the target model. The invention also relates to a block chain technology, and the error reporting data statistical table is stored in the block chain. The invention can solve the defect that the prior problem is solved by full modification in the prior art, and the user experience effect is better.

Description

Fault-tolerant processing method, device and equipment for updating application resources and storage medium
Technical Field
The present invention relates to artificial intelligence technologies, and in particular, to a fault-tolerant processing method and apparatus for updating application resources, an electronic device, and a computer-readable storage medium.
Background
Application programs (APP) are used more and more widely, for example, WeChat, microblog, Paibao and the like, and in the using process of the application programs, program developers can continuously update resources of the applications so as to enrich APP functions and repair bugs. At present, mobile applications are also increasingly developed by using a hybrid mode (h5, ReactNative, Flutter, Weex), and the hybrid development mode has the advantages that the functions can be iterated quickly according to the service requirements, the problems can be modified timely when the problems occur, and the problems on the line can be repaired by updating.
However, both hybrid applications and common applications have the following problems, and if the applications have the online problem after resource update, developers are required to modify the resource packages and then release the modified resource packages to the corresponding servers for issuing. This method will update all the clients, i.e. make full-scale modification, but there are the following problems: if the compatibility problem exists only in the user terminals of partial models, other new problems are easily caused by large-area full modification, and sometimes the problems are difficult to eliminate, for example, error reporting information appears after the millet mobile phone is updated, but the millet mobile phone can be normally used after application resources are updated, if the full modification is carried out, the problems on the millet mobile phone are solved, but the problems appear on the mobile phone, so that a poor experience effect is brought to the user under the condition that the user is always broken down.
Disclosure of Invention
The invention provides a fault-tolerant processing method and device for updating application resources, electronic equipment and a computer-readable storage medium, and mainly aims to solve the problems that in the prior art, the problem of solving old problems and new problems are caused by total modification, and a user is always in a breakdown condition, so that poor experience effects are caused to the user.
In a first aspect, to achieve the above object, the present invention provides a fault tolerance processing method for updating application resources, where the method includes:
carrying out data statistics processing on error reporting information from a user side to generate an error reporting data statistical table; the error reporting data statistical table comprises the types of the user terminals for application updating and the error reporting amount of each type of the user terminals;
acquiring the model of the user side with the error reporting amount larger than a preset error reporting threshold value from the error reporting data statistical table as a target model;
splicing the target model and the updated version number of the application to obtain a spliced code;
acquiring a rollback resource packet which is matched with the updated version number of the application in advance according to the splicing codes;
and performing resource rollback processing on the application on the user side with the target model through the rollback resource packet so as to realize fault-tolerant processing of updating the application resources on the user side with the target model.
In a second aspect, to solve the above problem, the present invention further provides a fault-tolerant processing apparatus for application resource update, including:
the error reporting data statistical table generating module is used for performing data statistical processing on error reporting information from the user side to generate an error reporting data statistical table; the error reporting data statistical table comprises the types of the user terminals for application updating and the error reporting amount of each type of the user terminals;
the target model acquisition module is used for acquiring the model of the user side with the error reporting amount larger than a preset error reporting threshold value from the error reporting data statistical table as a target model;
the splicing code generation module is used for splicing the target model and the updated version number of the application to obtain a splicing code;
a rolling resource packet obtaining module, configured to obtain, according to the splicing code, a rolling resource packet that is pre-matched with the update version number of the application;
and the fault-tolerant processing module is used for performing resource rollback processing on the application on the user side of the target model through the rollback resource packet so as to realize fault-tolerant processing of updating the application resources on the user side of the target model.
In a third aspect, to solve the above problem, the present invention further provides an electronic apparatus, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the fault tolerant processing method of application resource updates as described above.
In a fourth aspect, in order to solve the above problem, the present invention further provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the fault-tolerant processing method for application resource update as described above.
The fault-tolerant processing method, the fault-tolerant processing device, the electronic equipment and the storage medium for updating the application resources provided by the invention generate an error-reporting data statistical table by performing data statistical processing on error-reporting information from a user side, select the user side with a target model, namely the user side with a compatibility problem, according to a preset error-reporting threshold value, and perform resource rollback processing on the user side with the target model. By carrying out resource rollback on the user terminals with the compatibility problem in a targeted manner, the full modification of all the user terminals can be avoided, the problem after the user terminals without the problems are modified is avoided, and the user experience effect is better.
Drawings
Fig. 1 is a flowchart illustrating a fault-tolerant processing method for application resource update according to an embodiment of the present invention;
FIG. 2 is a block diagram of a fault-tolerant processing apparatus for application resource update according to an embodiment of the present invention;
fig. 3 is a schematic internal structural diagram of an electronic device implementing a fault-tolerant processing method for updating application resources according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
The invention provides a fault-tolerant processing method for updating application resources. Fig. 1 is a schematic flowchart illustrating a fault-tolerant processing method for updating application resources according to an embodiment of the present invention. The method may be performed by an apparatus, which may be implemented by software and/or hardware.
In this embodiment, the fault-tolerant processing method for updating application resources includes:
step S110, carrying out data statistics processing on error reporting information from a user side to generate an error reporting data statistics table; the error reporting data statistical table comprises the types of the user terminals for application updating and the error reporting amount of each type of the user terminals.
Specifically, when the version of the application program on the user side is lower than the version of the same application on the server side, the resource update needs to be performed on the application program on the user side, and the process is as follows: the application program developer uploads the updated resource packet of the application program to the server, and the server transfers the updated resource packet of the application program to the client by comparing the version numbers of the application program on the client and the application program on the server, so as to update the resource of the application program on the client; in this process, online problems, such as the updated page of the application program cannot be opened, some functions cannot be used normally, and the application program is crashed, easily occur. At this time, error information is generated at the user side and is uploaded to the server side. The user terminal can be a mobile user terminal, such as various types of mobile phones.
After receiving the error reporting information from the user side, the server side performs data statistics on the error reporting information, performs statistics on the error reporting information generated by the user side of each model, and finally generates an error reporting data statistical table, so that the quantity representation of the error reporting information of the user side of each model is clearer.
As an optional embodiment of the present invention, before performing data statistics on error information from a user side to generate an error data statistics table, the method further includes:
acquiring information of an operation node corresponding to error reporting information as information of a target node according to the error reporting information from the user side; the information of the operation node is pre-embedded into an operation interface of the application and used for recording the operation of a user on the operation interface;
carrying out error reporting grade identification on the error reporting information according to the information of the target node and a preset error reporting grade division table to obtain the error grade of the error reporting information; the preset error level division table comprises information of a target node and an error level of error information corresponding to the information of the target node; the error level of the error information comprises an important level, a medium level and a low level;
generating fault-tolerant instructions according to the number of error reporting information of each error level and a preset fault-tolerant instruction generation rule; the fault-tolerant instruction is used for starting fault-tolerant processing on updating of the application resources.
Specifically, when an operation interface of the application is pre-embedded with information of an operation node, for example, when a button is clicked on an a page to jump into a B page, information such as AtoB is implanted in the click button event, the information can be randomly appointed, the whole project can keep information uniqueness, error reporting information uploaded by a user side can be known through the pre-embedded information of the operation node under the condition that the user performs what kind of operation, so that the operation flow of the user can be conveniently tracked, and the error level of the error reporting information can be determined. Determining an error reporting level of the error reporting information through a preset error reporting level division table, for example, when the information of an operation node corresponding to the error reporting information is that an application page is clicked and a flash back problem occurs, finding a corresponding error level through the preset error reporting level division table, for example, the error level is an important level; and generating fault-tolerant instructions according to the number of the error reporting information of each error level and a preset fault-tolerant instruction generation rule, namely performing fault-tolerant processing when the degree and the number of the error levels reach the condition that the error reporting information needs to be processed, and avoiding large-area modification on the whole application program due to small problems.
As an optional embodiment of the present invention, generating the fault-tolerant instruction according to the number of the error reporting information of each error level and according to the preset fault-tolerant instruction generation rule includes:
counting the number of error reporting information of each error level to obtain an error level number statistical table; the error level quantity statistical table comprises error levels and the quantity of error reporting information corresponding to the error levels;
and when the number of error reporting information of each error level in the error level number statistical table meets a preset fault-tolerant instruction generation rule, generating a fault-tolerant instruction.
Specifically, the error reporting information of each error level is subjected to quantity statistics to generate an error level quantity statistical table; the statistical effect is better and the statistical speed is faster by performing the statistical script in the error level number statistical process. And when the number of error reporting information corresponding to each error level in the error level number statistical table meets a preset fault-tolerant instruction generation rule, generating a fault-tolerant instruction. For example, when the number of error messages of the important level reaches 10 or more, or the number of error messages of the middle level reaches 20 or more, or the number of error messages of the important level reaches 8 or more, and the number of error messages of the middle level reaches 15 or more, the fault-tolerant instruction is generated. The preset fault-tolerant instruction generation rule can be set by self, and only when the preset fault-tolerant instruction generation rule is met, the fault-tolerant instruction can be generated to perform subsequent fault-tolerant processing.
As an optional embodiment of the present invention, the error reporting statistics table is stored in the blockchain, and the data statistics processing is performed on the error reporting information from the user side, and the generating the error reporting statistics table includes:
collecting error information from various types of clients in real time to form an error log; the error log comprises error information collected from the user side and the model of the user side;
and performing data statistics on error reporting quantities in the error reporting logs according to the types of the user sides by a preset error reporting quantity statistics script to generate an error reporting data statistics table.
Specifically, the server collects error information from each user side of various types in real time to form an error log, where the error log at least includes each error information, the type of the user side from which each error information comes, and time for forming the error information. The error reporting amount statistical method is used for performing data statistics on error reporting information from the user side subsequently, and in order to perform data statistics on the error reporting amount of the user side of each type quickly, data statistics processing is performed on the error reporting amount of the user side of each type in an error reporting log through a preset error reporting amount statistical script, and an error reporting data statistical table is generated.
Step S120, obtaining the model of the user side with the error reporting amount larger than the preset error reporting threshold value from the error reporting data statistical table as the target model.
Specifically, in order to solve the compatibility problem more specifically, the model of the user side with the error reporting amount larger than the preset error reporting threshold is obtained from the error reporting data statistics table and is used as the target model, wherein the compatibility problem refers to that the application resource is updated and then only has a problem on the user side with a certain or several models, and error reporting information is generated; the millet in the millet mobile phone is the model of the user side. The model of the ue may be represented by a special symbol or a character string, for example, hua is represented by huawei, as long as the ue of different models can be distinguished.
As an optional embodiment of the present invention, the obtaining of the model of the ue whose error reporting amount is greater than the preset error reporting threshold from the error reporting statistics table includes, as the target model:
and respectively carrying out numerical comparison processing on the error reporting amount of each type of the user side in the error reporting data statistical table and a preset error reporting threshold value, and taking the type of the user side with the error reporting amount larger than the preset error reporting threshold value as a target type.
Specifically, in the process of screening the target model, the error reporting amount of each type of user terminal in the error reporting data statistics table needs to be respectively compared with the preset error reporting threshold in sequence, and the model of the user terminal with the error reporting amount greater than the preset error reporting threshold is screened out as the target model. Wherein, the preset error-reporting threshold value can be set by self.
And S130, splicing the target model and the updated version number of the application to obtain a spliced code.
Specifically, the current version number of the current application, i.e., the update version number, is obtained from the user side, for example, 1.12.0, and the target model and the update version number are spliced to obtain the splicing code. For example, if the target model is huawei and the update version number of the application is 1.12.0, the resulting splice after splicing is encoded as huawei _ 1.12.0.
And step S140, acquiring a rollback resource packet which is matched with the update version number of the application in advance according to the splicing codes.
Specifically, when an application program developer generally develops an application update resource package, in order to avoid the problem of incompatibility of the resource package and the like, a rollback resource package is matched with an update version number of the application in advance, or the update resource package is modified again according to the problem occurring in specific application update and serves as the rollback resource package, and both the two modes can be adopted. And acquiring a rollback resource packet which is matched with the updated version number of the application in advance according to the splicing codes.
As an optional embodiment of the present invention, acquiring a rollback resource package that is pre-matched with an update version number of an application according to a splicing code includes:
analyzing the splicing codes to obtain the updated version number of the application;
and acquiring a rollback resource packet which is matched with the update version number of the application in advance from a preset resource packet repository.
Specifically, when the server side obtains the splicing codes, the splicing codes need to be analyzed, and target models and updated version numbers of applications in the splicing codes are analyzed; and then acquiring a rollback resource packet which is matched with the update version number of the application in advance from a preset resource packet repository according to the update version number of the application.
And step S150, performing resource rollback processing on the application on the user side with the target model through the rollback resource packet so as to realize fault-tolerant processing of updating the application resources on the user side with the target model.
Specifically, the processor sends the rollback resource packet to the user terminal of the target model according to the target model analyzed from the splicing code, and performs resource rollback processing on the application on the user terminal of the target model through the rollback resource packet, so that fault tolerance processing for updating the application on the user terminal of the target model is achieved.
As an optional embodiment of the present invention, after performing resource rollback processing on an application on a user side of a target model by rolling back a resource packet to implement fault-tolerant processing of application resource update on the user side of the target model, the method further includes:
when the user terminal of the target model generates error reporting information again after the application on the user terminal of the target model is subjected to resource rollback processing through the rollback resource packet, acquiring a resource packet of a previous version number of an updated version number of the application according to the splicing code, and using the resource packet as a new rollback resource packet;
and performing resource rollback processing on the application on the user side with the target model again through the new rollback resource packet.
Specifically, after the application on the user terminal of the target model is subjected to resource rollback through the rollback resource packet, the user terminal of the target model still generates error message information to indicate that the rollback resource packet cannot solve the problem of updating the application on the user terminal of the target model.
Fig. 2 is a functional block diagram of a fault-tolerant processing apparatus for application resource update according to an embodiment of the present invention.
The fault-tolerant processing device 200 for updating application resources according to the present invention can be installed in an electronic device. According to the implemented functions, the fault-tolerant processing device for updating application resources may include an error report data statistics table generation module 210, a target model acquisition module 220, a splicing code generation module 230, a rollback resource packet acquisition module 240, and a fault-tolerant processing module 250. A module according to the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
an error reporting data statistics table generating module 210, configured to perform data statistics on error reporting information from a user side to generate an error reporting data statistics table; the error reporting data statistical table comprises the types of the user terminals for application updating and the error reporting amount of each type of the user terminals.
Specifically, when the version of the application program on the user side is lower than the version of the same application on the server side, the resource update needs to be performed on the application program on the user side, and the process is as follows: the application program developer uploads the updated resource packet of the application program to the server, and the server transfers the updated resource packet of the application program to the client by comparing the version numbers of the application program on the client and the application program on the server, so as to update the resource of the application program on the client; in this process, online problems, such as the updated page of the application program cannot be opened, some functions cannot be used normally, and the application program is crashed, easily occur. At this time, error information is generated at the user side and is uploaded to the server side. The user terminal can be a mobile user terminal, such as various types of mobile phones.
After receiving the error reporting information from the user side, the server side performs data statistics on the error reporting information, performs statistics on the error reporting information generated by the user side of each model, and finally generates an error reporting data statistical table, so that the quantity representation of the error reporting information of the user side of each model is clearer.
As an alternative embodiment of the present invention, the fault-tolerant processing apparatus 200 for applying resource update further comprises: an information acquisition module, an error level identification module and a fault-tolerant instruction generation module (not shown in the figure) of the target node. Wherein the content of the first and second substances,
the information acquisition module of the target node is used for acquiring the information of the operation node corresponding to the error reporting information as the information of the target node according to the error reporting information from the user side; the information of the operation node is pre-embedded into an operation interface of the application and used for recording the operation of a user on the operation interface;
the error level identification module is used for carrying out error level identification on the error reporting information according to the information of the target node and a preset error level classification table to obtain the error level of the error reporting information; the preset error level division table comprises information of a target node and an error level of error information corresponding to the information of the target node; the error level of the error information comprises an important level, a medium level and a low level;
the fault-tolerant instruction generation module is used for generating fault-tolerant instructions according to the number of error reporting information of each error level and a preset fault-tolerant instruction generation rule; the fault-tolerant instruction is used for starting fault-tolerant processing on updating of the application resources.
Specifically, the information of the operation node is pre-embedded in the operation interface of the application, for example, when a button is clicked on a page a to jump into a page B, information such as AtoB is implanted in the click button event, the information can be randomly appointed, the whole project can keep information uniqueness, the error reporting information uploaded by the user side can be known through the information acquisition module of the target node under the condition that the user performs what kind of operation, the operation flow of the user can be conveniently tracked, and the error level of the error reporting information can be determined. The error level identification module can identify the error level of the error information, for example, when the information of the operation node corresponding to the error information is clicked and an application page is clicked and a flash back problem occurs, the corresponding error level is found through a preset error level division table, for example, the error level is an important level; the fault-tolerant instruction generation module can generate fault-tolerant instructions according to the number of the error reporting information of each error level and a preset fault-tolerant instruction generation rule, namely, fault-tolerant processing is carried out when the degree and the number of the error levels reach the condition that the error reporting information needs to be processed, and large-area modification of the whole application program due to small problems is avoided.
As an alternative embodiment of the present invention, the fault-tolerant instruction generation module may further include a quantity statistics unit of error information of each error level and a fault-tolerant instruction generation unit (not shown in the figure). Wherein the content of the first and second substances,
the error reporting information quantity counting unit of each error level is used for counting the quantity of the error reporting information of each error level to obtain an error level quantity counting table; the error level quantity statistical table comprises error levels and the quantity of error reporting information corresponding to the error levels;
and the fault-tolerant instruction generating unit is used for generating a fault-tolerant instruction when the number of error reporting information of each error level in the error level number statistical table meets a preset fault-tolerant instruction generating rule.
Specifically, the error reporting information of each error level is subjected to quantity statistics through a quantity statistics unit of the error reporting information of each error level, and an error level quantity statistics table is generated; the statistical effect is better and the statistical speed is faster by performing the statistical script in the error level number statistical process. And generating a fault-tolerant instruction by a fault-tolerant instruction generating unit when the number of error reporting information corresponding to each error level in the error level number statistical table meets a preset fault-tolerant instruction generating rule. For example, when the number of error messages of the important level reaches 10 or more, or the number of error messages of the middle level reaches 20 or more, or the number of error messages of the important level reaches 8 or more, and the number of error messages of the middle level reaches 15 or more, the fault-tolerant instruction is generated. The preset fault-tolerant instruction generation rule can be set by self, and only when the preset fault-tolerant instruction generation rule is met, the fault-tolerant instruction can be generated to perform subsequent fault-tolerant processing.
As an alternative embodiment of the present invention, the error data statistics table is stored in the block chain, and the error data statistics table generating module 210 further includes: an error log generating unit and an error data statistical table generating unit (not shown in the figure). Wherein the content of the first and second substances,
the error log generation unit is used for collecting error information from various types of user terminals in real time to form error logs; the error log comprises error information collected from the user side and the model of the user side;
and the error reporting data statistical table generating unit is used for performing data statistical processing on the error reporting amount in the error reporting log according to the model of the user side through a preset error reporting amount statistical script to generate an error reporting data statistical table.
Specifically, the server collects error information from each user side of various types in real time through the error log generation unit to form an error log, where the error log at least includes each error information, the type of the user side from which each error information comes, and the time for forming the error information. The error reporting data statistical table generation unit is used for performing data statistical processing on the error reporting amount of the user side of each type in the error reporting log by using a preset error reporting amount statistical script to generate the error reporting data statistical table.
The target model obtaining module 220 is configured to obtain, from the error reporting data statistics table, a model of the user end with an error reporting amount greater than a preset error reporting threshold as a target model.
Specifically, in order to solve the compatibility problem more specifically, the model of the user side with the error reporting amount larger than the preset error reporting threshold is obtained from the error reporting data statistics table and is used as the target model, wherein the compatibility problem refers to that the application resource is updated and then only has a problem on the user side with a certain or several models, and error reporting information is generated; the millet in the millet mobile phone is the model of the user side. The model of the ue may be represented by a special symbol or a character string, for example, hua is represented by huawei, as long as the ue of different models can be distinguished.
As an alternative embodiment of the present invention, the target model obtaining module 220 further includes: a numerical value comparing unit and a target model obtaining unit (not shown in the figure).
The numerical value comparison unit is used for respectively carrying out numerical value comparison processing on the error reporting amount of each type of the user side in the error reporting data statistical table and a preset error reporting threshold value;
and the target model acquisition unit is used for taking the model of the user side with the error reporting amount larger than the preset error reporting threshold value as the target model.
Specifically, in the process of screening the target model, the error reporting amount of the user side of each model in the error reporting data statistics table is respectively compared with the preset error reporting threshold value in sequence through the numerical comparison unit, and then the model of the user side with the error reporting amount larger than the preset error reporting threshold value is screened out through the target model acquisition unit to serve as the target model. Wherein, the preset error-reporting threshold value can be set by self.
And the splicing code generating module 230 is configured to splice the target model and the updated version number of the application to obtain a splicing code.
Specifically, the current version number of the current application, i.e., the update version number, is obtained from the user side, for example, 1.12.0, and the target model and the update version number are spliced to obtain the splicing code. For example, if the target model is huawei and the update version number of the application is 1.12.0, the resulting splice after splicing is encoded as huawei _ 1.12.0.
And a rolling resource packet obtaining module 240, configured to obtain, according to the splicing code, a rolling resource packet that is pre-matched with the update version number of the application.
Specifically, when an application program developer generally develops an application update resource package, in order to avoid the problem of incompatibility of the resource package and the like, a rollback resource package is matched with an update version number of the application in advance, or the update resource package is modified again according to the problem occurring in specific application update and serves as the rollback resource package, and both the two modes can be adopted. And acquiring a rollback resource packet which is matched with the updated version number of the application in advance according to the splicing codes.
As an optional embodiment of the present invention, the rolling resource package obtaining module 240 further includes: an encoding parsing unit and a rolling resource packet obtaining unit (not shown in the figure). Wherein the content of the first and second substances,
the code analysis unit is used for analyzing the splicing codes to acquire the updated version number of the application;
and the rollback resource packet acquisition unit is used for acquiring a rollback resource packet which is matched with the update version number of the application in advance from the preset resource packet storage.
Specifically, when the server side obtains the splicing codes, the splicing codes need to be analyzed, and target models and updated version numbers of applications in the splicing codes are analyzed; and then acquiring a rollback resource packet which is matched with the update version number of the application in advance from a preset resource packet repository according to the update version number of the application.
And the fault-tolerant processing module 250 is configured to perform resource rollback processing on the application on the user terminal of the target model through the rollback resource packet, so as to implement fault-tolerant processing of updating the application resources on the user terminal of the target model.
Specifically, the processor sends the rollback resource packet to the user terminal of the target model according to the target model analyzed from the splicing code, and performs resource rollback processing on the application on the user terminal of the target model through the rollback resource packet, so that fault tolerance processing for updating the application on the user terminal of the target model is achieved.
As an alternative embodiment of the present invention, the fault-tolerant processing apparatus 200 for applying resource update further comprises: a new rollback resource packet acquisition module and a rollback again processing module (not shown in the figure).
A new rollback resource packet obtaining module, configured to, when the application on the user terminal of the target model is subjected to resource rollback processing by the rollback resource packet and the user terminal of the target model generates error reporting information again, obtain, according to the splicing code, a resource packet of a previous version number of the updated version number of the application, as a new rollback resource packet;
and the rollback processing module is used for performing resource rollback processing on the application on the user side of the target model again through the new rollback resource packet.
Specifically, after the application on the user terminal of the target model is subjected to resource rollback through the rollback resource packet, the user terminal of the target model still generates error message reporting information to indicate that the rollback resource packet cannot solve the problem of application update on the user terminal of the target model through the new rollback resource packet acquisition module, and in order to enable a user to normally use an application program, the processor acquires the resource packet of the previous version number from the server terminal according to the update version number of the application as a new rollback resource packet; and the secondary rollback processing module performs resource rollback processing on the application on the client with the target model by using the new rollback resource packet, so that the purpose of application fault tolerance is achieved.
Fig. 3 is a schematic structural diagram of an electronic device implementing a fault-tolerant processing method for updating application resources according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program stored in the memory 11 and executable on the processor 10, such as a fault tolerant processing program 12 for applying resource updates.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various types of data, such as codes of fault-tolerant processing programs for application resource update, but also to temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (e.g., fault-tolerant processing programs for application resource update, etc.) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 3 shows only an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 3 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The fault-tolerant processing program 12 for application resource update stored in the memory 11 of the electronic device 1 is a combination of a plurality of instructions, which when executed in the processor 10, can implement:
carrying out data statistics processing on error reporting information from a user side to generate an error reporting data statistical table; the error reporting data statistical table comprises the types of the user terminals for application updating and the error reporting amount of each type of the user terminals;
acquiring the model of the user side with the error reporting amount larger than a preset error reporting threshold value from the error reporting data statistical table as a target model;
splicing the target model and the updated version number of the application to obtain a spliced code;
acquiring a rollback resource packet which is matched with the updated version number of the application in advance according to the splicing codes;
and performing resource rollback processing on the application on the user side with the target model through the rollback resource packet so as to realize fault-tolerant processing of updating the application resources on the user side with the target model.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiment corresponding to fig. 1, which is not described herein again. It should be emphasized that, in order to further ensure the privacy and security of the error data statistics table, the error data statistics table may also be stored in a node of a block chain.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. 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.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A fault-tolerant processing method for application resource updating is applied to an electronic device, and is characterized by comprising the following steps:
carrying out data statistics processing on error reporting information from a user side to generate an error reporting data statistical table; the error reporting data statistical table comprises the types of the user terminals for application updating and the error reporting amount of each type of the user terminals;
acquiring the model of the user side with the error reporting amount larger than a preset error reporting threshold value from the error reporting data statistical table as a target model;
splicing the target model and the updated version number of the application to obtain a spliced code;
acquiring a rollback resource packet which is matched with the updated version number of the application in advance according to the splicing codes;
and performing resource rollback processing on the application on the user side with the target model through the rollback resource packet so as to realize fault-tolerant processing of updating the application resources on the user side with the target model.
2. The method of claim 1, further comprising, before performing statistics on the error information from the user side to generate the error statistics table:
acquiring information of an operation node corresponding to the error reporting information as information of a target node according to the error reporting information from the user side; the information of the operation node is pre-embedded into an operation interface of an application and is used for recording the operation of a user on the operation interface;
carrying out error reporting grade identification on the error reporting information according to the information of the target node and a preset error reporting grade division table to obtain the error grade of the error reporting information; the preset error reporting level division table comprises information of a target node and an error level of error reporting information corresponding to the information of the target node; the error levels of the error reporting information comprise an important level, a medium level and a low level;
generating fault-tolerant instructions according to the number of error reporting information of each error level and a preset fault-tolerant instruction generation rule; and the fault-tolerant instruction is used for starting fault-tolerant processing on updating of the application resource.
3. The method according to claim 2, wherein the generating a fault-tolerant instruction according to a preset fault-tolerant instruction generation rule according to the number of error messages of each error level comprises:
counting the number of error reporting information of each error level to obtain an error level number statistical table; the error level quantity statistical table comprises error levels and the quantity of error reporting information corresponding to the error levels;
and generating a fault-tolerant instruction when the number of error reporting information of each error level in the error level number statistical table meets the preset fault-tolerant instruction generation rule.
4. The method as claimed in claim 1, wherein the error reporting statistics table is stored in a block chain, and the performing statistics processing on the error reporting information from the user side to generate the error reporting statistics table comprises:
collecting error information from various types of clients in real time to form an error log; the error log comprises error information collected from a user side and the model of the user side;
and performing data statistics on the error reporting amount in the error reporting log according to the model of the user side through a preset error reporting amount statistical script to generate an error reporting data statistical table.
5. The method according to claim 1, wherein the obtaining the model of the ue with an error reporting amount greater than a preset error reporting threshold from the error reporting statistics table as a target model comprises:
and respectively carrying out numerical comparison processing on the error reporting amount of the user side of each type in the error reporting data statistical table and the preset error reporting threshold value, and taking the type of the user side with the error reporting amount larger than the preset error reporting threshold value as a target type.
6. The method for processing fault tolerance of application resource update according to claim 1, wherein the obtaining of the rollback resource package that is pre-matched with the update version number of the application according to the splicing code comprises:
analyzing the splicing code to obtain an updated version number of the application;
and acquiring a rollback resource packet which is matched with the update version number of the application in advance from a preset resource packet repository.
7. The method for processing fault tolerance of application resource update according to claim 1, after the performing, by the rollback resource package, resource rollback processing on the application on the user terminal of the target model to achieve fault tolerance of application resource update on the user terminal of the target model, further comprising:
when the user side of the target model generates error reporting information again after the application on the user side of the target model is subjected to resource rollback processing through the rollback resource packet, acquiring a resource packet of a last version number of the updated version number of the application according to the splicing code, and using the resource packet as a new rollback resource packet;
and performing resource rollback processing on the application on the user side with the target model again through the new rollback resource packet.
8. An apparatus for fault tolerant processing of application resource updates, the apparatus comprising:
the error reporting data statistical table generating module is used for performing data statistical processing on error reporting information from the user side to generate an error reporting data statistical table; the error reporting data statistical table comprises the types of the user terminals for application updating and the error reporting amount of each type of the user terminals;
the target model acquisition module is used for acquiring the model of the user side with the error reporting amount larger than a preset error reporting threshold value from the error reporting data statistical table as a target model;
the splicing code generation module is used for splicing the target model and the updated version number of the application to obtain a splicing code;
a rolling resource packet obtaining module, configured to obtain, according to the splicing code, a rolling resource packet that is pre-matched with the update version number of the application;
and the fault-tolerant processing module is used for performing resource rollback processing on the application on the user side of the target model through the rollback resource packet so as to realize fault-tolerant processing of updating the application resources on the user side of the target model.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the fault tolerant processing method of application resource updates as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out a method for fault-tolerant processing of application resource updates according to any one of claims 1 to 7.
CN202111012772.3A 2021-08-31 2021-08-31 Fault-tolerant processing method, device and equipment for updating application resources and storage medium Pending CN113608931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111012772.3A CN113608931A (en) 2021-08-31 2021-08-31 Fault-tolerant processing method, device and equipment for updating application resources and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111012772.3A CN113608931A (en) 2021-08-31 2021-08-31 Fault-tolerant processing method, device and equipment for updating application resources and storage medium

Publications (1)

Publication Number Publication Date
CN113608931A true CN113608931A (en) 2021-11-05

Family

ID=78342325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111012772.3A Pending CN113608931A (en) 2021-08-31 2021-08-31 Fault-tolerant processing method, device and equipment for updating application resources and storage medium

Country Status (1)

Country Link
CN (1) CN113608931A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159964A (en) * 2015-08-24 2015-12-16 广东欧珀移动通信有限公司 Log monitoring method and system
CN106776245A (en) * 2016-11-18 2017-05-31 维沃移动通信有限公司 A kind of abnormal application processing method, device and mobile terminal
US20180067811A1 (en) * 2016-09-07 2018-03-08 Microsoft Technology Licensing, Llc Automatic application error detection and rollback
CN109445985A (en) * 2018-09-03 2019-03-08 平安普惠企业管理有限公司 The rollback method and system of application program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159964A (en) * 2015-08-24 2015-12-16 广东欧珀移动通信有限公司 Log monitoring method and system
US20180067811A1 (en) * 2016-09-07 2018-03-08 Microsoft Technology Licensing, Llc Automatic application error detection and rollback
CN106776245A (en) * 2016-11-18 2017-05-31 维沃移动通信有限公司 A kind of abnormal application processing method, device and mobile terminal
CN109445985A (en) * 2018-09-03 2019-03-08 平安普惠企业管理有限公司 The rollback method and system of application program

Similar Documents

Publication Publication Date Title
CN113806434B (en) Big data processing method, device, equipment and medium
CN113238929B (en) Code testing method and device based on Mock data, electronic equipment and storage medium
CN114511038A (en) False news detection method and device, electronic equipment and readable storage medium
CN115081016A (en) Log desensitization method and device, electronic equipment and storage medium
CN111950707A (en) Behavior prediction method, apparatus, device and medium based on behavior co-occurrence network
CN115145870A (en) Method and device for positioning reason of failed task, electronic equipment and storage medium
CN115687384A (en) UUID (user identifier) identification generation method, device, equipment and storage medium
CN113608931A (en) Fault-tolerant processing method, device and equipment for updating application resources and storage medium
CN115016754A (en) Method and device for synchronously displaying pages among devices, electronic device and medium
CN114385497A (en) Test environment generation method and device, electronic equipment and storage medium
CN112667244A (en) Data verification method and device, electronic equipment and computer readable storage medium
CN114510400A (en) Task execution method and device, electronic equipment and storage medium
CN113128440A (en) Target object identification method, device, equipment and storage medium based on edge equipment
CN113051171A (en) Interface test method, device, equipment and storage medium
CN114942855A (en) Interface calling method and device, electronic equipment and storage medium
CN114357534B (en) Classroom training platform construction method, device, equipment and medium based on block chain
CN113672483B (en) Device log storage method and device, electronic device and medium
CN116881144A (en) Script generation method, device, equipment and storage medium
CN115277469A (en) Weak network visualization control method and device, electronic equipment and readable storage medium
CN114416575A (en) Method, device and equipment for generating Mock data and storage medium
CN113934387A (en) Log printing method and device, electronic equipment and readable storage medium
CN114185797A (en) Front-end code checking method and device, electronic equipment and readable storage medium
CN114185777A (en) Test method, device, equipment and medium based on scene chain
CN116204358A (en) Computer plug-in fault detection processing method, device, equipment and storage medium
CN114968415A (en) Configuration file modification method, device, equipment and storage 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20211105