CN116414417A - Version updating method and device, nonvolatile storage medium and electronic equipment - Google Patents

Version updating method and device, nonvolatile storage medium and electronic equipment Download PDF

Info

Publication number
CN116414417A
CN116414417A CN202310403889.7A CN202310403889A CN116414417A CN 116414417 A CN116414417 A CN 116414417A CN 202310403889 A CN202310403889 A CN 202310403889A CN 116414417 A CN116414417 A CN 116414417A
Authority
CN
China
Prior art keywords
target
version
resource file
application program
environment
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
CN202310403889.7A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310403889.7A priority Critical patent/CN116414417A/en
Publication of CN116414417A publication Critical patent/CN116414417A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a version updating method and device, a nonvolatile storage medium and electronic equipment. The method relates to the field of program operation and maintenance, and comprises the following steps: importing a target resource file into a mirror image environment corresponding to a target environment, wherein the target resource file is a resource file corresponding to a target version of an application program, and the application program runs in the target environment in a current version; mapping the target resource file from the mirror image environment to the target environment; and responding to the restart instruction of the application program, and controlling the application program to restart with the target version by calling the target resource file in the target environment. The invention solves the technical problem that the service continuity is affected due to longer time consumption of updating the version of the application program.

Description

Version updating method and device, nonvolatile storage medium and electronic equipment
Technical Field
The present invention relates to the field of program operation and maintenance, and in particular, to a version updating method and apparatus, a nonvolatile storage medium, and an electronic device.
Background
In the related art, when an application program performs a version update, a deployment procedure of a new version generally includes the following steps: defining resources, backing up resources, deleting resources, importing resources, validating resources, and the like. Generally, version deployment of an application relies entirely on manual handling and affects business continuity due to the long time consuming deletion and importation of resources and due to the unavailability of the application during long-term version updates.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a version updating method and device, a nonvolatile storage medium and electronic equipment, which are used for at least solving the technical problem that service continuity is affected due to long application program version updating time.
According to an aspect of an embodiment of the present invention, there is provided a version updating method, including: importing a target resource file into a mirror image environment corresponding to a target environment, wherein the target resource file is a resource file corresponding to a target version of an application program, and the application program runs in the target environment in a current version; mapping the target resource file from the mirror environment to the target environment; and responding to an application program restarting instruction, and controlling the application program to restart with the target version by calling the target resource file in the target environment.
Optionally, the mapping the target resource file from the mirror environment to the target environment includes: acquiring the file name of the current resource file of the application program; and renaming the target resource file by adopting the file name of the current resource file to obtain a renamed target resource file.
Optionally, the method further comprises: backing up the current resource file, wherein backing up the current resource file includes: and renaming the current resource file.
Optionally, before renaming the target resource file by adopting the file name of the current resource file, the method further includes: and responding to an application program down command, and stopping the operation of the application program.
Optionally, the importing the target resource file into the mirror image environment corresponding to the target environment includes: acquiring a version definition list corresponding to a target version of the application program; and importing the version definition list into a database corresponding to the mirror image environment, and exporting a resource script corresponding to the version definition list from the database, wherein the target resource file comprises the resource script.
Optionally, the application program includes: a batch job scheduling tool; the responding to the restart instruction of the application program, controlling the application program to restart with the target version, comprises the following steps: and restarting the batch job scheduling tool in response to the application restarting instruction, wherein the target resource file is imported into a batch plan of the batch job scheduling tool in the process of restarting the batch job scheduling tool.
Optionally, after controlling the application to restart with the target version, the method further comprises: checking the running version of the application program to obtain a checking result; and determining that the application program version is updated successfully according to the verification result.
According to an aspect of an embodiment of the present invention, there is provided a version updating apparatus including: the system comprises an importing module, a storage module and a storage module, wherein the importing module is used for importing a target resource file into a mirror image environment corresponding to a target environment, the target resource file is a resource file corresponding to a target version of an application program, and the application program runs in the target environment in a current version; the mapping module is used for mapping the target resource file from the mirror image environment to the target environment; and the restarting module is used for responding to an application program restarting instruction and controlling the application program to restart with the target version by calling the target resource file in the target environment.
According to an aspect of an embodiment of the present invention, there is provided a nonvolatile storage medium, where the nonvolatile storage medium includes a stored program, and when the program runs, the device in which the nonvolatile storage medium is controlled to execute the version updating method described in any one of the foregoing.
According to an aspect of an embodiment of the present invention, there is provided an electronic device including one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the version updating method of any one of the above.
In the embodiment of the invention, a mode of creating a mirror image environment is adopted, and the partial flow related to version updating is finished in the mirror image environment in advance, so that the resource file of the target version is imported into the mirror image environment and then mapped to the target environment, the purpose of quickly finishing the preparation work required by version updating is achieved, the technical effect of improving the version updating efficiency of the application program is realized, and the technical problem that the service continuity is influenced due to long time consumption of version updating of the application program is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, illustrate and explain the application and are not to be construed as limiting the application. In the drawings:
FIG. 1 is a flow chart of a version update method provided in accordance with an embodiment of the present application;
FIG. 2 is a block diagram of a version updating device provided according to an embodiment of the present application;
fig. 3 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that, related information (including, but not limited to, user equipment information, user personal information, etc.) and data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present disclosure are information and data authorized by a user or sufficiently authorized by each party. For example, an interface is provided between the system and the relevant user or institution, before acquiring the relevant information, the system needs to send an acquisition request to the user or institution through the interface, and acquire the relevant information after receiving the consent information fed back by the user or institution.
In the related art, a version update is often required for an application installed on a host or a server. The application program cannot be normally used during the version updating period, so that if the version updating time is too long, the related business of the application program is greatly stagnated, and the business continuity is seriously affected. For example, in the case where the application is a batch job scheduling tool, as the version of the batch job scheduling tool is scaled up, the version deployment time is longer and longer, and the contradiction between the continuity requirement of the batch job processing and the shortage of the version change time window is more and more prominent. Meanwhile, the batch version deployment scheme in the related technology adopts a mode of combining manual submission and manual review, so that the defects of incompact flow, low automation degree, high risk of manual misoperation and the like exist in operation, great pressure and hidden danger are brought to production operation, emergency treatment and the like, and the potential influence on business treatment is increasingly revealed. Thus, there is an urgent need for a quick deployment scheme for batch versions of hosts.
It should be noted that, in the present application, batch processing means that a large amount of data can be operated according to a plan and accessed in a centralized manner without user interaction or under the condition of resource permission, so as to complete the data processing behavior of expected processing or generating a corresponding report. The job is a basic unit of batch processing operation performed by the host, and may refer to a code written in the host JCL (Job Control Language) language and completing a series of batch processing in a certain order.
The batch job scheduling tool is software for batch processing jobs, and in order to run batch jobs at a planned time, functions such as job scheduling, submission execution, progress tracking, error processing, and the like may be implemented using the batch job scheduling tool. The operation scheduling mainly comprises flow series connection, validity verification, operation period definition, logic switch control and the like; the submitting and executing mainly comprises controlling the job to execute according to the condition that the previous factor of the job meets; the progress tracking is to track the actual execution condition of the operation and match with the schedule definition to control the execution state of the operation; error handling is the handling of job exception status.
In the related art, when a version of a batch job scheduling tool in a production environment is updated, the method generally includes the following steps: the method comprises the steps of resource definition, resource backup, resource deletion, resource import, resource validation and resource verification, wherein the resource definition refers to importing a readable version definition list into a database one by one through a system tool, and then exporting the version definition list from the database to generate a version script so as to realize the resource definition. The resource backup refers to exporting original version resources before version deployment in an UNLOAD mode, and the original version resources are used as rollback standby. The resource deletion means that version resources in the original system are deleted in a DELETE mode, and system files are emptied as a precondition for the subsequent version import. The resource import represents that the script is imported into a specified production environment by submitting the script and customizing version parameters, so that the migration of the resource to the system is realized. The resource validation represents restarting the batch job scheduling tool, refreshing the batch plan, and validating the updated batch version. The resource verification means that the validation condition of the batch resource is checked, a batch job scheduling tool is operated, and the validity of the resource of the new version is verified. Among the above steps, the most time-consuming steps are usually resource import and resource deletion, which are required to be performed in a state that the batch job scheduling tool is stopped, so that the version update speed is dragged down, which results in overlong stopping time of the batch tool and affects the smoothness of the business processing.
The present invention will be described with reference to preferred implementation steps, and fig. 1 is a flowchart of a version updating method according to an embodiment of the present application, as shown in fig. 1, and the method includes the following steps:
step S101, importing a target resource file into a mirror image environment corresponding to a target environment, wherein the target resource file is a resource file corresponding to a target version of an application program, and the application program runs in the target environment in a current version.
Optionally, the application program may include a batch job scheduling tool, and the purpose of this embodiment is to quickly update the batch job scheduling tool from the current version to the target version, so as to reduce the down time of the batch job scheduling tool caused by version update as much as possible, and reduce the influence on the continuity of the batch job. The downed batch job scheduling tool means that the batch job scheduling tool is stopped to be in a stop state.
It should be noted that, the target environment and the mirror image environment may be operating system environments in a host or a server, the target environment is a production environment for running an application program, for example, running a batch job scheduling tool, the mirror image environment is generated according to the target environment, the mirror image environment is almost consistent with the target environment, and includes a code, a database table structure, data, a configuration file, and the like, and the mirror image environment may be used for running a mirror image of the application program, so that a data file of a current version of the application program may be preset in the mirror image environment.
The target resource file may be a resource file corresponding to a target version of the batch JOB scheduling tool, the batch version resource corresponding to the target version mainly includes JOB, AD, SR three types of information, JOB is a minimum unit logic program block written in a host JOB Control Language (JCL), and may be understood as a program for realizing a specific function, and the attribute in the definition includes a front-to-back item relationship of the program and a maximum return code of the program; AD (Application descriptions, AD for short) is a JOB list combination of specific related functions, namely a logic program combination of a certain type of functions, so that the overall management is convenient; an SR (SR) is a virtual Special resource of a certain type, and is used to control the ready state of JOB operation, and can be understood as a switch of a JOB level of a certain type.
As an alternative embodiment, the target resource file is imported into the mirror image environment corresponding to the target environment, which may be as follows: acquiring a version definition list corresponding to a target version of an application program; and importing the version definition list into a database corresponding to the mirror image environment, and exporting a resource script corresponding to the version definition list from the database, wherein the target resource file comprises the resource script.
Optionally, the time-consuming steps in the version update of the batch job scheduling tool include resource import and resource deletion, so in order to reduce the time consumed by version update, a target resource file corresponding to a target version can be imported into the mirror image environment, and the process does not affect the normal operation of the batch job scheduling tool in the target environment, and the batch job scheduling tool is prevented from being stopped due to the imported resource file.
The version definition list can be a list corresponding to version information of a new version released in an increment form, the version information of the stock can be stored in the database, and after the version definition list is imported into the database according to a relevant rule, the increment and the stock version are combined to obtain the version information corresponding to the target version. The database may be a conventional database running on a host system, such as IBM DB2, and the resource script exported in the database is the target resource file. The above process can be accomplished in a mirrored environment.
Step S102, mapping the target resource file from the mirror image environment to the target environment.
Alternatively, the configuration parameters of the mirror environment and the target environment may be set such that the parameters remain identical, such as the names of the respective components in the mirror environment and the target environment, and the respective component system operation parameters. Because the mirror image environment is very similar to the target environment, after the target resource file is imported in the mirror image environment, the target resource file can be directly mapped into the target environment, and compared with the process of importing the resource file in the target environment, the time consumed by the process is greatly reduced, so that the total time consumption of the whole version updating process can be saved.
As an alternative embodiment, mapping the target resource file from the mirror environment to the target environment may first obtain the file name of the current resource file of the application; and then renaming the current resource file by adopting the file name of the current resource file as the target resource file to obtain the renamed target resource file. Optionally, the current resource file may also be backed up, where backing up the current resource file includes: renaming the current resource file.
The process can be used for most rapidly importing the target resource file from the mirror image environment into the target environment. Alternatively, in the case where the file name of the current resource file corresponding to the current version of the application program in the target environment is a, the file name of the current resource file may be renamed to a' first, and then the target resource file may be renamed to a. The configuration file in the environment can not be modified in the process, so when the application program in the target environment is restarted, the application program still calls the resource file with the file name A, but the resource file with the file name A is replaced by the target resource file at the moment, so that the application program can be restarted by calling the target resource file, and the target resource file is utilized to run and execute the self function, and the application program runs in the target environment in the target version at the moment.
For example, in the case that the application program is a batch job scheduling tool, the above-mentioned alternative embodiment can shorten the overall deployment time of the version of the host batch job scheduling tool from 1 hour to 15 minutes, greatly simplify the deployment process, and also can shorten the shutdown window caused during the deployment of the version of the host batch job scheduling tool from 30 minutes to 1 minute, so as to greatly improve the service continuity.
As an alternative embodiment, before renaming the current resource file with the file name of the target resource file, the running of the application program may also be stopped in response to the down command of the application program.
It can be understood that the current resource file needs to be continuously used in the running state of the application program, so that the renaming work of the resource file cannot be performed, otherwise, the problem that the renaming is impossible or the program is wrong can occur. Therefore, before renaming the target resource file or renaming the current resource file, the running of the application program can be stopped first, so that the application program in the target environment enters a shutdown state, and after the renaming work is finished, the application program is restarted, the version update of the program is realized, and the problem of program running error is avoided.
It should be noted that, the down instruction and the restart instruction of the application program may be instructions sent by the operation and maintenance personnel, or may be instructions automatically generated by the version update program.
Step S103, in response to the application restarting instruction, the application is controlled to restart with the target version by calling the target resource file in the target environment.
As an alternative embodiment, in response to an application restart instruction, controlling the application to restart with the target version includes: and restarting the batch job scheduling tool in response to the application restart instruction, wherein the target resource file is imported into the batch plan of the batch job scheduling tool in the process of restarting the batch job scheduling tool.
As an alternative embodiment, after the control application is restarted with the target version, the method further includes: checking the running version of the application program to obtain a checking result; and determining that the application program version is updated successfully according to the verification result.
Through the steps, a mode of creating the mirror image environment is adopted, and the partial flow related to version updating is finished in the mirror image environment in advance, so that the resource file of the target version is imported into the mirror image environment and then mapped to the target environment, the purpose of quickly finishing the preparation work required by version updating is achieved, the technical effect of improving the version updating efficiency of the application program is achieved, and the technical problem that service continuity is affected due to long time consumption of version updating of the application program is solved.
By the alternative embodiments, at least the following advantages can be achieved:
it should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
According to an embodiment of the present invention, there is further provided an apparatus for implementing the above version updating method, and fig. 2 is a block diagram of a version updating apparatus according to an embodiment of the present application, as shown in fig. 2, where the apparatus includes: the import module 21, the mapping module 22 and the restart module 23 are described in detail below.
An importing module 21, configured to import a target resource file into a mirror image environment corresponding to a target environment, where the target resource file is a resource file corresponding to a target version of an application program, and the application program runs in the target environment in a current version;
a mapping module 22, coupled to the import module 21, for mapping the target resource file from the mirror environment to the target environment;
and a restarting module 23, coupled to the mapping module 22, for controlling the application to restart with the target version by calling the target resource file in the target environment in response to the application restarting instruction.
Here, the import module 21, the mapping module 22 and the restarting module 23 correspond to steps S101 to S103 in implementing the version updating method, and the plurality of modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in the above embodiments.
As an alternative embodiment, the mapping module 22 is further configured to obtain a file name of a current resource file of the application program; and renaming the file name of the current resource file as the target resource file to obtain the renamed target resource file.
As an optional embodiment, the version updating device is further configured to backup a current resource file, where backing up the current resource file includes: renaming the current resource file.
As an optional embodiment, the version updating device is further configured to respond to an application program down command before renaming the target resource file by using the file name of the current resource file, and stop the running of the application program.
As an optional embodiment, the version updating device is further configured to obtain a version definition list corresponding to a target version of the application program; and importing the version definition list into a database corresponding to the mirror image environment, and exporting a resource script corresponding to the version definition list from the database, wherein the target resource file comprises the resource script.
As an alternative embodiment, the application program includes: a batch job scheduling tool; the restarting module is also used for restarting the batch job scheduling tool in response to the application program restarting instruction, wherein the target resource file is imported into the batch plan of the batch job scheduling tool in the process of restarting the batch job scheduling tool.
As an optional embodiment, the version updating device is further configured to verify an operating version of the application program after the control application program is restarted with the target version, to obtain a verification result; and determining that the application program version is updated successfully according to the verification result.
According to the version updating device provided by the embodiment of the application, the partial flow related to version updating is finished in the mirror image environment in advance, and the resource file of the target version is imported into the mirror image environment and then mapped to the target environment, so that the purpose of rapidly finishing the preparation work required by version updating is achieved, the problem that service continuity is affected due to long time consumption of version updating of an application program in the related technology is solved, and further the effect of improving the version updating efficiency of the application program is achieved.
The version updating means comprises a processor and a memory, the above-mentioned import module 21, mapping module 22, restarting module 23, etc. are stored in the memory as program units, and the above-mentioned program units stored in the memory are executed by the processor to realize the corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the purpose of rapidly completing the version updating of the application program is achieved by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, on which a program is stored, which when executed by a processor, implements a version updating method.
The embodiment of the invention provides a processor, which is used for running a program, wherein the version updating method is executed when the program runs.
Fig. 3 is a schematic diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 3, the embodiment of the present invention provides an electronic device, where the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: importing a target resource file into a mirror image environment corresponding to a target environment, wherein the target resource file is a resource file corresponding to a target version of an application program, and the application program runs in the target environment in a current version; mapping the target resource file from the mirror image environment to the target environment; and responding to the restart instruction of the application program, and controlling the application program to restart with the target version by calling the target resource file in the target environment.
Optionally, the processor may further implement the following steps when executing the program: mapping the target resource file from the mirror environment into the target environment includes: acquiring a file name of a current resource file of an application program; and renaming the file name of the current resource file as the target resource file to obtain the renamed target resource file.
Optionally, the processor may further implement the following steps when executing the program: backing up the current resource file, wherein backing up the current resource file comprises: renaming the current resource file.
Optionally, the processor may further implement the following steps when executing the program: before renaming the target resource file by adopting the file name of the current resource file, the method further comprises the following steps: and responding to the down instruction of the application program, and stopping the operation of the application program.
Optionally, the processor may further implement the following steps when executing the program: importing the target resource file into the mirror image environment corresponding to the target environment comprises the following steps: acquiring a version definition list corresponding to a target version of an application program; and importing the version definition list into a database corresponding to the mirror image environment, and exporting a resource script corresponding to the version definition list from the database, wherein the target resource file comprises the resource script.
Optionally, the processor may further implement the following steps when executing the program: the application program comprises: a batch job scheduling tool; in response to the application restart instruction, controlling the application to restart with the target version, including: and restarting the batch job scheduling tool in response to the application restart instruction, wherein the target resource file is imported into the batch plan of the batch job scheduling tool in the process of restarting the batch job scheduling tool.
Optionally, the processor may further implement the following steps when executing the program: after the control application is restarted with the target version, further comprising: checking the running version of the application program to obtain a checking result; and determining that the application program version is updated successfully according to the verification result.
The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: importing a target resource file into a mirror image environment corresponding to a target environment, wherein the target resource file is a resource file corresponding to a target version of an application program, and the application program runs in the target environment in a current version; mapping the target resource file from the mirror image environment to the target environment; and responding to the restart instruction of the application program, and controlling the application program to restart with the target version by calling the target resource file in the target environment.
Optionally, the computer program product may also be adapted to perform a program initialized with the method steps of: mapping the target resource file from the mirror environment into the target environment includes: acquiring a file name of a current resource file of an application program; and renaming the file name of the current resource file as the target resource file to obtain the renamed target resource file.
Optionally, the computer program product may also be adapted to perform a program initialized with the method steps of: backing up the current resource file, wherein backing up the current resource file comprises: renaming the current resource file.
Optionally, the computer program product may also be adapted to perform a program initialized with the method steps of: before renaming the target resource file by adopting the file name of the current resource file, the method further comprises the following steps: and responding to the down instruction of the application program, and stopping the operation of the application program.
Optionally, the computer program product may also be adapted to perform a program initialized with the method steps of: importing the target resource file into the mirror image environment corresponding to the target environment comprises the following steps: acquiring a version definition list corresponding to a target version of an application program; and importing the version definition list into a database corresponding to the mirror image environment, and exporting a resource script corresponding to the version definition list from the database, wherein the target resource file comprises the resource script.
Optionally, the computer program product may also be adapted to perform a program initialized with the method steps of: the application program comprises: a batch job scheduling tool; in response to the application restart instruction, controlling the application to restart with the target version, including: and restarting the batch job scheduling tool in response to the application restart instruction, wherein the target resource file is imported into the batch plan of the batch job scheduling tool in the process of restarting the batch job scheduling tool.
Optionally, the computer program product may also be adapted to perform a program initialized with the method steps of: after the control application is restarted with the target version, further comprising: checking the running version of the application program to obtain a checking result; and determining that the application program version is updated successfully according to the verification result.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A version updating method, comprising:
importing a target resource file into a mirror image environment corresponding to a target environment, wherein the target resource file is a resource file corresponding to a target version of an application program, and the application program runs in the target environment in a current version;
mapping the target resource file from the mirror environment to the target environment;
and responding to an application program restarting instruction, and controlling the application program to restart with the target version by calling the target resource file in the target environment.
2. The method of claim 1, wherein mapping the target resource file from the mirrored environment into the target environment comprises:
acquiring the file name of the current resource file of the application program;
and renaming the target resource file by adopting the file name of the current resource file to obtain a renamed target resource file.
3. The method as recited in claim 2, further comprising: backing up the current resource file, wherein backing up the current resource file includes: and renaming the current resource file.
4. The method of claim 2, further comprising, prior to renaming the target resource file with the file name of the current resource file:
and responding to an application program down command, and stopping the operation of the application program.
5. The method according to claim 1, wherein importing the target resource file into the mirror environment corresponding to the target environment includes:
acquiring a version definition list corresponding to a target version of the application program;
and importing the version definition list into a database corresponding to the mirror image environment, and exporting a resource script corresponding to the version definition list from the database, wherein the target resource file comprises the resource script.
6. The method according to any one of claims 1 to 5, wherein the application program comprises: a batch job scheduling tool;
the responding to the restart instruction of the application program, controlling the application program to restart with the target version, comprises the following steps:
and restarting the batch job scheduling tool in response to the application restart instruction, wherein the target resource file is imported into a batch plan of the batch job scheduling tool in the process of restarting the batch job scheduling tool.
7. The method of claim 6, further comprising, after controlling the application to restart with the target version:
checking the running version of the application program to obtain a checking result;
and determining that the application program version is updated successfully according to the verification result.
8. A version updating device, comprising:
the system comprises an importing module, a storage module and a storage module, wherein the importing module is used for importing a target resource file into a mirror image environment corresponding to a target environment, the target resource file is a resource file corresponding to a target version of an application program, and the application program runs in the target environment in a current version;
the mapping module is used for mapping the target resource file from the mirror image environment to the target environment;
and the restarting module is used for responding to an application program restarting instruction and controlling the application program to restart with the target version by calling the target resource file in the target environment.
9. A non-volatile storage medium, characterized in that the non-volatile storage medium comprises a stored program, wherein the program, when run, controls a device in which the non-volatile storage medium is located to perform the version updating method of any one of claims 1 to 7.
10. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the version updating method of any of claims 1-7.
CN202310403889.7A 2023-04-14 2023-04-14 Version updating method and device, nonvolatile storage medium and electronic equipment Pending CN116414417A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310403889.7A CN116414417A (en) 2023-04-14 2023-04-14 Version updating method and device, nonvolatile storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310403889.7A CN116414417A (en) 2023-04-14 2023-04-14 Version updating method and device, nonvolatile storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116414417A true CN116414417A (en) 2023-07-11

Family

ID=87051072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310403889.7A Pending CN116414417A (en) 2023-04-14 2023-04-14 Version updating method and device, nonvolatile storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116414417A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116603245A (en) * 2023-07-21 2023-08-18 腾讯科技(深圳)有限公司 Program version adjustment method, device, equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116603245A (en) * 2023-07-21 2023-08-18 腾讯科技(深圳)有限公司 Program version adjustment method, device, equipment and readable storage medium
CN116603245B (en) * 2023-07-21 2023-09-29 腾讯科技(深圳)有限公司 Program version adjustment method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110209650B (en) Data normalization and migration method and device, computer equipment and storage medium
US9274782B2 (en) Automated computer application update analysis
CN107016016B (en) Data processing method and device
US8015374B2 (en) Method, system and computer program for backing-up data with centralized control
US9542173B2 (en) Dependency handling for software extensions
CN112000349B (en) Data upgrading method, device and medium based on SaaS
US9904574B2 (en) Parallel computing without requiring antecedent code deployment
CN109840105A (en) A kind of hot update method that do not withdraw
CN116414417A (en) Version updating method and device, nonvolatile storage medium and electronic equipment
US20090164970A1 (en) System for Managing Automated Report Versions
US20070185929A1 (en) Method and apparatus for processing monitoring
CN116049207A (en) Application SQL script processing method and device, processor and electronic equipment
US20230418623A1 (en) Application remodeling method, system, cluster, medium, and program product
CN112631763A (en) Program changing method and device of host program
CN110806891B (en) Method and device for generating software version of embedded device
CN115630835A (en) Activity-based workflow general parameter configuration method and system
CN114489999A (en) Method and device for processing pipeline task, processor and electronic equipment
CN114239098A (en) CAD drawing processing method and device, storage medium and processor
CN114791884A (en) Test environment construction method and device, storage medium and electronic equipment
CN110399296B (en) Method, system and medium for testing interactive interface between client and server
CN113064698A (en) Method for providing product environment and corresponding device, system, equipment and medium
CN117130987B (en) Flight control management method for large-scale unmanned aerial vehicle cluster
US20230259347A1 (en) Container based generation of inputs for generic functions
CN116149707B (en) Method and device for detecting and avoiding upgrading risk of distributed system
Goodwin et al. What goes wrong in serverless runtimes? A survey of bugs in Knative Serving

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