CN110471786B - Online thermal remediation method, device, equipment and computer readable storage medium - Google Patents

Online thermal remediation method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110471786B
CN110471786B CN201910767919.6A CN201910767919A CN110471786B CN 110471786 B CN110471786 B CN 110471786B CN 201910767919 A CN201910767919 A CN 201910767919A CN 110471786 B CN110471786 B CN 110471786B
Authority
CN
China
Prior art keywords
repaired
repair
thermal
configuration data
configuration file
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.)
Active
Application number
CN201910767919.6A
Other languages
Chinese (zh)
Other versions
CN110471786A (en
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910767919.6A priority Critical patent/CN110471786B/en
Publication of CN110471786A publication Critical patent/CN110471786A/en
Application granted granted Critical
Publication of CN110471786B publication Critical patent/CN110471786B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • 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/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides an online thermal repair method, device, equipment and a computer readable storage medium. According to the method, the thermal restoration configuration file is obtained by responding to the starting of the application program; analyzing the thermal repair configuration file to obtain repair configuration data of a method to be repaired in the application program; according to the repair configuration data of the method to be repaired, performing thermal repair treatment on the method to be repaired, dynamically updating the thermal repair configuration file, namely performing online thermal repair treatment on the application program, and only restarting the application program after updating the thermal repair configuration file, so that the online of a new version is completed without repacking, testing, auditing and issuing, and the repair time of the application program is reduced; the method does not need to rely on other third party libraries other than the system, does not need to convert through a system library JavaScript core, improves the safety of application programs, and improves the efficiency of online hot repair.

Description

Online thermal remediation method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an online thermal repair method, apparatus, device, and computer readable storage medium.
Background
After Application (App) on a terminal device is online, various problems such as bug (bug) or conflict (crash) are unavoidable. If some significant bug is encountered, an off-line repair application is required, and the new version of App is completed by repackaging, testing, auditing and issuing, which requires a significant amount of time, typically hours or even days.
Currently, iOS has a hot repair framework that is open-source: the JSPatch, the framework carries out hot repair by issuing JavaScript (also called JS script), the scheme can call any method of the software application system, even can dynamically add a new module for the software application system, and seriously threatens the safety and privacy of the software application system. In addition, the thermal repair framework needs to be converted through the system JavaScript core, so that the thermal repair efficiency is low, and the problem that the software application repair time is long cannot be effectively solved.
Disclosure of Invention
The application provides an online thermal repairing method, device, equipment and a computer readable storage medium, which are used for solving the problems that the existing thermal repairing method based on the iOS seriously threatens the safety and privacy of a software application system, the efficiency of thermal repairing is low, and the time consumption of software application repairing cannot be effectively solved.
One aspect of the present application provides an on-line thermal remediation method comprising:
responding to the starting of an application program, and acquiring a thermal restoration configuration file;
analyzing the thermal repair configuration file to obtain repair configuration data of a method to be repaired in the application program;
and carrying out thermal repair treatment on the method to be repaired according to the repair configuration data of the method to be repaired.
Another aspect of the present application is to provide an on-line thermal repair device, comprising:
the thermal restoration configuration file acquisition module is used for responding to the starting of the application program to acquire a thermal restoration configuration file;
the thermal repair configuration file analysis module is used for analyzing the thermal repair configuration file to obtain repair configuration data of a method to be repaired in the application program;
and the thermal repair processing module is used for performing thermal repair processing on the method to be repaired according to the repair configuration data of the method to be repaired.
Another aspect of the present application is to provide an in-line thermal repair apparatus comprising:
a processor, a memory, and a computer program stored on the memory and executable on the processor;
the processor realizes the online thermal repairing method when running the computer program.
Another aspect of the present application is to provide a computer readable storage medium having a computer program stored therein, which when executed by a processor, implements the above-described online thermal remediation method.
The application provides an online thermal repair method, device, equipment and a computer readable storage medium, which are used for acquiring a thermal repair configuration file by responding to the starting of an application program; analyzing the thermal repair configuration file to obtain repair configuration data of a method to be repaired in the application program; according to the repair configuration data of the method to be repaired, performing thermal repair treatment on the method to be repaired, and dynamically updating the thermal repair configuration file, namely performing online thermal repair treatment on the application program, wherein after updating the thermal repair configuration file, only the application program is required to be restarted, and the online of a new version is not required to be completed through repacking, testing, auditing and issuing, so that the repair time of the application program can be greatly reduced; and the method does not need to rely on other non-system third party libraries or convert through a system library JavaScript core, so that the safety of an application program is improved, the on-line hot repair efficiency is improved, and the problem of long time consumption of software application repair can be effectively solved.
Drawings
FIG. 1 is a flowchart of an online thermal remediation method according to an embodiment of the present application;
FIG. 2 is a flowchart of an online thermal repair method according to a second embodiment of the present application;
FIG. 3 is a schematic structural diagram of an on-line thermal repair device according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of an on-line thermal repair device according to a fifth embodiment of the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The terms "first," "second," and the like, herein referred to, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the following description of the embodiments, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example 1
Fig. 1 is a flowchart of an online thermal repair method according to an embodiment of the present application. Aiming at the problems that the existing thermal repair method based on the iOS seriously threatens the safety and privacy of a software application system, the thermal repair efficiency is low, and the time consumption of software application repair is long can not be effectively solved, the embodiment of the application provides an online thermal repair method.
The method in this embodiment is applied to a terminal device, which may be a mobile terminal such as a smart phone or a tablet computer, or may be a computer device for developing and debugging a software application, and in other embodiments, the method may also be applied to other devices, where the terminal device is schematically illustrated in this embodiment.
As shown in fig. 1, the method specifically comprises the following steps:
step S101, responding to the starting of an application program, and acquiring a thermal restoration configuration file.
In this embodiment, the method for performing thermal repair and the configuration information of the thermal repair process performed may be stored in the thermal repair configuration file.
The thermal repair configuration file may store a method to be repaired and repair configuration data thereof. The repair configuration data of the method to be repaired may include: the method comprises the steps of carrying out thermal restoration treatment on identification information of a method to be restored, carrying out triggering conditions required to be met by the thermal restoration treatment on the method to be restored, and carrying out configuration data such as interfaces, input parameter values and the like in a system operation time library required to be called by the thermal restoration treatment.
In addition, the hot repair configuration file of the application program may be a JSON configuration file with a specified rule, where the specified rule satisfied by the JSON configuration file may be a rule that needs to be satisfied by an existing JSON configuration file, or may be set by a technician according to actual needs and experience, and the embodiment is not specifically limited herein.
And S102, analyzing the thermal repair configuration file to obtain repair configuration data of the method to be repaired in the application program.
In this embodiment, according to the specified rule satisfied by the thermal repair configuration file, the thermal repair configuration file is parsed, so as to obtain repair configuration data of the method to be repaired in the application program.
In addition, the method for parsing the thermal repair configuration file may be implemented by any method for parsing the JSON configuration file in the prior art, which is not described herein in detail.
And step S103, performing thermal repair treatment on the method to be repaired according to repair configuration data of the method to be repaired.
In this embodiment, according to the repair configuration data of the method to be repaired, when the application program system is running, one or more types of thermal repair processing is implemented on the method to be repaired by calling an interface program in the runtime library.
Specifically, the thermal repair treatment that can be performed includes at least: any method (also called a function) is replaced by a null implementation, and the replacement of the null implementation is equivalent to the fact that no operation is performed when the method is called; the external input parameters of the method can be judged, if the external input parameters do not meet the conditions, a specified return value is directly returned (return), otherwise, the method is continuously executed; the external incoming parameters of the method can be replaced; the return value of the method may be modified; custom code may be inserted before and after the target method, and so on.
The embodiment of the application acquires the thermal restoration configuration file through the starting of the corresponding application program; analyzing the thermal repair configuration file to obtain repair configuration data of a method to be repaired in the application program; according to the repair configuration data of the method to be repaired, performing thermal repair treatment on the method to be repaired, and dynamically updating the thermal repair configuration file, namely performing online thermal repair treatment on the application program, wherein after updating the thermal repair configuration file, only the application program is required to be restarted, and the online of a new version is not required to be completed through repacking, testing, auditing and issuing, so that the repair time of the application program can be greatly reduced; and the method does not need to rely on other non-system third party libraries or convert through a system library JavaScript core, so that the safety of an application program is improved, the on-line hot repair efficiency is improved, and the problem of long time consumption of software application repair can be effectively solved.
Example two
Fig. 2 is a flowchart of an online thermal repair method according to a second embodiment of the present application. On the basis of the first embodiment, in this embodiment, in response to the start of the application, acquiring the thermal repair configuration file includes: downloading a hot repair configuration file from a server in response to the start of the application program; and updating the locally stored thermal restoration configuration file according to the downloaded thermal restoration configuration file.
As shown in fig. 2, the method specifically comprises the following steps:
step S201, responding to the starting of an application program, and acquiring a locally stored thermal repair configuration file.
In this embodiment, the method for performing thermal repair and the configuration information of the thermal repair process performed may be stored in a thermal repair configuration file, and the thermal repair configuration file is uniformly uploaded to the server. The server is used for storing the thermal repair configuration file of one or a plurality of application programs and providing functions of uploading, downloading, dynamically updating and the like of the thermal repair configuration file. The technician may modify the hot repair profile of the application in the server based on the application's operating conditions.
The hot repair configuration file of the application program may be a JSON configuration file with a specified rule, where the specified rule that the JSON configuration file meets may be a rule that the existing JSON configuration file needs to meet, or may be set by a technician according to actual needs and experience, and the embodiment is not specifically limited herein.
Specifically, in this step, when the App starts, it may first determine whether the thermal repair configuration file is stored locally.
Optionally, if the thermal repair configuration file is not stored locally, steps S204 to S205 may be directly executed, the thermal repair configuration file is parsed, and the thermal repair processing is performed on the method to be repaired through the system runtime library according to the repair configuration data of the method to be repaired obtained by parsing. In addition, steps S202-S203 may be executed in parallel, the thermal repair configuration file may be downloaded from the server, the locally stored thermal repair configuration file may be updated according to the downloaded thermal repair configuration file, and when the application program is started next time, the corresponding thermal repair process may be performed according to the thermal repair configuration file updated at the time of the last start.
Optionally, if the thermal repair configuration file is not stored locally, steps S202-S203 may be further performed, the thermal repair configuration file is downloaded from the server, and the locally stored thermal repair configuration file is updated according to the downloaded thermal repair configuration file; and then, executing steps S204-S205 according to the updated thermal restoration configuration file, and performing corresponding thermal restoration processing according to the updated thermal restoration configuration file. Thus, in the running process of the application program, the hot repair processing of the updated hot repair configuration file can be completed without waiting for the next starting of the application program.
Step S202, downloading the thermal repair configuration file from the server.
The server is used for storing the thermal repair configuration file of one or a plurality of application programs and providing functions of uploading, downloading, dynamically updating and the like of the thermal repair configuration file. The technician may modify the hot repair profile of the application in the server based on the application's operating conditions.
When the thermal restoration configuration file is downloaded from the server, the terminal device where the application program is located downloads the thermal restoration configuration file corresponding to the identification information of the application program from the server according to the identification information of the current application program.
Step S203, updating the locally stored thermal restoration configuration file according to the downloaded thermal restoration configuration file.
Specifically, after downloading the thermal restoration configuration file from the server, if the thermal restoration configuration file is locally stored, updating the local thermal restoration configuration file into a newly downloaded thermal restoration configuration file; if the thermal repair profile is not stored locally, the newly downloaded thermal repair profile is stored locally.
And S204, analyzing the thermal repair configuration file to obtain repair configuration data of the method to be repaired in the application program.
In this embodiment, according to the specified rule satisfied by the thermal repair configuration file, the thermal repair configuration file is parsed, so as to obtain repair configuration data of the method to be repaired in the application program.
The thermal repair configuration file may store a method to be repaired and repair configuration data thereof. The repair configuration data of the method to be repaired may include: the method comprises the steps of carrying out thermal restoration treatment on identification information of a method to be restored, carrying out triggering conditions required to be met by the thermal restoration treatment on the method to be restored, and carrying out configuration data such as interfaces, input parameter values and the like in a system operation time library required to be called by the thermal restoration treatment.
In addition, the method for parsing the thermal repair configuration file may be implemented by any method for parsing the JSON configuration file in the prior art, which is not described herein in detail.
Step S205, performing thermal repair treatment on the method to be repaired according to the repair configuration data of the method to be repaired.
In this embodiment, according to repair configuration data of a method to be repaired, performing thermal repair processing on the method to be repaired through a system runtime library, where the thermal repair processing includes at least one of the following:
first thermal repair treatment: the repair configuration data of the method to be repaired comprises the following steps: and replacing the method to be repaired with configuration information for specifying the first method. And replacing the method to be repaired with the first method through the system runtime library according to the repair configuration data of the method to be repaired.
Alternatively, the first method may be implemented for null.
For example, if the calling method A on line inevitably causes the system crash of the application program, the crash can be avoided by replacing the method A with an empty implementation through the first type of thermal repair processing, and after the thermal repair is completed, the calling of the method A again is equivalent to the normal operation of the application program App without any operation, thereby completing the online repair operation. Thus, although partial functions are lost, the main functions of the App are not affected, and the problem of user experience caused by breakdown is well avoided.
Second thermal repair treatment: the repair configuration data of the method to be repaired comprises the following steps: the method comprises the steps of setting a first condition to be met by an entry parameter of a method to be repaired and presetting a return value. Judging whether the current input parameters meet the first condition or not when the method to be repaired needs to be operated according to the repair configuration data of the method to be repaired; if the current input parameters do not meet the first condition, the method to be repaired is not executed, and the preset return value is directly returned. And if the current incoming parameters meet the first condition, normally executing the method to be repaired.
The first condition is a condition which needs to be met by external input parameters when the method to be modified operates normally.
Third thermal repair treatment: the repair configuration data of the method to be repaired comprises the following steps: and a preset parameter value corresponding to at least one inlet parameter of the method to be repaired. And according to the repair configuration data of the method to be repaired, when the method to be repaired needs to be operated, replacing the value of at least one inlet parameter in the current input parameters with the corresponding preset parameter value, and then operating the method to be repaired.
The preset parameter value may be preset in the thermal repair configuration file by a technician according to an actual application scenario.
For example, the value of the parameter a externally input to the method to be repaired is originally 0, and the value of the parameter a can be replaced by any self-defined integer value through the hot repair process.
Fourth thermal repair treatment: the repair configuration data of the method to be repaired comprises the following steps: and the second condition required to be met by the return value of the method to be repaired and the preset return value setting rule. Judging whether the return value of the method to be repaired meets a second condition according to the repair configuration data of the method to be repaired; if the return value of the method to be repaired does not meet the second condition, returning the return value meeting the second condition according to a preset return value setting rule.
The second condition is a condition which needs to be met by the return value of the method to be repaired. For example, the second bar may be a number that must be greater than 0 for the return value of the method.
The preset return value setting rule refers to a rule that automatically generates a return value meeting a second condition when the return value obtained by running the method to be modified does not meet the second condition, and the rule can be set by a technician according to an actual application scene and needs, and the embodiment is not particularly limited here.
In addition, the preset return value setting rule may specify that the set return value satisfying the second condition is returned, or may generate a return value satisfying the second condition.
Fifth thermal repair treatment: the repair configuration data of the method to be repaired comprises the following steps: and inserting configuration information for designating the second method at a preset position of the method to be repaired. And when the system is operated to the preset position of the method to be repaired, operating a second method.
Specifically, the preset position may be before the second method is operated or after the second method is operated.
Exemplary, if the repair configuration data of the method to be repaired includes: inserting configuration information specifying a second method before the method to be repaired; then the second method is run before the system needs to run the second method. For example, method B may be inserted before the current method is performed.
Exemplary, if the repair configuration data of the method to be repaired includes: inserting configuration information for specifying a second method after the method to be repaired; then, after the system runs the second method, the second method is run.
The five types of thermal repair processes provided in the embodiment can basically solve the problem of repairing most online bugs, and the repair time of the application program can be greatly reduced by dynamically updating the thermal repair configuration file, namely, after the application program is subjected to online thermal repair processing, the application program is only required to be restarted, and the new version online is not required to be repacked, tested, audited and released; and the method does not need to rely on other non-system third party libraries or convert through a system library JavaScript core, so that the safety of an application program is improved, the on-line hot repair efficiency is improved, and the problem of long time consumption of software application repair can be effectively solved.
Example III
Fig. 3 is a schematic structural diagram of an online thermal repairing apparatus according to a third embodiment of the present application. The on-line thermal repairing device provided by the embodiment of the application can execute the processing flow provided by the on-line thermal repairing method embodiment. As shown in fig. 3, the in-line thermal remediation device 30 includes: a thermal repair profile acquisition module 301, a thermal repair profile parsing module 302, and a thermal repair processing module 303.
Specifically, the thermal repair profile obtaining module 301 is configured to obtain a thermal repair profile in response to an application program start.
The thermal repair configuration file analysis module 302 is configured to analyze the thermal repair configuration file to obtain repair configuration data of the method to be repaired in the application program.
The thermal repair processing module 303 is configured to perform thermal repair processing on the method to be repaired according to repair configuration data of the method to be repaired.
The apparatus provided in the embodiment of the present application may be specifically used to perform the method embodiment provided in the first embodiment, and specific functions are not described herein.
According to the embodiment of the application, the thermal restoration configuration file is obtained by responding to the starting of the application program; analyzing the thermal repair configuration file to obtain repair configuration data of a method to be repaired in the application program; according to the repair configuration data of the method to be repaired, performing thermal repair treatment on the method to be repaired, and dynamically updating the thermal repair configuration file, namely performing online thermal repair treatment on the application program, wherein after updating the thermal repair configuration file, only the application program is required to be restarted, and the online of a new version is not required to be completed through repacking, testing, auditing and issuing, so that the repair time of the application program can be greatly reduced; and the method does not need to rely on other non-system third party libraries or convert through a system library JavaScript core, so that the safety of an application program is improved, the on-line hot repair efficiency is improved, and the problem of long time consumption of software application repair can be effectively solved.
Example IV
On the basis of the third embodiment, in this embodiment, the thermal repair profile obtaining module is further configured to:
downloading a hot repair configuration file from a server in response to the start of the application program; and updating the locally stored thermal restoration configuration file according to the downloaded thermal restoration configuration file.
Optionally, the repair configuration data of the method to be repaired includes: replacing the method to be repaired with configuration information for specifying the first method; the thermal remediation processing module is also configured to:
and replacing the method to be repaired with the first method through the system runtime library according to the repair configuration data of the method to be repaired.
Alternatively, the first method is a null implementation.
Optionally, the repair configuration data of the method to be repaired includes: the method comprises the steps of (1) a first condition to be met by an inlet parameter of a method to be repaired, and presetting a return value; the thermal remediation processing module is also configured to:
judging whether the current input parameters meet the first condition or not when the method to be repaired needs to be operated according to the repair configuration data of the method to be repaired; if the current input parameters do not meet the first condition, the method to be repaired is not executed, and the preset return value is directly returned.
Optionally, the repair configuration data of the method to be repaired includes: preset parameter values corresponding to at least one inlet parameter of the method to be repaired; the thermal remediation processing module is also configured to:
and according to the repair configuration data of the method to be repaired, when the method to be repaired needs to be operated, replacing the value of at least one inlet parameter in the current input parameters with the corresponding preset parameter value, and then operating the method to be repaired.
Optionally, the repair configuration data of the method to be repaired includes: the method comprises the steps of setting a second condition required to be met by a return value of a method to be repaired and presetting a return value setting rule; the thermal remediation processing module is also configured to:
judging whether the return value of the method to be repaired meets a second condition according to the repair configuration data of the method to be repaired; if the return value of the method to be repaired does not meet the second condition, returning the return value meeting the second condition according to a preset return value setting rule.
Optionally, the repair configuration data of the method to be repaired includes: inserting configuration information for designating a second method in a preset position of the method to be repaired; the thermal remediation processing module is also configured to:
and when the system is operated to the preset position of the method to be repaired, operating a second method.
The apparatus provided in the embodiment of the present application may be specifically used to execute the method embodiment provided in the second embodiment, and specific functions are not described herein.
The five types of thermal repair processes provided in the embodiment can basically solve the problem of repairing most online bugs, and the repair time of the application program can be greatly reduced by dynamically updating the thermal repair configuration file, namely, after the application program is subjected to online thermal repair processing, the application program is only required to be restarted, and the new version online is not required to be repacked, tested, audited and released; and the method does not need to rely on other non-system third party libraries or convert through a system library JavaScript core, so that the safety of an application program is improved, the on-line hot repair efficiency is improved, and the problem of long time consumption of software application repair can be effectively solved.
Example five
Fig. 4 is a schematic structural diagram of an on-line thermal repair device according to a fifth embodiment of the present application. As shown in fig. 4, the in-line thermal repair apparatus 40 includes: a processor 701, a memory 702, and a computer program stored on the memory 702 and executable on the processor 701;
wherein the processor 701 implements the online thermal remediation method provided by any of the method embodiments described above when running a computer program.
According to the embodiment of the application, the thermal restoration configuration file is obtained by responding to the starting of the application program; analyzing the thermal repair configuration file to obtain repair configuration data of a method to be repaired in the application program; according to the repair configuration data of the method to be repaired, performing thermal repair treatment on the method to be repaired, and dynamically updating the thermal repair configuration file, namely performing online thermal repair treatment on the application program, wherein after updating the thermal repair configuration file, only the application program is required to be restarted, and the online of a new version is not required to be completed through repacking, testing, auditing and issuing, so that the repair time of the application program can be greatly reduced; and the method does not need to rely on other non-system third party libraries or convert through a system library JavaScript core, so that the safety of an application program is improved, the on-line hot repair efficiency is improved, and the problem of long time consumption of software application repair can be effectively solved.
In addition, the embodiment of the application also provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and the online thermal restoration method provided by any one of the method embodiments is realized when the computer program is executed by a processor.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform part of the steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above. The specific working process of the above-described device may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (9)

1. An on-line thermal remediation method, comprising:
responding to the starting of an application program, and acquiring a thermal restoration configuration file;
analyzing the thermal repair configuration file to obtain repair configuration data of a method to be repaired in the application program, wherein the repair configuration data comprises the following steps: the method comprises the steps of identifying information of a method to be repaired, a mode of performing thermal repair treatment, triggering conditions required to be met by the method to be repaired for performing thermal repair treatment, interfaces in a system operation database required to be invoked for performing thermal repair treatment, and input parameter values;
performing thermal repair treatment on the method to be repaired according to repair configuration data of the method to be repaired;
the repair configuration data of the method to be repaired comprises the following steps: replacing the method to be repaired with configuration information for specifying a first method; the step of performing thermal repair treatment on the method to be repaired according to the repair configuration data of the method to be repaired comprises the following steps: replacing the method to be repaired with the first method according to the repair configuration data of the method to be repaired; the first method is a null implementation.
2. The method of claim 1, wherein the obtaining the thermal remediation profile in response to the application launch comprises:
downloading a hot repair configuration file from a server in response to the start of the application program;
and updating the locally stored thermal repair configuration file according to the downloaded thermal repair configuration file.
3. The method of claim 1, wherein the repair configuration data of the method to be repaired comprises: the method comprises the steps of (1) a first condition to be met by an inlet parameter of the method to be repaired and presetting a return value; the step of performing thermal repair treatment on the method to be repaired according to the repair configuration data of the method to be repaired comprises the following steps:
judging whether the current input parameters meet the first condition or not when the method to be repaired needs to be operated according to the repair configuration data of the method to be repaired;
and if the current incoming parameter does not meet the first condition, the method to be repaired is not executed, and the preset return value is directly returned.
4. The method of claim 1, wherein the repair configuration data of the method to be repaired comprises: preset parameter values corresponding to at least one inlet parameter of the method to be repaired; the step of performing thermal repair treatment on the method to be repaired according to the repair configuration data of the method to be repaired comprises the following steps:
and according to the repair configuration data of the method to be repaired, when the method to be repaired needs to be operated, the method to be repaired is operated after the value of the at least one inlet parameter in the current input parameters is replaced by the corresponding preset parameter value.
5. The method of claim 1, wherein the repair configuration data of the method to be repaired comprises: the method comprises the steps of setting a second condition required to be met by a return value of the method to be repaired and presetting a return value setting rule; the step of performing thermal repair treatment on the method to be repaired according to the repair configuration data of the method to be repaired comprises the following steps:
judging whether the return value of the method to be repaired meets the second condition according to the repair configuration data of the method to be repaired;
and if the return value of the method to be repaired does not meet the second condition, returning the return value meeting the second condition according to the preset return value setting rule.
6. The method of claim 1, wherein the repair configuration data of the method to be repaired comprises: inserting configuration information for specifying a second method in a preset position of the method to be repaired; the step of performing thermal repair treatment on the method to be repaired according to the repair configuration data of the method to be repaired comprises the following steps:
and when the system is operated to the preset position of the method to be repaired, operating the second method.
7. An on-line thermal repair device, comprising:
the thermal restoration configuration file acquisition module is used for responding to the starting of the application program to acquire a thermal restoration configuration file;
the thermal repair configuration file analysis module is used for analyzing the thermal repair configuration file to obtain repair configuration data of a method to be repaired in the application program, wherein the repair configuration data comprises the following components: the method comprises the steps of identifying information of a method to be repaired, a mode of performing thermal repair treatment, triggering conditions required to be met by the method to be repaired for performing thermal repair treatment, interfaces in a system operation database required to be invoked for performing thermal repair treatment, and input parameter values;
the thermal repair processing module is used for performing thermal repair processing on the method to be repaired according to the repair configuration data of the method to be repaired;
the repair configuration data of the method to be repaired comprises the following steps: replacing the method to be repaired with configuration information for specifying a first method;
the thermal repair processing module is specifically configured to replace the method to be repaired with the first method according to repair configuration data of the method to be repaired; the first method is a null implementation.
8. An on-line thermal repair apparatus, comprising:
a processor, a memory, and a computer program stored on the memory and executable on the processor;
wherein the processor, when running the computer program, implements the method according to any of claims 1 to 6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method according to any of claims 1 to 6.
CN201910767919.6A 2019-08-20 2019-08-20 Online thermal remediation method, device, equipment and computer readable storage medium Active CN110471786B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910767919.6A CN110471786B (en) 2019-08-20 2019-08-20 Online thermal remediation method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910767919.6A CN110471786B (en) 2019-08-20 2019-08-20 Online thermal remediation method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110471786A CN110471786A (en) 2019-11-19
CN110471786B true CN110471786B (en) 2023-09-12

Family

ID=68511976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910767919.6A Active CN110471786B (en) 2019-08-20 2019-08-20 Online thermal remediation method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110471786B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111273955B (en) * 2020-01-16 2024-01-19 惠州Tcl移动通信有限公司 Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN113467815A (en) * 2021-06-30 2021-10-01 平安壹钱包电子商务有限公司 Application repair method and device for hot update, terminal equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648724A (en) * 2016-09-05 2017-05-10 Tcl集团股份有限公司 Application hotfix method and terminal
CN106897095A (en) * 2017-02-24 2017-06-27 网易(杭州)网络有限公司 The multiple method of application program hot repair, device and readable storage medium storing program for executing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648724A (en) * 2016-09-05 2017-05-10 Tcl集团股份有限公司 Application hotfix method and terminal
CN106897095A (en) * 2017-02-24 2017-06-27 网易(杭州)网络有限公司 The multiple method of application program hot repair, device and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN110471786A (en) 2019-11-19

Similar Documents

Publication Publication Date Title
US10528742B2 (en) Method and apparatus for repairing kernel vulnerability
CN107451474B (en) Software bug fixing method and device for terminal
CN108459964B (en) Test case selection method, device, equipment and computer readable storage medium
US20130179865A1 (en) Automated error checking system for a software application and method therefor
US9063819B2 (en) Extensible patch management
CN106557470B (en) Data extraction method and device
CN110851159B (en) Business rule updating method and device, computer equipment and storage medium
CN110471786B (en) Online thermal remediation method, device, equipment and computer readable storage medium
US11301237B2 (en) Upgrading method and apparatus
CN110941528A (en) Log buried point setting method, device and system based on fault
CN110908702A (en) Version switching method, version switching device, computer equipment and storage medium
CN112134961B (en) Client use control method, client and computer storage medium
CN112083971B (en) Component processing method, device and storage medium
CN110865828A (en) Data upgrading method, device, equipment and computer readable storage medium
CN109684205B (en) System testing method, device, electronic equipment and storage medium
CN113535206B (en) Multi-version code upgrading method and system
CN115455414A (en) Safety detection method and device
CN114816482A (en) Method and device for upgrading block storage service, computer equipment and storage medium
CN113297149A (en) Method and device for monitoring data processing request
CN112346994A (en) Test information correlation method and device, computer equipment and storage medium
CN108415825B (en) Electronic device, test method, and storage medium
CN111444057A (en) Page performance data acquisition method and device and computing equipment
CN110046055B (en) Application flash backing processing method and device, terminal and computer readable storage medium
CN112464088B (en) Recommendation request response method and device and recommendation system development method
CN113608996B (en) Mirror image compiling test method, system, device and readable 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
GR01 Patent grant
GR01 Patent grant