CN118170730A - File processing method, apparatus, device, storage medium, and program product - Google Patents

File processing method, apparatus, device, storage medium, and program product Download PDF

Info

Publication number
CN118170730A
CN118170730A CN202410331215.5A CN202410331215A CN118170730A CN 118170730 A CN118170730 A CN 118170730A CN 202410331215 A CN202410331215 A CN 202410331215A CN 118170730 A CN118170730 A CN 118170730A
Authority
CN
China
Prior art keywords
files
updated
time
batch
updating
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
CN202410331215.5A
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 CN202410331215.5A priority Critical patent/CN118170730A/en
Publication of CN118170730A publication Critical patent/CN118170730A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present disclosure provides a file processing method, apparatus, device, storage medium, and program product, which can be applied to the technical field of financial science and technology and the technical field of artificial intelligence, and the method includes: responding to the received file updating request, and determining J files to be updated corresponding to the file updating request; determining K first files to be updated and Q second files to be updated from J files to be updated; sequentially updating time windows of the second files to be updated and the first files to be updated according to the verification time of the first files to be updated, the second file expiration time of the second files to be updated and the system sealing time period to obtain second update start time and first update start time; and updating the first batch of files to be updated and the second batch of files to be updated in batches according to the first update start time and the second update start time to obtain the first batch of files and the second batch of files.

Description

File processing method, apparatus, device, storage medium, and program product
Technical Field
The present disclosure relates to the technical field of financial science and technology and the technical field of artificial intelligence, and in particular, to a file processing method, apparatus, device, storage medium, and program product.
Background
With the development of the financial industry, financial institutions need to acquire a large amount of financial related data from external systems. Strategic solutions are made to accommodate market changes by analyzing large amounts of financial related data. To ensure the security, validity and confidentiality of the financial related data, the financial institution needs to hold the certificate file of the upstream external system to normally acquire the data.
As external systems increase and financial institutions' business product lines expand, the number of certificates increases. When a financial institution system encounters a special period of time in which certificates cannot be updated, it is difficult to orderly adjust update windows of a large number of certificates, thereby increasing the risk of file update.
Disclosure of Invention
In view of the above, the present disclosure provides a file processing method, apparatus, device, storage medium, and program product.
According to a first aspect of the present disclosure, there is provided a file processing method, including: and in response to receiving the file update request, determining J files to be updated corresponding to the file update request. K first files to be updated and Q second files to be updated are determined from J files to be updated, J > K > Q, J, K and Q are integers. And sequentially updating the time windows of the second files to be updated and the first files to be updated according to the verification duration of the first files to be updated, the second file expiration time of the second files to be updated and the system sealing time period, so as to obtain second updating starting time and first updating starting time, wherein the system sealing time period indicates the time period for the system to prohibit the update operation of the files to be updated. And updating the first batch of files to be updated and the second batch of files to be updated in batches according to the first update start time and the second update start time to obtain the first batch of files and the second batch of files.
According to an embodiment of the present disclosure, the system-sealing period includes a second system-sealing period corresponding to the second system, the second system-sealing period indicating a period of time during which the second system prohibits the execution of the update operation on the file to be updated. Sequentially updating the time windows of the second files to be updated and the first files to be updated according to the verification time length of the first files to be updated, the second file expiration time of the second files to be updated and the system sealing time period, wherein the obtaining of the second update start time and the first update start time comprises the following steps: and updating the time window of the second batch of files to be updated according to the second file expiration time of the second batch of files to be updated and the second system sealing period to obtain the second update starting time of the second batch of files to be updated. And updating the time window of the first batch of files to be updated according to the second update start time, the verification time of the first batch of files to be updated and the first update time to obtain the first update start time of the first batch of files to be updated.
According to an embodiment of the present disclosure, updating a time window of a second batch of files to be updated according to a second file expiration time of the second batch of files to be updated and a second system sealing period, the obtaining a second update start time of the second batch of files to be updated includes: and matching the second file expiration time of the second batch of files to be updated with each time in the second system sealing period to obtain a first matching result. And determining the starting time of the second system sealing period as the second file target expiration time of the second batch of files to be updated under the condition that the matching result indicates that the second file expiration time is in the second system sealing period. And updating the time window of the second batch of files to be updated according to the second file target expiration time and the second updating time length to obtain the second updating start time of the second batch of files to be updated.
According to an embodiment of the present disclosure, the above method further includes: and under the condition that the first matching result indicates that the second file expiration time is not in the second system sealing period, acquiring the ending time of the second system sealing period. And determining a first judging duration from the ending time of the second system sealing time period to the second file expiration time according to the ending time of the second system sealing time period and the second file expiration time. And determining the starting time of the second system sealing period as the second file target expiration time under the condition that the second updating time period is smaller than the first judging time period. And updating the time window of the second batch of files to be updated according to the second file target expiration time and the second updating time length, and determining a second updating starting time.
According to an embodiment of the present disclosure, the system sealing period includes a first system sealing period corresponding to the first system, and the first system sealing period indicates a period in which the first system prohibits execution of the update operation on the file to be updated. Updating the time window of the first batch of files to be updated according to the second update start time, the verification time of the first batch of files to be updated and the first update time, wherein the step of obtaining the first update start time of the first batch of files to be updated comprises the following steps: and determining the first update starting time to be determined of the first batch of files to be updated according to the second update starting time, the verification time of the first batch of files to be updated and the first update time. And matching the first update starting time to be determined with each time in the first system sealing period to obtain a second matching result. And determining the starting time of the first system sealing period as the first updating starting time of the first batch of files to be updated under the condition that the second matching result characterizes that the first updating starting time to be determined is in the first system sealing period.
According to an embodiment of the present disclosure, the above method further includes: and under the condition that the second matching result characterizes that the first updating starting time to be determined is not in the first system sealing time period, determining a second judging duration from the starting time of the first system sealing time period to the first file expiration time according to the starting time of the first system sealing time period and the first file expiration time. And determining the first update start time to be determined as the first update start time in the case that the first update duration is smaller than the second determination duration.
According to an embodiment of the present disclosure, determining K first files to be updated and Q second files to be updated from J files to be updated includes: and determining K first files to be updated from J files to be updated according to a file quantity constraint relation between the file quantity of the files to be updated and the file quantity of the first files to be updated, wherein the file quantity constraint relation represents the file quantity of the first files to be updated and is smaller than or equal to the square root of the file quantity of the files to be updated.
According to an embodiment of the present disclosure, batch updating a first batch of files to be updated and a second batch of files to be updated according to a first update start time and a second update start time, obtaining the first batch of files and the second batch of files includes: and updating the first batch of files to be updated according to the first update start time to obtain a first batch of files. Verifying the first batch of files to obtain a verification result; and under the condition that the verification result represents that the verification of the first batch of files is passed, updating the second batch of files to be updated according to the second update start time to obtain the second batch of files.
A second aspect of the present disclosure provides a document processing apparatus, including: and the first determining module is used for determining J files to be updated corresponding to the file updating request in response to receiving the file updating request. The second determining module is used for determining K first files to be updated and Q second files to be updated from J files to be updated, J > K > Q, J, K and Q are integers. The first updating module is used for updating the time windows of the second files to be updated and the first files to be updated in sequence according to the verification duration of the first files to be updated, the second file expiration time of the second files to be updated and the system sealing time period, so as to obtain second updating starting time and first updating starting time, wherein the system sealing time period indicates the time period for the system to prohibit the updating operation of the files to be updated. And the second updating module is used for updating the first batch of files to be updated and the second batch of files to be updated in batches according to the first updating starting time and the second updating starting time to obtain the first batch of files and the second batch of files.
A third aspect of the present disclosure provides 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 perform the method described above.
A fourth aspect of the present disclosure also provides a computer readable storage medium having stored thereon an executable computer program which when executed by a processor performs the steps of the above method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method described above.
According to the file processing method, the device, the equipment, the storage medium and the program product provided by the disclosure, J files to be updated corresponding to the file update request are determined by responding to the received file update request. K first files to be updated and Q second files to be updated are determined from J files to be updated, J > K > Q, J, K and Q are integers, namely the number of the first files to be updated is smaller than that of the second files to be updated. And sequentially updating the time windows of the second files to be updated and the first files to be updated according to the verification duration of the first files to be updated, the second file expiration time of the second files to be updated and the system updating time period to obtain second updating start time and first updating start time, and reversely pushing the time windows of the first files to be updated from the time windows of the second files to be updated to obtain the second updating start time and the first updating start time more accurately in consideration of the system updating time period, so that the updating window requirements are met.
The first batch of files to be updated and the second batch of files to be updated are updated in batches according to the first update start time and the second update start time, so that the first batch of files and the second batch of files are obtained, the files to be updated are updated in batches according to the accurate first update start time and the second update start time, and the first batch of files to be updated with fewer priority are updated, so that the update risk cost can be effectively reduced, and the reliability of file processing is improved.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a file processing method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of file processing according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a graph of a trend of increasing file size of a first batch of files to be updated as the file size of the files to be updated increases, according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart for batch updating a first batch of files to be updated and a second batch of files to be updated according to a first update start time and a second update start time, resulting in a first batch of files and a second batch of files, according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates a flowchart of updating a time window of a second batch of files to be updated according to a second file expiration time and a second system sealing period of the second batch of files to be updated, resulting in a second update start time of the second batch of files to be updated, according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates a flowchart of updating a time window of a first batch of files to be updated according to a second update start time, a verification duration of the first batch of files to be updated, and a first update duration, resulting in a first update start time of the first batch of files to be updated, according to an embodiment of the present disclosure;
FIG. 7 schematically shows a block diagram of a file processing apparatus according to an embodiment of the present disclosure; and
Fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement a file processing method according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a convention should be interpreted in accordance with the meaning of one of skill in the art having generally understood the convention (e.g., "a system having at least one of A, B and C" would include, but not be limited to, systems having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical solution of the present disclosure, the related user information (including, but not limited to, user personal information, user image information, user equipment information, such as location information, etc.) and data (including, but not limited to, data for analysis, stored data, displayed data, etc.) are information and data authorized by the user or sufficiently authorized by each party, and the related data is collected, stored, used, processed, transmitted, provided, disclosed, applied, etc. in compliance with relevant laws and regulations and standards, necessary security measures are taken, no prejudice to the public order colloquia is provided, and corresponding operation entries are provided for the user to select authorization or rejection.
In the scenario of using personal information to make an automated decision, the method, the device and the system provided by the embodiment of the disclosure provide corresponding operation inlets for users, so that the users can choose to agree or reject the automated decision result; if the user selects refusal, the expert decision flow is entered. The expression "automated decision" here refers to an activity of automatically analyzing, assessing the behavioral habits, hobbies or economic, health, credit status of an individual, etc. by means of a computer program, and making a decision. The expression "expert decision" here refers to an activity of making a decision by a person who is specializing in a certain field of work, has specialized experience, knowledge and skills and reaches a certain level of expertise.
As external systems increase and financial institutions' business product lines expand, the number of certificates increases. When a financial institution system encounters a special period of time in which certificates cannot be updated, it is difficult to orderly adjust update windows of a large number of certificates, thereby increasing the risk of file update.
The embodiment of the disclosure provides a file processing method, which comprises the following steps: and in response to receiving the file update request, determining J files to be updated corresponding to the file update request. K first files to be updated and Q second files to be updated are determined from J files to be updated, J > K > Q, J, K and Q are integers. And sequentially updating the time windows of the second files to be updated and the first files to be updated according to the verification duration of the first files to be updated, the second file expiration time of the second files to be updated and the system sealing time period, so as to obtain second updating starting time and first updating starting time, wherein the system sealing time period indicates the time period for the system to prohibit the update operation of the files to be updated. And updating the first batch of files to be updated and the second batch of files to be updated in batches according to the first update start time and the second update start time to obtain the first batch of files and the second batch of files.
Fig. 1 schematically illustrates an application scenario diagram of a file processing method according to an embodiment of the present disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is a medium used to provide a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 through the network 104 using at least one of the first terminal device 101, the second terminal device 102, the third terminal device 103, to receive or send messages, etc. Various communication client applications, such as a shopping class application, a web browser application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only) may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
The first terminal device 101, the second terminal device 102, the third terminal device 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by the user using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the file processing method provided in the embodiment of the present disclosure may be generally performed by the server 105. Accordingly, the file processing apparatus provided in the embodiments of the present disclosure may be generally disposed in the server 105. The file processing method provided by the embodiment of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105. Accordingly, the file processing apparatus provided by the embodiments of the present disclosure may also be provided in a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 schematically illustrates a flow chart of a file processing method according to an embodiment of the present disclosure.
As shown in fig. 2, the file processing method of this embodiment includes operations S210 to S240.
In operation S210, in response to receiving the file update request, J files to be updated corresponding to the file update request are determined.
In operation S220, K first files to be updated and Q second files to be updated are determined from the J files to be updated, J > K > Q, J, K and Q being integers.
In operation S230, according to the verification duration of the first batch of files to be updated, the second file expiration time of the second batch of files to be updated, and the system encapsulation time period, the time windows of the second batch of files to be updated and the first batch of files to be updated are updated in sequence, so as to obtain a second update start time and a first update start time.
In operation S240, the first batch of files to be updated and the second batch of files to be updated are updated in batches according to the first update start time and the second update start time, so as to obtain the first batch of files and the second batch of files.
According to an embodiment of the present disclosure, the file update request may be in HTTP protocol format (Hypertext Transfer Protocol ). For example, the text update request may be a GET request or a POST request in HTTP protocol format.
According to embodiments of the present disclosure, the file to be updated may be a certificate to be updated, a business text to be updated, a criterion manual to be updated, or the like. The file to be updated may have an active time limit. I.e. the file to be updated may be applied or used within the validity time limit.
For example, the certificate to be updated may be a commercial account password file used by the financial institution's quotation system to obtain quotation price data from an external data provider. The certificate may contain server information and associated keys of the financial institution's quotation system, etc. The certificate will not be within the validity period and needs to be updated. For example, the business text to be updated may be a quarter business text, which updates business types from quarter to quarter. For example, due to updating of file versions, the criteria manual to be updated may be criteria, standard files, etc.
According to an embodiment of the present disclosure, the verification duration characterizes a duration in which the first batch of files to be updated are verified.
According to an embodiment of the present disclosure, the second file expiration time characterizes a corresponding expiration time in the validity time limit of the second batch of files to be updated. The update application may be selectively performed N days before the second file to be updated is set from the second file expiration time, and the server or the server cluster that processes the file processing method may receive the file update request, where N is an integer greater than or equal to 1.
According to an embodiment of the present disclosure, the time window characterizes an update time window of the first file to be updated or the second file to be updated. For example, the presence of a system quarantine period makes the selection of N more uncertain because a file update request needs to be issued N days from the expiration time of the second file. Since the first batch of files to be updated and the second batch of files to be updated are updated in batches according to the first update start time and the second update start time, the file update must have time windows corresponding to the first batch of files to be updated and the second batch of files to be updated respectively, and a verification duration is required between the two time windows. And the second files to be updated and the time windows of the first files to be updated are updated in sequence according to the verification time length of the first files to be updated, the second file expiration time of the second files to be updated and the system sealing time period, so that the second update start time and the first update start time are obtained by time reversal.
According to an embodiment of the present disclosure, the system save period indicates a period of time during which the system prohibits the execution of the update operation on the file to be updated. For example, the financial industry may prohibit changes to the system, including updating certificates, to ensure smooth operation of the business system for a particular period of time. This period of time is referred to as a system quarantine period, and credential updates need to avoid the system quarantine period.
According to an embodiment of the present disclosure, J files to be updated corresponding to a file update request are determined by responding to the received file update request. K first files to be updated and Q second files to be updated are determined from J files to be updated, J > K > Q, J, K and Q are integers, namely the number of the first files to be updated is smaller than that of the second files to be updated. And sequentially updating the time windows of the second files to be updated and the first files to be updated according to the verification duration of the first files to be updated, the second file expiration time of the second files to be updated and the system updating time period to obtain second updating start time and first updating start time, and reversely pushing the time windows of the first files to be updated from the time windows of the second files to be updated to obtain the second updating start time and the first updating start time more accurately in consideration of the system updating time period, so that the updating window requirements are met.
The first batch of files to be updated and the second batch of files to be updated are updated in batches according to the first update start time and the second update start time, so that the first batch of files and the second batch of files are obtained, the files to be updated are updated in batches according to the accurate first update start time and the second update start time, the first batch of files to be updated with fewer priority is processed, the update risk cost can be effectively reduced, and the reliability of file processing is improved.
According to an embodiment of the present disclosure, determining K first files to be updated and Q second files to be updated from J files to be updated includes: and determining K first files to be updated from J files to be updated according to a file quantity constraint relation between the file quantity of the files to be updated and the file quantity of the first files to be updated, wherein the file quantity constraint relation represents the file quantity of the first files to be updated and is smaller than or equal to the square root of the file quantity of the files to be updated.
According to the embodiment of the disclosure, the files to be updated are updated at the same time, and when the file updating operation fails or the new file is abnormal, the business risk is increased, and the application of the subsequent updated file is affected.
For example, the file to be updated may be a commercial account password file, i.e., a certificate, used by the financial institution's quotation system to obtain the quotation price data from an external data provider. The quotation system of the financial institution may be one having a plurality of servers, each having a certificate to be updated. And updating the files of all servers at the same time, when the certificate updating operation fails or a new certificate is abnormal, the quotation system of the financial institution can not receive the data source quotation of an external data provider, and the great business risk is caused. In order to avoid the hidden trouble and ensure the continuity of the quotation business system, the update operation needs to be carried out in batches on the servers of the files to be updated.
The server of the file to be updated is set A, the server set A can be provided with J servers, the J servers correspond to the file quantity J of the file to be updated, and the server set A provides quotation service of the certificate. In order to avoid business risks caused by file updating, the a servers are divided into two batches for certificate updating, K servers are selected to update the first batch of files to be updated on the day T1, and the first batch of files to be updated are the server set B, namely the file quantity of the first batch of files to be updated is K. After the first batch of server certificates pass the update verification, the remaining Q servers update the second files to be updated on the T2 day, i.e. the file quantity of the first batch of files to be updated is Q, as shown in table 1.
TABLE 1
Server name File update batch Update date
b1 1 T1
c1 2 T2
Wherein,And K is an integer, q=j-K. K is less than/>When the number of J is larger than 1, K is always smaller than J, and when the value of J is larger, the value of K is smaller in proportion.
Fig. 3 schematically illustrates a graph of a trend of increasing file size of a first batch of files to be updated versus file size of files to be updated according to an embodiment of the present disclosure.
As shown in fig. 3, the file amount K of the first batch of files to be updated increases with the file amount J of the files to be updated, but the larger the file amount J of the files to be updated is, the smaller the proportion of the file amount K of the first batch of files to be updated to the file amount J of the files to be updated is.
Fig. 4 schematically illustrates a flowchart of batch updating a first batch of files to be updated and a second batch of files to be updated according to a first update start time and a second update start time, resulting in a first batch of files and a second batch of files according to an embodiment of the present disclosure.
As shown in fig. 4, batch updating the first batch of files to be updated and the second batch of files to be updated according to the first update start time and the second update start time of the embodiment, obtaining the first batch of files and the second batch of files includes operations S410 to S450.
In operation S410, the first batch of files to be updated is updated according to the first update start time, so as to obtain a first batch of files.
In operation S420, the first batch file is verified, and a verification result is obtained.
In operation S430, whether the verification result characterizes the verification of the first batch file, if so, operation S440 is performed; if not, operation S450 is performed.
In operation S440, the second batch of files to be updated is updated according to the second update start time, so as to obtain a second batch of files.
In operation S450, the first batch of files to be updated is rolled back to the server corresponding to the first batch of files to be updated.
According to an embodiment of the present disclosure, the first batch of files is verified when the verification is completed for the first batch of servers to be updated with certificates. Under the condition that the verification result does not pass or an abnormality exists, the cost of K first batches of files to be updated corresponding to the K servers can be rolled back, which is far smaller than the cost of rolling back all files to be updated corresponding to the J servers. Meanwhile, as the number K of the first batch of updated certificate servers can be increased along with the number J of the servers of the total certificates to be updated, the influence on verification caused by accidental factors such as server abnormality and the like can be eliminated, and the verification result after the first batch of certificates are updated is representative.
According to the embodiment of the disclosure, the first batch of files to be updated is obtained by updating the first batch of files to be updated according to the first update start time. And verifying the first batch of files to obtain a verification result. Under the condition that the verification result represents that the verification of the first batch of files is passed, the second batch of files to be updated are updated according to the second update start time, so that the second batch of files are obtained, the rollback cost and the influence of accidental factors on the update operation when the file update is abnormal can be effectively reduced, and the reliability of the file update operation is improved.
According to an embodiment of the present disclosure, the system-sealing period includes a second system-sealing period corresponding to the second system, the second system-sealing period indicating a period of time during which the second system prohibits the execution of the update operation on the file to be updated. Sequentially updating the time windows of the second files to be updated and the first files to be updated according to the verification time length of the first files to be updated, the second file expiration time of the second files to be updated and the system sealing time period, wherein the obtaining of the second update start time and the first update start time comprises the following steps: and updating the time window of the second batch of files to be updated according to the second file expiration time of the second batch of files to be updated and the second system sealing period to obtain the second update starting time of the second batch of files to be updated. And updating the time window of the first batch of files to be updated according to the second update start time, the verification time of the first batch of files to be updated and the first update time to obtain the first update start time of the first batch of files to be updated.
According to an embodiment of the present disclosure, the second system may be Q servers corresponding to Q second files to be updated.
According to an embodiment of the present disclosure, the first update time length characterizes a time length for which the first batch of files to be updated need to be updated, made, modified, or the like.
The file to be updated may be a certificate to be updated, for example, the organization certificate is about to expire and needs to be updated, and the updating process is generally application and generation of the certificate, transmission and acquisition of the certificate, updating and installation of the certificate and management of the certificate. The application and generation of the certificate may be that the certificate holding financial institution notifies the upstream data source institution that the institution certificate is about to expire, and after the two parties agree, the upstream data source institution generates the certificate of the latest deadline. The transmission and acquisition of the certificate may be that the upstream data source authority uploads the generated latest deadline certificate to the downstream via an email box/server. The updating and installing of the certificate can be that after the financial institution receives the latest certificate, the financial institution needs to be deployed to a system server to replace the original certificate, and meanwhile, in order to ensure the connectivity of the service, the financial institution needs to update in a gray scale mode. The management of the certificate can be that after the certificate updating is completed, the validity period of the current certificate needs to be recorded, and the steps are repeated to update the certificate before the certificate expires.
For certificates that need to be updated and managed, the certificate information needs to be prestored. The certificate information includes a certificate name, a certificate issuing authority, a certificate start time, a certificate expiration time, a certificate production time, certificate deployment information, a certificate usage system, a certificate deployment server, a certificate deployment path, a certificate management server, a certificate management path, and a certificate status (e.g., a status to be applied, a status to be updated, and a status of normal usage).
The certificate name may be a name identification of the certificate, with each issuing authority's certificate having a unique and fixed certificate name. The certificate issuing authority may be identified by the name of the issuing authority of the certificate. The certificate start time may be the date of validation of the certificate. The certificate expiration time may be the expiration date of the certificate. The certificate creation time may be that after a certificate application is made, creation of a new certificate often requires a period of time that is less than the remaining expiration date of the certificate. The certificate usage system may be a system that uses the certificate. The certificate deployment server may be server IP (Internet Protocol ) information for certificate deployment. The certificate deployment path may be path information of the deployment of the certificate on the server. The certificate management server may be an intermediate server for certificate management, a relay server for deploying management programs and certificates. The certificate management path may be a path of a new certificate on a certificate management server.
When a certificate of an upstream data source organization is N days from the expiration date, a certificate management server of the organization sends a certificate updating request to a certificate issuing organization, and the certificate enters a state of waiting for application from a state of normal use.
When the certificate management server of the organization obtains the latest certificate, the description can arrange the update of the certificate, and the certificate enters the state of 'to be updated' from the state of 'to be applied'.
When the certificate is updated, the certificate enters a normal use state from a state of 'to be updated' until the certificate is N days away from the expiration date again.
The time elements for which the certificate is to be updated are shown in table 2.
TABLE 2
Sequence number Description of time Point Time point Duration of consumption
1 Certificate start time Ta /
2 Certificate expiration time Tb /
3 Certificate making duration T0 t0
4 First batch update certificate time T1 t
5 Second batch update certificate time T2 t
6 The certificate is N days from the expiration date Tn /
7 Start time of second system save period Tc /
8 End time of second system save period Td /
9 Certificate verification period / α
10 Start time of first system save period T′c /
11 End time of first system save period T′d /
In table 2, the first update time period of the first certificate to be updated and the second update time period of the second batch of certificates to be updated may be the certificate update time period t. The expiration time of the second file may be the certificate expiration time T b. The second system sealing period may be a time from a start time of the second system sealing period to an end time of the second system sealing period, the second update start time may be a second batch of update certificate time T 2, and the verification duration of the first batch of files to be updated may be a consumption duration α of the certificate verification period. The first update start time may be a first batch update certificate time T 1.
According to the embodiment of the disclosure, according to the time from the expiration time T b of the second batch of certificates to be updated and the time from the beginning time of the second system sealing period to the ending time of the second system sealing period, updating the time window of the second batch of certificates to be updated, and obtaining the second batch of updated certificate time T 2 of the second batch of certificates to be updated.
According to the embodiment of the disclosure, according to the second update certificate time T 2, the consumed time alpha of the certificate verification period and the first update time T 0, a time window of the first file to be updated is updated, so as to obtain a first update certificate time T 1 of the first file to be updated.
Fig. 5 schematically illustrates a flowchart of updating a time window of a second batch of files to be updated according to a second file expiration time and a second system sealing period of the second batch of files to be updated, resulting in a second update start time of the second batch of files to be updated according to an embodiment of the present disclosure.
As shown in fig. 5, according to the second file expiration time and the second system sealing period of the second files to be updated, updating the time window of the second files to be updated to obtain the second update start time of the second files to be updated in this embodiment includes operations S501 to S509.
In operation S501, a second file expiration time of a second batch of files to be updated and each time in a second system sealing period are matched, so as to obtain a first matching result.
In operation S502, whether the first matching result characterizes that the second file expiration time is in the second system save period, if so, operation S503 is performed; if not, operation S505 is performed.
In operation S503, a start time of a second system save period is determined as a second file target expiration time of a second batch of files to be updated.
In operation S504, the time window of the second batch of files to be updated is updated according to the second file target expiration time and the second update duration, so as to obtain a second update start time of the second batch of files to be updated.
In operation S505, the end time of the second system boot period is acquired.
In operation S506, a first determination duration from the end time of the second system encapsulation period to the second file expiration time is determined according to the end time of the second system encapsulation period and the second file expiration time.
In operation S507, if the second update time period is less than the first determination time period, executing operation S508; if not, operation S510 is performed.
In operation S508, a start time of the second system save period is determined as a second file target expiration time.
In operation S509, a time window of the second batch of files to be updated is updated according to the second file target expiration time and the second update duration, and a second update start time is determined.
In operation S510, a time having a second update duration earlier than the second file target expiration time is determined as a second update start time.
Taking the example that the file to be updated is the certificate to be updated, firstly, judging whether the expiration time T b of the second file of the second batch of certificates to be updated is in the second system sealing period (period from T c to T d):
When the expiration time T b of the second file is in the second system save period (during T c to T d), the start time T c of the second system save period is the second file target expiration time T b ', and it is confirmed that the second update start time T 2 is T time (abbreviated as T 2=Tb ' -T) before the second file target expiration time T b ', and T represents the second update duration.
In the case that the expiration time T b of the second file is not in the second system save period (during the periods T c to T d), calculating a time interval between the expiration time T b of the second file and the end time T d of the last second system save period, and obtaining the first determination duration. And judging whether the first judging time period is longer than the second updating time period t.
And if the first judging duration is smaller than the second updating duration T, the second updating duration T required by the certificate updating is not satisfied after the second system sealing period is ended and before the expiration time T b of the second file. The start time T c of the second system quarantine period is determined to be the second file target expiration time T b'. And confirms that the second update start time T 2 is a time T before the second file target expiration time T b '(abbreviated as T 2=Tb' -T).
And if the first determination time is longer than the second updating time T, the second updating time T required by certificate updating is satisfied from the end of the second system sealing period to the expiration time T b of the second file. The second update start time T 2 is directly confirmed to be T time before the expiration time T b of the second file (abbreviated as T 2=Tb -T).
Fig. 6 schematically illustrates a flowchart of updating a time window of a first batch of files to be updated according to a second update start time, a verification duration of the first batch of files to be updated, and a first update duration, resulting in a first update start time of the first batch of files to be updated according to an embodiment of the present disclosure.
As shown in fig. 6, according to the second update start time, the verification duration of the first files to be updated and the first update duration, updating the time window of the first files to be updated to obtain the first update start time of the first files to be updated in this embodiment includes operations S601 to S609.
In operation S601, a first update start time to be determined for the first batch of files to be updated is determined according to the second update start time, the verification duration for the first batch of files to be updated, and the first update duration.
In operation S602, the first update start time to be determined is matched with each time in the first system save period, so as to obtain a second matching result.
According to an embodiment of the present disclosure, the system sealing period includes a first system sealing period corresponding to the first system, and the first system sealing period indicates a period in which the first system prohibits execution of the update operation on the file to be updated.
In operation S603, whether the second matching result characterizes that the first update start time to be determined is in the first system save period, if so, operation S604 is performed; if not, operation S605 is performed.
In operation S604, a start time of a first system save period is determined as a first update start time of a first batch of files to be updated.
In operation S605, a second determination duration from the start time of the first system boot period to the first update start time to be determined is determined according to the start time of the first system boot period and the first update start time to be determined.
In operation S606, whether the first update time period is less than the second determination time period; if yes, executing operation S607; if not, S608 is performed.
In operation S607, the first update start time to be determined is determined as the first update start time.
In operation S608, a time having a first update duration earlier than the start time of the first system save period is determined as a first update start time.
Taking the example that the file to be updated is the certificate to be updated, after determining the second update start time T 2, the first update start time is pushed back.
In the process of updating the certificates, after the first batch of certificates to be updated are updated, the second batch of certificates can be updated only after a certificate verification period (verification duration alpha of the first batch of files to be updated) is needed.
The first update start time T 1' is to be determined as the (α+t) time (abbreviated as T 1′=T2 - (α+t)) before the second certificate update time, α is the verification duration of the first file to be updated, and T is the first update duration.
It is determined whether the first update start time T 1 ' to be determined is in the first system-save period (during T c ' to T d '). After the first update start time T 1 ' is to be determined to be in the first system save period (during T c ' to T d '), the first update start time T 1 may be confirmed to be a T time (denoted as T 1=Tc ' -T) before the start time T c ' of the first system save period.
And calculating the time interval between the first update start time T 1 ' to be determined and the start time T c ' of the last first system save period to obtain a second determination duration when the first update start time T 1 ' to be determined is not in the first system save period (between T c ' and T d ').
And judging whether the first updating time period t is longer than the second judging time period. In the case that the first update time period T is longer than the second determination time period, the update of the first batch of certificates to be updated cannot be completed in the first system encapsulation time period, and in order to satisfy the first update time period T, a time T (denoted as T 1=Tc '-T) before the start time T c' of the first system encapsulation time period is confirmed as a first update start time T 1.
In the case where the first update time period T is smaller than the second determination time period, the first update start time T 1 'to be determined satisfies the update time period requirement of the first batch of certificates to be updated, and the first update start time to be determined may be the first update start time, that is, T 1=T1' =t2- (α+t).
After confirming the first update start time, the time of the certificate expiration date N can be confirmed in consideration of the certificate creation time t 0. N is the time T 0 before the update time T 1 of the first batch of certificates, i.e. n=t 1-t0.
And judging the relation between the time of N and the certificate start time T a, and if the obtained N is after the certificate start time, applying the certificate update. And if the obtained N is before the start time of the certificate, reminding system operation and maintenance personnel to process.
Fig. 7 schematically shows a block diagram of a file processing apparatus according to an embodiment of the present disclosure.
As shown in fig. 7, the file processing apparatus 700 of this embodiment includes a first determination module 710, a second determination module 720, a first update module 730, and a second update module 730.
The first determining module 710 is configured to determine, in response to receiving the file update request, J files to be updated corresponding to the file update request. In an embodiment, the first determining module 710 may be configured to perform the operation S210 described above, which is not described herein.
The second determining module 720 is configured to determine K first files to be updated and Q second files to be updated from the J files to be updated, where J > K > Q, J, K and Q are integers. In an embodiment, the second determining module 720 may be configured to perform the operation S220 described above, which is not described herein.
The first update module 730 is configured to sequentially update the time windows of the second files to be updated and the first files to be updated according to the verification duration of the first files to be updated, the second file expiration time of the second files to be updated, and the system sealing period, so as to obtain a second update start time and a first update start time. In an embodiment, the first updating module 730 may be used to perform the operation S230 described above, which is not described herein.
The second update module 740 is configured to update the first batch of files to be updated and the second batch of files to be updated in batches according to the first update start time and the second update start time, so as to obtain the first batch of files and the second batch of files. In an embodiment, the second updating module 740 may be used to perform the operation S240 described above, which is not described herein.
According to an embodiment of the present disclosure, the first update module 730 includes a first update sub-module and a second update sub-module. The first updating sub-module is used for updating the time window of the second batch of files to be updated according to the second file expiration time of the second batch of files to be updated and the second system sealing period to obtain the second updating start time of the second batch of files to be updated. The second updating sub-module is used for updating the time window of the first batch of files to be updated according to the second updating starting time, the verification time of the first batch of files to be updated and the first updating time, and obtaining the first updating starting time of the first batch of files to be updated.
According to an embodiment of the present disclosure, the first update sub-module includes a first matching unit, a first determining unit, and a first update unit. The first matching unit is used for matching the second file expiration time of the second batch of files to be updated with each time in the second system sealing period to obtain a first matching result. The first determining unit is used for determining the starting time of the second system sealing period as the second file target expiration time of the second batch of files to be updated under the condition that the matching result represents that the second file expiration time is in the second system sealing period. The first updating unit is used for updating the time window of the second batch of files to be updated according to the target expiration time of the second file and the second updating duration to obtain the second updating start time of the second batch of files to be updated.
According to an embodiment of the present disclosure, the first update sub-module further includes a first acquisition unit, a second determination unit, a third determination unit, and a second update unit. The first obtaining unit is used for obtaining the ending time of the second system sealing period when the first matching result indicates that the second file expiration time is not in the second system sealing period. The second determining unit is used for determining a first judging duration from the ending time of the second system sealing time period to the second file expiration time according to the ending time of the second system sealing time period and the second file expiration time. The third determining unit is configured to determine, as the second file target expiration time, a start time of the second system save period if the second update period is less than the first determination period. The second updating unit is used for updating the time window of the second batch of files to be updated according to the second file target expiration time and the second updating duration, and determining a second updating starting time.
According to an embodiment of the present disclosure, the second update sub-module includes a fourth determination unit, a second matching unit, and a fifth determination unit. The fourth determining unit is configured to determine a first update start time to be determined for the first batch of files to be updated according to the second update start time, the verification duration for the first batch of files to be updated, and the first update duration. The second matching unit is used for matching the first updating starting time to be determined with each time in the first system sealing period to obtain a second matching result. The fifth determining unit is configured to determine, when the second matching result characterizes that the first update start time to be determined is in the first system save period, the start time of the first system save period as a first update start time of the first batch of files to be updated.
According to an embodiment of the present disclosure, the above-described second updating sub-module further includes a sixth determining unit and a seventh determining unit. The second obtaining unit is configured to determine, when the second matching result indicates that the first update start time to be determined is not in the first system encapsulation time period, a second determination duration from the start time of the first system encapsulation time period to the first update start time to be determined according to the start time of the first system encapsulation time period and the first update start time to be determined. The seventh determining unit is configured to determine a first update start time to be determined as a first update start time, in a case where the first update time period is smaller than the second determination time period.
According to an embodiment of the present disclosure, the second determination module 720 includes a determination sub-module. The determining submodule is used for determining K first files to be updated from J files to be updated according to a file quantity constraint relation between the file quantity of the files to be updated and the file quantity of the first files to be updated, wherein the file quantity constraint relation represents the file quantity of the first files to be updated and is smaller than or equal to the square root of the file quantity of the files to be updated.
According to an embodiment of the present disclosure, the second update module 740 includes a third update sub-module, a verification sub-module, and a fourth update sub-module. The third updating sub-module is used for updating the first batch of files to be updated according to the first updating start time to obtain a first batch of files. The verification submodule is used for verifying the first batch of files to obtain a verification result; and under the condition that the verification result represents that the verification of the first batch of files is passed, the fourth updating sub-module is used for updating the second batch of files to be updated according to the second updating starting time to obtain the second batch of files.
It should be noted that, in the embodiment of the present disclosure, the file processing apparatus portion corresponds to the file processing method portion in the embodiment of the present disclosure, and the description of the file processing apparatus portion refers to the file processing method portion specifically, and will not be described herein.
According to an embodiment of the present disclosure, any of the first determination module 710, the second determination module 720, the first update module 730, and the second update module 730 may be combined in one module to be implemented, or any of the modules may be split into a plurality of modules. Or at least some of the functionality of one or more of the modules may be combined with, and implemented in, at least some of the functionality of other modules. According to embodiments of the present disclosure, at least one of the first determination module 710, the second determination module 720, the first update module 730, and the second update module 730 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging the circuitry, or in any one of or a suitable combination of any of the three implementations of software, hardware, and firmware. Or at least one of the first determination module 710, the second determination module 720, the first update module 730 and the second update module 730 may be at least partially implemented as computer program modules which, when executed, may perform the respective functions.
Fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement a file processing method according to an embodiment of the disclosure.
As shown in fig. 8, an electronic device 800 according to an embodiment of the present disclosure includes a processor 801 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. The processor 801 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 801 may also include on-board memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing the different actions of the method flows according to embodiments of the disclosure.
In the RAM 803, various programs and data required for the operation of the electronic device 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. The processor 801 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 802 and/or the RAM 803. Note that the program may be stored in one or more memories other than the ROM 802 and the RAM 803. The processor 801 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the electronic device 800 may also include an input/output (I/O) interface 805, the input/output (I/O) interface 805 also being connected to the bus 804. The electronic device 800 may also include one or more of the following components connected to an input/output (I/O) interface 805: an input portion 806 including a keyboard, mouse, etc.; an output portion 807 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 808 including a hard disk or the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. The drive 810 is also connected to an input/output (I/O) interface 805 as needed. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as needed so that a computer program read out therefrom is mounted into the storage section 808 as needed.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 802 and/or RAM 803 and/or one or more memories other than ROM 802 and RAM 803 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. The program code means for causing a computer system to carry out the file processing method provided by the embodiments of the present disclosure when the computer program product is run on the computer system.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 801. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed, and downloaded and installed in the form of a signal on a network medium, and/or from a removable medium 811 via a communication portion 809. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 809, and/or installed from the removable media 811. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 801. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. These examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (12)

1. A method of processing a document, the method comprising:
responding to a received file updating request, and determining J files to be updated corresponding to the file updating request;
determining K first files to be updated and Q second files to be updated from J files to be updated, wherein J is more than K and more than Q, J, K and Q are integers;
Sequentially updating time windows of the second files to be updated and the first files to be updated according to the verification duration of the first files to be updated, the second file expiration time of the second files to be updated and the system sealing time period, so as to obtain second updating starting time and first updating starting time, wherein the system sealing time period indicates the time period for the system to prohibit the update operation of the files to be updated;
And updating the first batch of files to be updated and the second batch of files to be updated in batches according to the first update start time and the second update start time to obtain the first batch of files and the second batch of files.
2. The method of claim 1, wherein the system quarantine period comprises a second system quarantine period corresponding to a second system, the second system quarantine period indicating a period of time during which the second system is prohibited from performing update operations on files to be updated;
The step of sequentially updating the time windows of the second files to be updated and the first files to be updated according to the verification duration of the first files to be updated, the second file expiration time of the second files to be updated and the system sealing period, and the step of obtaining the second update start time and the first update start time includes:
updating a time window of the second batch of files to be updated according to the second file expiration time of the second batch of files to be updated and the second system sealing period to obtain the second update start time of the second batch of files to be updated;
And updating the time window of the first batch of files to be updated according to the second update start time, the verification duration and the first update duration of the first batch of files to be updated, so as to obtain the first update start time of the first batch of files to be updated.
3. The method of claim 2, wherein updating the time window of the second batch of files to be updated according to the second file expiration time of the second batch of files to be updated and the second system save period, the second update start time of the second batch of files to be updated comprises:
matching the second file expiration time of the second batch of files to be updated with each time in the second system sealing period to obtain a first matching result;
Determining the starting time of the second system sealing period as a second file target expiration time of the second batch of files to be updated under the condition that the matching result characterizes the second file expiration time in the second system sealing period;
And updating the time window of the second batch of files to be updated according to the second file target expiration time and the second updating time length to obtain the second updating start time of the second batch of files to be updated.
4. A method according to claim 3, characterized in that the method further comprises:
Acquiring the ending time of the second system sealing period under the condition that the first matching result characterizes that the second file expiration time is not in the second system sealing period;
Determining a first judging duration from the ending time of the second system sealing time period to the second file expiration time according to the ending time of the second system sealing time period and the second file expiration time;
determining the starting time of the second system sealing period as the second file target expiration time under the condition that the second updating time period is smaller than the first judging time period;
And according to the second file target expiration time and the second updating time length, updating the time window of the second batch of files to be updated, and determining the second updating starting time.
5. The method of claim 2, wherein the system-sealing period comprises a first system-sealing period, the system-sealing period comprising a first system-sealing period corresponding to a first system, the first system-sealing period indicating a period of time during which the first system is prohibited from performing an update operation on a file to be updated;
The updating the time window of the first batch of files to be updated according to the second update start time, the verification time length of the first batch of files to be updated and the first update time length, and the obtaining the first update start time of the first batch of files to be updated includes:
Determining a first update start time to be determined of the first batch of files to be updated according to the second update start time, the verification duration of the first batch of files to be updated and the first update duration;
Matching the first update starting time to be determined with each time in the first system sealing period to obtain a second matching result;
and under the condition that the second matching result characterizes that the first updating starting time to be determined is in the first system sealing period, determining the starting time of the first system sealing period as the first updating starting time of a first batch of files to be updated.
6. The method of claim 5, wherein the method further comprises:
Determining a second judging duration from the starting time of the first system sealing period to the first file expiration time according to the starting time of the first system sealing period and the first file expiration time under the condition that the second matching result characterizes that the first updating starting time to be determined is not in the first system sealing period;
And under the condition that the first updating time length is smaller than the second judging time length, determining the first updating start time to be determined as the first updating start time.
7. The method of claim 1, wherein the determining K first and Q second files from the J files to be updated comprises:
Determining K first files to be updated from J files to be updated according to a file quantity constraint relation between the file quantity of the files to be updated and the file quantity of the first files to be updated, wherein the file quantity constraint relation represents the file quantity of the first files to be updated and is smaller than or equal to the square root of the file quantity of the files to be updated.
8. The method according to any one of claims 1 to 7, wherein batch updating the first batch of files to be updated and the second batch of files to be updated according to the first update start time and the second update start time, to obtain the first batch of files and the second batch of files comprises:
updating the first batch of files to be updated according to the first update start time to obtain the first batch of files;
verifying the first batch of files to obtain a verification result;
And under the condition that the verification result represents that the first batch of files pass verification, updating the second batch of files to be updated according to the second update start time to obtain the second batch of files.
9. A document processing apparatus, the apparatus comprising:
the first determining module is used for determining J files to be updated corresponding to the file updating request in response to receiving the file updating request;
The second determining module is used for determining K first files to be updated and Q second files to be updated from J files to be updated, J is more than K and more than Q, J, K and Q are integers;
The first updating module is used for sequentially updating the time windows of the second files to be updated and the first files to be updated according to the verification duration of the first files to be updated, the second file expiration time of the second files to be updated and the system sealing period, so as to obtain a second updating starting time and a first updating starting time, wherein the system sealing period indicates a period of time for the system to prohibit the updating operation of the files to be updated;
And the second updating module is used for updating the first batch of files to be updated and the second batch of files to be updated in batches according to the first updating starting time and the second updating starting time to obtain the first batch of files and the second batch of files.
10. An electronic device, comprising:
One or more processors;
a memory for storing one or more computer programs,
Characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 8.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, realizes the steps of the method according to any one of claims 1-8.
12. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1-8.
CN202410331215.5A 2024-03-22 2024-03-22 File processing method, apparatus, device, storage medium, and program product Pending CN118170730A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410331215.5A CN118170730A (en) 2024-03-22 2024-03-22 File processing method, apparatus, device, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410331215.5A CN118170730A (en) 2024-03-22 2024-03-22 File processing method, apparatus, device, storage medium, and program product

Publications (1)

Publication Number Publication Date
CN118170730A true CN118170730A (en) 2024-06-11

Family

ID=91354446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410331215.5A Pending CN118170730A (en) 2024-03-22 2024-03-22 File processing method, apparatus, device, storage medium, and program product

Country Status (1)

Country Link
CN (1) CN118170730A (en)

Similar Documents

Publication Publication Date Title
EP2564323B1 (en) Information tracking system and method
US20170046376A1 (en) Method and system for monitoring data quality and dependency
CN115965474A (en) Service processing method, device, equipment and storage medium
CN114237821B (en) Method and device for finding out Kubernetes container cluster, electronic equipment and storage medium
CN114238993A (en) Risk detection method, apparatus, device and medium
CN113989058A (en) Service generation method and device
CN114693358A (en) Data processing method and device, electronic equipment and storage medium
US20160124959A1 (en) System and method to recommend a bundle of items based on item/user tagging and co-install graph
CN118170730A (en) File processing method, apparatus, device, storage medium, and program product
CN115080434A (en) Case execution method, device, equipment and medium
CN113918525A (en) Data exchange scheduling method, system, electronic device, medium, and program product
CN115391655A (en) Information query method and device, electronic equipment and computer readable storage medium
CN114386951A (en) Process approval method and device, electronic equipment and storage medium
CN114399259A (en) Employee data processing method and device
CN113391988A (en) Method and device for losing user retention, electronic equipment and storage medium
CN118093698A (en) Data processing method, device, electronic equipment and computer storage medium
CN116757638A (en) Transaction data verification method and device
CN113946756A (en) Information recommendation method, device, equipment, medium and program product
CN118227439A (en) Method, device, equipment, medium and program product for processing log data
CN117176576A (en) Network resource changing method, device, equipment and storage medium
CN118071524A (en) Product processing method, apparatus, device, storage medium, and program product
CN118469444A (en) Information processing method, apparatus, device, medium, and program product
CN118410785A (en) Project processing method, apparatus, device, medium, and program product
CN118013506A (en) Test user switching method, device, equipment, storage medium and program product
CN116070891A (en) Flow processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination