A clearing application publishing method and device and electronic equipment

By performing layer-by-layer verification at the database and data center levels within the clearing application server, the accuracy of the clearing results is ensured, thus resolving the issue of inaccurate verification in the clearing application and controlling the scope of impact.

CN116680338BActive Publication Date: 2025-12-23NETSUNION CLEARING CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210162794.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-22
Publication Date
2025-12-23
Estimated Expiration
2042-02-22

AI Technical Summary

Technical Problem

The verification results of the existing clearing application are inaccurate, resulting in a wide impact when the clearing application is released.

Method used

The system executes the clearing application server in the first data center to obtain the database-level and data center-level clearing results of the transaction database, and then verifies them with the associated second data center to ensure consistency before releasing the results.

Benefits of technology

This enables timely and accurate detection of problems before the cleanup application is released, keeping the impact to a minimum and avoiding greater disruption to business operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116680338B_ABST
    Figure CN116680338B_ABST
Patent Text Reader

Abstract

The application discloses a clearing application publishing method and device and electronic equipment. The method is executed by a clearing application server of a first data center. The method comprises the following steps: acquiring a library-level clearing result of a transaction database of the first data center and a library-level clearing result of a transaction database of a second data center associated with the transaction database of the first data center. The first data center is deployed with a new version of the clearing application, and the second data center is deployed with an old version of the clearing application. The two results are checked. If the checking result is consistent, the data center-level clearing result of the first data center and the data center-level clearing result of the second data center are acquired. The two results are checked, and then it is determined whether the new version of the clearing application is published at the data center level. The step-by-step checking method from the database level to the data center level can discover problems of the new version of the clearing application in time, control the influence range to the minimum, and avoid greater influence on the business.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of application publishing, and in particular to a clearing application publishing method and device and electronic equipment. BACKGROUND

[0002] In the context of distributed financial transactions, a transaction system usually has the ability to receive and process transactions simultaneously in multiple IDCs (Internet Data Centers). In order to clear the daily transaction data in a timely manner, it is necessary to first clear the transaction data. Clearing is a data preparation stage for clearing, and is mainly to summarize, organize and classify all network transaction data of the day according to certain data dimensions.

[0003] For a distributed clearing system, when the version of the clearing application is iterated, the clearing result of the new version of the clearing application needs to be confirmed to be correct before it can be published to each IDC.

[0004] However, the existing technology has the problem that the checking result is not accurate, which further leads to a large impact range when the clearing application has a problem. SUMMARY

[0005] The embodiments of the present application provide a clearing application publishing method, device and electronic equipment to improve the accuracy of the checking result.

[0006] The embodiments of the present application adopt the following technical solutions:

[0007] In a first aspect, the embodiments of the present application provide a clearing application publishing method executed by a clearing application server of a first data center, wherein the method comprises:

[0008] obtaining a library-level clearing result of a transaction database of the first data center, and obtaining a library-level clearing result of a transaction database of a second data center associated with the transaction database of the first data center, wherein the first data center is deployed with a new version of the clearing application, and the second data center is deployed with an old version of the clearing application;

[0009] performing library-level checking on the library-level clearing result of the transaction database of the first data center and the library-level clearing result of the transaction database of the second data center;

[0010] in the case that the library-level checking result is consistent, obtaining a data center-level clearing result of the first data center and a data center-level clearing result of the second data center corresponding to the first data center;

[0011] The data center level reconciliation result of the first data center is compared with the data center level reconciliation result of the second data center to determine whether to release the new version of the reconciliation application at the data center level according to the data center level reconciliation result.

[0012] Optionally, the obtaining of the library level reconciliation result of the transaction database of the first data center comprises:

[0013] receiving a library level reconciliation task of the transaction database of the first data center;

[0014] determining a target transaction database in the first data center according to the library level reconciliation task of the transaction database of the first data center;

[0015] reconciling transaction data of the target transaction database to obtain the library level reconciliation result of the transaction database of the first data center.

[0016] Optionally, the first data center comprises a plurality of transaction databases, and the obtaining of the data center level reconciliation result of the first data center comprises:

[0017] receiving a data center level reconciliation task of the first data center;

[0018] reconciling each transaction database of the first data center according to the data center level reconciliation task of the first data center to obtain a library level reconciliation result of each transaction database of the first data center;

[0019] combining the library level reconciliation results of the transaction databases to obtain the data center level reconciliation result of the first data center.

[0020] Optionally, the library level reconciliation result comprises an element identifier and an element value, and the library level reconciliation of the library level reconciliation result of the transaction database of the first data center with the library level reconciliation result of the transaction database of the second data center comprises:

[0021] respectively reconciling the element identifier and the element value of the transaction database of the first data center with the element identifier and the element value of the transaction database of the second data center;

[0022] if the element identifier of the transaction database of the first data center is consistent with the element identifier of the transaction database of the second data center, and the element value of the transaction database of the first data center is consistent with the element value of the transaction database of the second data center, the library level reconciliation result is consistent;

[0023] otherwise, the library level reconciliation result is inconsistent.

[0024] Optionally, the data center level clearing result of each of the data centers comprises an element identifier and an element value, and the center level checking of the data center level clearing result of the first data center and the data center level clearing result of the second data center comprises:

[0025] checking the element identifier and the element value of the first data center and the element identifier and the element value of the second data center respectively;

[0026] if the element identifier of the first data center is consistent with the element identifier of the second data center, and the element value of the first data center is consistent with the element value of the second data center, the center level checking result is consistent;

[0027] otherwise, the center level checking result is inconsistent.

[0028] Optionally, after the library level clearing result of the transaction database of the first data center and the library level clearing result of the transaction database of the second data center are checked at the library level, the method further comprises:

[0029] if the library level checking result is consistent, the library level clearing result of the transaction database of the first data center is stored in the library level clearing result table;

[0030] after the data center level clearing result of the first data center and the data center level clearing result of the second data center are checked at the center level, the method further comprises:

[0031] if the center level checking result is consistent, the data center level clearing result of the first data center is stored in the data center level clearing result table;

[0032] wherein, the library level clearing result table and the data center level clearing result table are stored in the clearing database of the first data center.

[0033] Optionally, after the data center level clearing result of the first data center is stored in the data center level clearing result table, the method further comprises:

[0034] receiving a clearing result obtaining request;

[0035] obtaining the library level clearing result and / or the data center level clearing result from the clearing database of the first data center according to the clearing result request and returning.

[0036] Optionally, the transaction database of the first data center includes a local database of the first data center and / or an associated database of the second data center deployed in the first data center; the transaction database of the second data center includes a local database of the second data center and / or an associated database of the first data center deployed in the second data center; the associated database includes a local database and a remote database corresponding to the local database.

[0037] Secondly, embodiments of this application also provide a clearing application publishing device, applied to a clearing application server in a first data center, wherein the device is used to implement any of the methods described above.

[0038] Thirdly, embodiments of this application also provide an electronic device, including:

[0039] Processor; and

[0040] A memory configured to store computer-executable instructions, which, when executed, cause the processor to perform any of the methods described above.

[0041] Fourthly, embodiments of this application also provide a computer-readable storage medium that stores one or more programs, which, when executed by an electronic device including multiple applications, cause the electronic device to perform any of the methods described above.

[0042] The at least one technical solution adopted by the embodiments of the present application can achieve the following beneficial effects: The clearing application publishing method of the embodiments of the present application is executed by a clearing application server of a first data center. When publishing a clearing application, the library-level clearing result of a transaction database of the first data center is acquired first, and the library-level clearing result of a transaction database of a second data center associated with the transaction database of the first data center is acquired. The first data center is deployed with a new version of the clearing application, and the second data center is deployed with an old version of the clearing application. The library-level clearing result of the transaction database of the first data center is checked with the library-level clearing result of the transaction database of the second data center. When the library-level checking result is consistent, the data center-level clearing result of the first data center and the data center-level clearing result of the second data center corresponding to the first data center are acquired. The data center-level clearing result of the first data center is checked with the data center-level clearing result of the second data center, so as to determine whether the new version of the clearing application is published at the data center level according to the center-level checking result. The clearing application publishing method of the embodiments of the present application first performs database-level clearing processing on the database of one data center by using the new version of the clearing application. If the clearing result is correct, the data center-level clearing processing is performed on all databases of the data center by using the new version of the clearing application. If the clearing result is correct, the new version of the clearing application can be published in all data centers, that is, by using the database-level and then the data center-level checking mode, the problem of the new version of the clearing application can be found in time and accurately, so that the influence range of the new version of the clearing application is controlled in the minimum range, and greater influence is avoided. BRIEF DESCRIPTION OF DRAWINGS

[0043] The accompanying drawings, which are included to provide a further understanding of the present application and are incorporated in and constitute a part of this application, illustrate embodiments of the present application and serve to explain the present application. In the drawings:

[0044] Figure 1 A flowchart of a clearing application publishing method in the embodiments of the present application is shown in FIG. 1;

[0045] Figure 2 A schematic diagram of a data synchronization relationship between data centers in the embodiments of the present application is shown in FIG. 2;

[0046] Figure 3 A flowchart of a clearing application publishing method in the embodiments of the present application is shown in FIG. 1;

[0047] Figure 4 A structure diagram of a clearing application publishing device in the embodiments of the present application is shown in FIG. 4;

[0048] Figure 5 FIG. 1 is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described below in detail with reference to the embodiments of the present application and corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0050] The technical solutions provided by the embodiments of the present application will be described below in detail with reference to the accompanying drawings.

[0051] In the prior art, when a new version of a clearing application is released, two sets of clearing logic need to be implemented in the new version of the clearing application, and the clearing results of the two sets of logic are checked to evaluate the clearing accuracy of the new version of the clearing application according to the checking result. However, this method at least has the following problems:

[0052] 1) The developer needs to maintain two sets of logic, and the workload is doubled during iterative development;

[0053] 2) There may be common code modules in the two sets of logic. If the common code modules are modified, a software system vulnerability or defect may occur, and the clearing results of the two sets of logic may be incorrect, but the clearing results of the two sets of logic are consistent, so that the checking result is passed, and then the new version of the clearing application is released to each data center, resulting in a large impact range of the problems existing in the new version of the clearing application.

[0054] Based on this, the embodiments of the present application provide a clearing application release method, which is executed by a clearing application server of a first data center, as shown in Figure 1 FIG. 1 is a structural schematic diagram of an electronic device according to an embodiment of the present application.

[0055] Step S110, obtaining a library-level clearing result of a transaction database of a first data center, and obtaining a library-level clearing result of a transaction database of a second data center associated with the transaction database of the first data center, wherein the first data center is deployed with a new version of a clearing application, and the second data center is deployed with an old version of the clearing application.

[0056] The clearing application publishing method of the embodiments of the present application can be executed by a clearing application server of a first data center where a new version of the clearing application is located. When publishing the new version of the clearing application, the library-level clearing result of a transaction database of the first data center needs to be obtained first. The transaction database herein can be understood as any one of the transaction databases in the first data center, or can be designated according to actual clearing task requirements, that is, the clearing application publishing method of the embodiments of the present application needs to clear a certain transaction database in the first data center first.

[0057] In addition, the library-level clearing result of a transaction database of a second data center associated with the transaction database of the first data center also needs to be obtained. The "association" herein can be understood as that the transaction data in the transaction database of the first data center is synchronized to the second data center in an asynchronous synchronization manner, that is, the second data center provides disaster recovery capability for the transaction data in the first data center. In addition, the first data center is deployed with the new version of the clearing application to be published, while the second data center is still deployed with the old version of the clearing application. Therefore, in the case that the transaction database data in the second data center is synchronized normally, the library-level clearing result of the transaction database corresponding to the second data center can be used as a basis for judging the accuracy of the library-level clearing result obtained by the new version of the clearing application.

[0058] Step S120, the library-level clearing result of the transaction database of the first data center is compared with the library-level clearing result of the transaction database of the second data center.

[0059] After obtaining the library-level clearing result of the transaction database of the first data center and the library-level clearing result of the transaction database of the associated second data center, the two database-level clearing results need to be compared with each other, so as to obtain a consistent comparison result or an inconsistent library-level comparison result. If the library-level comparison result is consistent, it indicates that the clearing result of the new version of the clearing application for the transaction database of the first data center is accurate. If the library-level comparison result is inconsistent, it indicates that the clearing result of the new version of the clearing application for the transaction database of the first data center is inaccurate, so that the subsequent application publishing cannot be directly performed.

[0060] Step S130, in the case that the library-level comparison result is consistent, the data center-level clearing result of the first data center and the data center-level clearing result of the second data center corresponding to the first data center are obtained.

[0061] If the library-level check result is consistent, it indicates that the library-level clearing result of the new version of the clearing application for the transaction database of the first data center is accurate, and then the data center-level clearing result of the first data center can be further obtained. The data center-level clearing result herein can be understood as the clearing result of all transaction databases in the first data center where the new version of the clearing application is located.

[0062] In addition, the data center-level clearing result of a second data center corresponding to the first data center also needs to be obtained. The transaction data in the second data center obtained by the embodiment of the application is obtained synchronously with the transaction data in the first data center. Therefore, the data center-level clearing result of the second data center can be obtained as a basis for subsequently judging the accuracy of the data center-level clearing result obtained by the new version of the clearing application.

[0063] In step S140, the data center-level clearing result of the first data center is checked with the data center-level clearing result of the second data center, so as to determine whether the new version of the clearing application is released at the data center level according to the center-level check result.

[0064] After obtaining the data center-level clearing result of the first data center and the data center-level clearing result of the second data center, the two data center-level clearing results need to be checked with each other, so as to obtain a consistent check result or an inconsistent center-level check result. If the center-level check result is consistent, it indicates that the clearing result of the new version of the clearing application for the entire first data center is also accurate. If the center-level check result is inconsistent, it indicates that the clearing result of the new version of the clearing application for the first data center is inaccurate, and then the new version of the clearing application cannot be directly released to other data centers.

[0065] It should be noted that the first data center and the second data center in the embodiment of the application are only specific limitations for mutual distinction, and the two data centers are independent and equal to each other. In essence, they are only a synchronous relationship on the transaction database. Therefore, all operations performed by the first data center in the application can also be applied to any second data center.

[0066] The cleanup application deployment method in this application first uses the new version of the cleanup application to perform database-level cleanup processing on the database of a data center. If the cleanup result is correct, the new version of the cleanup application is then used to perform data center-level cleanup processing on all databases in the data center. If the cleanup result is correct, the new version of the cleanup application can be deployed to all data centers. That is, by checking at the database level and then at the data center level, problems with the new version of the cleanup application can be discovered in a timely and accurate manner, thereby minimizing its impact and avoiding greater impact on business.

[0067] In one embodiment of this application, the transaction database of the first data center includes a local database of the first data center and / or an associated database of the second data center deployed in the first data center; the transaction database of the second data center includes a local database of the second data center and / or an associated database of the first data center deployed in the second data center; the associated database includes a local database and a remote database corresponding to the local database.

[0068] To improve data center disaster recovery capabilities and ensure transaction stability and security, a primary / backup data center model can be adopted. Specifically, the primary data center handles data reading and writing, while the backup data center performs redundant data backup. The primary data center periodically synchronizes data to the backup data center asynchronously. Backup data centers can be further divided into local and remote data centers. "Local" means both data centers are within the same region, such as IDC1 and IDC2 in city A. "Remote" means the two data centers are not in the same region, such as IDC1 in city A and IDC3 in city B. Figure 2 As shown, a schematic diagram of a data synchronization relationship between data centers is provided in an embodiment of this application.

[0069] Based on this, the transaction database in the first data center of this application embodiment may include a local database in the first data center and a local database or a remote database deployed in the first data center by the second data center. Correspondingly, the transaction database in the second data center may also include a local database in the second data center and a local database or a remote database deployed in the second data center by the first data center or other data centers.

[0070] Of course, it needs to be pointed out that the transaction database in the first data center and the transaction database in the second data center are not in a one-to-one correspondence, and the first data center corresponds to a local data center and a remote data center, and the local data center and the remote data center can be regarded as the second data center defined in the embodiments of the application.

[0071] For example, assuming that there is the IDC01, the local IDC02 corresponding to the IDC01 and the remote IDC03 corresponding to the IDC01, the transaction databases in the three IDCs can be in the form of Table 1 as follows:

[0072] Table 1

[0073] IDC01 IDC02 IDC03 Local database of IDC01 Local database of IDC02 Local database of IDC03 Local database of IDC02 Local database of IDC01 Local database of IDC05 Remote database of IDC03 Remote database of IDC04 Remote database of IDC01

[0074] Based on Table 1, in the case that the data synchronization of the local database and the remote database is normal, if it is intended to check the clearing result of the local database of the IDC01, the clearing result of the local database of the IDC01 can be found in the local IDC02 corresponding to the IDC01, and the clearing result of the local database of the IDC01 is checked with the clearing result of the local database of the IDC01. If the check is inconsistent, it can be considered that the clearing result is inaccurate under normal circumstances. Of course, in order to further determine, the clearing result of the remote database of the IDC01 corresponding to the IDC01 can also be found in the remote IDC03, and the clearing result of the local database of the IDC01 is checked with the clearing result of the remote database of the IDC01. If the check is still inconsistent, it can be determined that the clearing result of the local database of the IDC01 is inaccurate. Similarly, if it is intended to check the clearing result of the local database of the IDC02 or the clearing result of the remote database of the IDC03, the clearing result of the corresponding database can also be obtained in the corresponding data center, and details are not described herein. Of course, in addition to the above two-by-two checking method, the clearing results of the local database, the local database and the remote database can also be checked at the same time.

[0075] That is, in the actual application scenario, the database supported by the comparison processing of the first data center of the application is not limited to the local database in the first data center, and the local database and the remote database in other data centers in the first data center are also supported. If the local database or the remote database is taken as the benchmark, the clearing result of the data center where the local database corresponding to the local database or the remote database is located can be found reversely and compared.

[0076] In one embodiment of this application, obtaining the database-level clearing result of the transaction database of the first data center includes: receiving a database-level clearing task for the transaction database of the first data center; determining a target transaction database in the first data center based on the database-level clearing task for the transaction database of the first data center; clearing the transaction data of the target transaction database to obtain the database-level clearing result of the transaction database of the first data center.

[0077] In this embodiment of the application, when obtaining the database-level clearing results of the transaction database of the first data center, the database-level clearing task issued by the timed component can be received first. As mentioned above, the first data center may include the local database of the first data center, and may also include the same-city database and the remote database of the second data center in the first data center. Therefore, the database-level clearing task here may specifically include the database-level clearing task of the local database, and may also include the database-level clearing task of the same-city database and the remote database. Different types of database-level clearing tasks can be issued in advance according to actual needs.

[0078] When executing a database-level clearing task for the transaction database in the first data center, the transaction data of the transaction database can be obtained and cleared first according to the database-level clearing task, thereby obtaining the database-level clearing result for the transaction database. Similarly, when executing a database-level clearing task for the corresponding local and remote databases in the first data center in the second data center, the transaction data of the local and remote databases in the first data center can be obtained and cleared first according to the database-level clearing task, thereby obtaining the database-level clearing result for the local and remote databases in the first data center. The specific clearing logic can be flexibly set by those skilled in the art according to actual needs, and is not specifically limited here.

[0079] The specific transaction database in the first data center to be cleared can be specified in the clearing task. Once the transaction database in the first data center is determined, its corresponding same-city database and cross-regional database in other data centers will also be determined.

[0080] In one embodiment of this application, the first data center includes multiple transaction databases, and obtaining the data center-level clearing result of the first data center includes: receiving the data center-level clearing task of the first data center; clearing each transaction database of the first data center according to the data center-level clearing task of the first data center to obtain the database-level clearing result of each transaction database of the first data center; and merging the database-level clearing results of each transaction database to obtain the data center-level clearing result of the first data center.

[0081] Likewise, when obtaining the data center level clearing result of the first data center, the embodiment of the present application can first receive the data center level clearing task issued by the timing component. The data center level clearing task refers to the task of clearing all transaction databases in the first data center. The issuance of the task mainly depends on the checking result of the library level clearing result in the first data center in the foregoing embodiment.

[0082] When performing the data center level clearing task of the first data center, the transaction data of all local databases under the first data center can be obtained first, and then the new version of the clearing application deployed in the first data center is used to clear respectively, so as to obtain the library level clearing result of each transaction database in the first data center. Finally, the library level clearing result of each transaction database is obtained.

[0083] Taking the first data center IDC01 as an example, the IDC01 can have multiple transaction databases, including transaction database 001, transaction database 002 and transaction database 003. When performing the data center level clearing processing, the transaction data of the transaction databases 001, 002 and 003 can be obtained first, and then the transaction data of the transaction databases 001, 002 and 003 is cleared respectively to obtain the library level clearing result of the transaction databases 001, 002 and 003. Then, the library level clearing result of the transaction databases 001, 002 and 003 is merged in the dimension of IDC01 to obtain the data center level clearing result of IDC01.

[0084] It should be noted that the foregoing embodiment only takes the implementation logic of the clearing application of the first data center as an example for description, and in actual application scenarios, each IDC has a set of clearing application. Each set of clearing application can issue the library level clearing task of the local database of the IDC and the library level clearing task of the local database of the IDC in the same city or different places of other IDCs. When each type of clearing task completes the clearing of all transaction databases, the clearing application merges all the library level clearing results into the IDC level clearing result.

[0085] The issuance of the library level clearing task of the transaction database in the second data center in the foregoing embodiment can be before the issuance of the library level clearing task of the transaction database in the first data center. The issuance of the data center level clearing task of the second data center can be before the issuance of the data center level clearing task of the first data center. Of course, the issuance can also be simultaneous, as long as the library level clearing result and the data center level clearing result in the second data center can be obtained in time.

[0086] In an embodiment of the present application, the library-level clearing results each include an element identifier and an element value, and the library-level checking of the library-level clearing results of the transaction database of the first data center with the library-level clearing results of the transaction database of the second data center includes: checking the element identifier and the element value of the transaction database of the first data center with the element identifier and the element value of the transaction database of the second data center respectively; if the element identifier of the transaction database of the first data center is consistent with the element identifier of the transaction database of the second data center, and the element value of the transaction database of the first data center is consistent with the element value of the transaction database of the second data center, then the library-level checking result is consistent; otherwise, the library-level checking result is inconsistent.

[0087] The library-level clearing result can specifically include an element identifier and an element value, etc. The element identifier can include various fields such as an institution code, a clearing business type, a transaction amount, a transaction number, etc., and the element value is a specific value corresponding to each element identifier field. When comparing the clearing results, the element identifiers can be compared first to see if they are consistent. If all the element identifiers are consistent, then the element values corresponding to each element identifier are further compared to see if they are consistent. If they are consistent, then the library-level checking result is consistent; otherwise, the library-level checking result is inconsistent.

[0088] For example, assume that the library-level clearing result of the transaction database of the first data center is shown in Table 1 below, and the library-level clearing result of the associated database is shown in Table 2 below. As can be seen, both Table 1 and Table 2 include three fields of an institution code, a clearing business type and a transaction amount, but the transaction amount corresponding to the institution code 0002 and the clearing business type T1 is different, so it can be concluded that the library-level clearing result of the transaction database of the first data center is inconsistent with the library-level clearing result of the corresponding transaction database of the second data center.

[0089] Table 1

[0090] Institution code Clearing service type Transaction amount 1 0001 T1 1 million 2 0002 T1 1.5 million ……

[0091] Table 2

[0092] Institution code Clearing service type Transaction amount 1 0001 T1 1 million 2 0002 T1 1.49 million ……

[0093] In an embodiment of the present application, the data center level clearing result of the first data center and the data center level clearing result of the second data center are compared at the data center level, and the comparison result is determined according to the comparison result at the data center level. The comparison at the data center level includes: comparing the element identifier and the element value of the first data center with the element identifier and the element value of the second data center respectively; if the element identifier of the first data center is consistent with the element identifier of the second data center, and the element value of the first data center is consistent with the element value of the second data center, then the comparison result at the data center level is consistent; otherwise, the comparison result at the data center level is inconsistent.

[0094] Since the data center level clearing result is obtained by summarizing the library level clearing result, the comparison logic of the data center level clearing result is similar to that of the library level clearing result, that is, the element identifier in the data center level clearing result of the first data center is compared with the element identifier in the data center level clearing result of the second data center respectively, if all the element identifiers are consistent, then the element value corresponding to each element identifier is further compared, if they are consistent, then the comparison result at the data center level is consistent, otherwise, the comparison result at the data center level is inconsistent.

[0095] It should be noted that in the above embodiment, the clearing application in the second data center is an old version of the clearing application in the same city data center and the clearing application in the remote data center, that is, the clearing application has been normally running on line for a period of time, and in the case that the data synchronization in the same city data center and the remote data center is normal, the library level clearing result of the second data center and the data center level clearing result of the second data center obtained thereby can be considered as accurate clearing results, and thus can be used as the comparison basis in the above embodiment, so as to ensure that a more accurate comparison result can be obtained, so that when the new version of the clearing application has a problem, the influence range thereof can be controlled to the minimum range, and greater influence can be avoided.

[0096] In an embodiment of the present application, the data center level clearing result of the first data center and the data center level clearing result of the second data center are compared at the data center level, and the comparison result is determined according to the comparison result at the data center level. The comparison at the data center level includes: comparing the element identifier and the element value of the first data center with the element identifier and the element value of the second data center respectively; if the element identifier of the first data center is consistent with the element identifier of the second data center, and the element value of the first data center is consistent with the element value of the second data center, then the comparison result at the data center level is consistent; otherwise, the comparison result at the data center level is inconsistent.

[0097] If the data center level clearing result of the first data center is consistent with the corresponding data center level clearing result of the second data center, it indicates that the new version of the clearing application can obtain accurate clearing result, and thus can be deployed to other data centers. If the checking is inconsistent, it indicates that the clearing result obtained by the new version of the clearing application is not accurate enough and cannot be directly released to other data centers.

[0098] The above checking logic can obtain more accurate checking result, and thus can ensure that the new version of the clearing application can control the impact to the minimum range when the clearing is wrong.

[0099] In an embodiment of the present application, after the library level clearing result of the transaction database of the first data center is checked with the library level clearing result of the transaction database of the second data center, the method further comprises: if the library level checking result is consistent, storing the library level clearing result of the transaction database of the first data center into a library level clearing result table; after the data center level clearing result of the first data center is checked with the data center level clearing result of the second data center, the method further comprises: if the data center level checking result is consistent, storing the data center level clearing result of the first data center into a data center level clearing result table; wherein the library level clearing result table and the data center level clearing result table are stored in the clearing database of the first data center.

[0100] In order to uniformly manage the clearing result of the database, the first data center and the second data center of the embodiments of the present application can respectively deploy a clearing database for uniformly storing the checking error-free clearing result as the basis for providing externally.

[0101] Taking the clearing database of the first data center as an example, according to different checking levels, the clearing database of the first data center can include a library level clearing result table and a data center level clearing result table. If the library level clearing result of the first data center passes the checking, the library level clearing result of the first data center can be stored into the library level clearing result table of the first data center. If the data center level clearing result of the first data center passes the checking, the data center level clearing result of the first data center can be stored into the data center level clearing result table of the first data center.

[0102] In an embodiment of the present application, after the data center level clearing result of the first data center is stored into the data center level clearing result table, the method further comprises: receiving a clearing result obtaining request; and according to the clearing result obtaining request, obtaining and returning the library level clearing result and / or the data center level clearing result from the clearing database of the first data center.

[0103] In actual application scenarios, the clearing result obtained by the clearing application can be provided to relevant personnel for checking, and therefore, after the checking of the clearing result is completed, the clearing result obtaining request can be received, the clearing result of the target database or the target data center that the relevant personnel want to obtain can be determined according to the clearing result obtaining request, and the corresponding clearing result in the clearing database in the above embodiment can be queried and returned.

[0104] When the clearing result is provided to the outside, the clearing result in the clearing database of the data center corresponding to the clearing result obtaining request is preferentially provided, so that the resource consumption of accessing the database across the data centers is saved.

[0105] It should be noted that, in the above embodiment, the checking of the clearing result of the clearing application is performed at the database level and the data center level, and the checking manner at each level can be flexibly adjusted according to actual conditions, for example, at the database level, the clearing results of two or more transaction databases can be checked, at the data center level, the clearing results of the transaction databases under two or more data centers can be checked, and the like, so as to further improve the accuracy of the checking of the clearing result of the clearing application.

[0106] In order to facilitate the understanding of the embodiments of the present application, as shown in Figure 3 a clearing application publishing process schematic diagram in the embodiments of the present application is provided, and the checking logic of the first data center is taken as an example for description. First, the new version of the clearing application is published to the first data center, then the library-level clearing task of the first data center is received, the transaction data corresponding to the transaction database is obtained according to the library-level clearing task of the first data center, and the transaction data is cleared to obtain the library-level clearing result of the first data center, then the library-level clearing result of the second data center corresponding to the first data center is obtained, and the two are checked.

[0107] If the library-level checking result is consistent, the new version of the clearing application can be used to receive the data center-level clearing task of the first data center, the transaction data of all databases in the first data center is obtained according to the data center-level clearing task of the first data center, and the transaction data is cleared to obtain the data center-level clearing result of the first data center, then the data center-level clearing result of the second data center corresponding to the first data center is obtained, and the two are checked. If the center-level checking result is consistent, the new version of the clearing application can be published to other data centers, and if the center-level checking result is inconsistent, the new version of the clearing application cannot be directly published to other data centers.

[0108] The embodiment of the present application further provides a clearing application publishing device 400, which is applied to a clearing application server of a first data center, as shown in the following table. Figure 4 As shown in the following table, a structure diagram of the clearing application publishing device in the embodiment of the present application is provided, and the device 400 comprises a first obtaining unit 410, a first checking unit 420, a second obtaining unit 430 and a second checking unit 440, wherein:

[0109] The first obtaining unit 410 is configured to obtain a library-level clearing result of a transaction database of the first data center and a library-level clearing result of a transaction database of a second data center associated with the transaction database of the first data center, wherein the first data center is deployed with a new version of the clearing application, and the second data center is deployed with an old version of the clearing application.

[0110] The first checking unit 420 is configured to perform library-level checking on the library-level clearing result of the transaction database of the first data center and the library-level clearing result of the transaction database of the second data center.

[0111] The second obtaining unit 430 is configured to, in the case that the library-level checking result is consistent, obtain a data center-level clearing result of the first data center and a data center-level clearing result of the second data center corresponding to the first data center.

[0112] The second checking unit 440 is configured to perform center-level checking on the data center-level clearing result of the first data center and the data center-level clearing result of the second data center, so as to determine whether to publish the new version of the clearing application at the data center level according to the center-level checking result.

[0113] In an embodiment of the present application, the first obtaining unit 410 is specifically configured to: receive a library-level clearing task of a transaction database of the first data center; determine a target transaction database in the first data center according to the library-level clearing task of the transaction database of the first data center; and clear transaction data of the target transaction database to obtain the library-level clearing result of the transaction database of the first data center.

[0114] In an embodiment of the present application, the first data center comprises a plurality of transaction databases, and the second obtaining unit 430 is specifically configured to: receive a data center-level clearing task of the first data center; clear each transaction database of the first data center according to the data center-level clearing task of the first data center to obtain a library-level clearing result of each transaction database of the first data center; and perform merging processing on the library-level clearing results of each transaction database to obtain the data center-level clearing result of the first data center.

[0115] In an embodiment of the present application, the library-level clearing results each include an element identifier and an element value, and the first checking unit 420 is specifically configured to: check the element identifier and the element value of the transaction database of the first data center respectively with the element identifier and the element value of the transaction database of the second data center; if the element identifier of the transaction database of the first data center is consistent with the element identifier of the transaction database of the second data center, and the element value of the transaction database of the first data center is consistent with the element value of the transaction database of the second data center, then the library-level checking result is consistent; otherwise, the library-level checking result is inconsistent.

[0116] In an embodiment of the present application, the data center-level clearing results each include an element identifier and an element value, and the second checking unit 440 is specifically configured to: check the element identifier and the element value of the first data center respectively with the element identifier and the element value of the second data center; if the element identifier of the first data center is consistent with the element identifier of the second data center, and the element value of the first data center is consistent with the element value of the second data center, then the center-level checking result is consistent; otherwise, the center-level checking result is inconsistent.

[0117] In an embodiment of the present application, the second checking unit 440 is specifically configured to: if the center-level checking result is consistent, then determine to release the new version of the clearing application at the data center level; if the center-level checking result is inconsistent, then determine not to release the new version of the clearing application at the data center level.

[0118] In an embodiment of the present application, the apparatus further includes a first storage unit configured to: if the library-level checking result is consistent, then store the library-level clearing result of the transaction database of the first data center into a library-level clearing result table; and the apparatus further includes a second storage unit configured to: if the center-level checking result is consistent, then store the data center-level clearing result of the first data center into a data center-level clearing result table; wherein the library-level clearing result table and the data center-level clearing result table are stored in the clearing database of the first data center.

[0119] In an embodiment of the present application, the apparatus further includes: a receiving unit configured to receive a clearing result obtaining request; and a third obtaining unit configured to obtain and return the library-level clearing result and / or the data center-level clearing result from the clearing database of the first data center according to the clearing result obtaining request.

[0120] In an embodiment of the present application, the transaction database of the first data center comprises a local database of the first data center and / or an associated database deployed by the second data center in the first data center, and the transaction database of the second data center comprises a local database of the second data center and / or an associated database deployed by the first data center in the second data center; the associated database comprises a local database and a remote database corresponding to the local database.

[0121] It can be understood that the above-mentioned clearing application publishing device can realize each step of the clearing application publishing method executed by the clearing application server of the first data center in the foregoing embodiments, and the related explanations about the clearing application publishing method are all applicable to the clearing application publishing device, which will not be repeated here.

[0122] Figure 5 is a structural schematic diagram of an electronic device according to an embodiment of the present application. Please refer to Figure 5 On the hardware level, the electronic device comprises a processor, and optionally further comprises an internal bus, a network interface, and a memory. The memory can include a memory such as a high-speed random-access memory (RAM), and can also include a non-volatile memory such as at least one disk memory. Of course, the electronic device can also include other hardware required by the business.

[0123] The processor, the network interface, and the memory can be connected to each other through the internal bus, which can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, and a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or only one type of bus.

[0124] The memory is used to store programs. Specifically, the program can include program code, and the program code includes computer operation instructions. The memory can include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0125] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs, and forms the clearing application publishing device at the logical level. The processor executes the program stored in the memory, and is specifically configured to perform the following operations:

[0126] obtain a library-level clearing result of a transaction database of a first data center, and obtain a library-level clearing result of a transaction database of a second data center associated with the transaction database of the first data center, wherein the first data center is deployed with a new version of the clearing application, and the second data center is deployed with an old version of the clearing application;

[0127] perform a library-level check on the library-level clearing result of the transaction database of the first data center and the library-level clearing result of the transaction database of the second data center;

[0128] in a case where the library-level check result is consistent, obtain a data center-level clearing result of the first data center, and a data center-level clearing result of the second data center corresponding to the first data center;

[0129] perform a data center-level check on the data center-level clearing result of the first data center and the data center-level clearing result of the second data center, to determine whether to publish the new version of the clearing application at the data center level according to the data center-level check result.

[0130] The above as described in the present application Figure 1The method executed by the clearing application publishing device disclosed in the embodiment can be applied in a processor or implemented by the processor. The processor can be an integrated circuit chip with signal processing capability. In the implementation, each step of the above method can be completed by integrated logic circuit of hardware in the processor or instructions in the form of software. The processor can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; or a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. Each method, step and logic block disclosed in the embodiment of the present application can be implemented or executed. The general processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as hardware code processing executed by the processor or executed by a combination of hardware and software modules in the code processing. The software module can be located in a mature storage medium in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory or a register. The storage medium is located in a memory, and the processor reads information in the memory and combines hardware to complete the steps of the above method.

[0131] The electronic device can also execute Figure 1 the method executed by the clearing application publishing device, and implement the function of the clearing application publishing device in Figure 1 the embodiment. The embodiment of the present application will not be described here.

[0132] The embodiment of the present application also proposes a computer readable storage medium storing one or more programs, the one or more programs including instructions capable of causing an electronic device including a plurality of applications to execute Figure 1 the method executed by the clearing application publishing device in the embodiment, and specifically for executing

[0133] obtaining a library-level clearing result of a transaction database of a first data center, and obtaining a library-level clearing result of a transaction database of a second data center associated with the transaction database of the first data center, wherein the first data center is deployed with a new version of the clearing application, and the second data center is deployed with an old version of the clearing application.

[0134] The library-level clearing result of the transaction database of the first data center is checked with the library-level clearing result of the transaction database of the second data center;

[0135] In the case that the library-level checking result is consistent, the data center-level clearing result of the first data center and the data center-level clearing result of the second data center corresponding to the first data center are obtained;

[0136] The data center-level clearing result of the first data center is checked with the data center-level clearing result of the second data center, so as to determine whether to release the new version of the clearing application at the data center level according to the center-level checking result.

[0137] Those skilled in the art will appreciate that embodiments of the present application can be provided as methods, systems, or computer program products. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) having computer-usable program code embodied in the medium.

[0138] The present application is described in reference to the flowcharts and / or block diagrams of the methods, apparatus (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing apparatus to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing apparatus produce the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in the flowcharts and / or block diagrams.

[0139] These computer program instructions can also be stored in a computer-readable memory that can direct the computer or other programmable data processing apparatus to work in a specific manner, so that the instructions stored in the computer-readable memory produce the manufacture including the instruction apparatus that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in the flowcharts and / or block diagrams.

[0140] These computer program instructions can also be loaded into 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 or flowsheet block or blocks. Figure 1 Figure 1

[0141] In one typical configuration, the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0142] The memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) and / or cache memory, non-volatile memory, such as read-only memory (ROM), EPROM, and / or flash memory, etc. The memory is an example of computer readable media.

[0143] Computer readable media includes permanent and non-permanent, moveable and non- moveable media that can store information by any method or technology. The information can be computer readable instructions, data structures, program modules, or other data. Examples of computer storage media 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 (DVDs) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can store information accessible to a computing device. According to the definition herein, computer readable media does not include transitory media, such as modulated data signals and carrier waves.

[0144] It is also important to note that the terms "comprises", "comprising", or other variations such as "comprising", "includes", "including" and / or "including", 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 can include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without limitation, an element preceded by "comprises... a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the named element.

[0145] ​​Those skilled in the art will appreciate that embodiments of the application can be provided as methods, systems or computer program products. Accordingly, the application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer readable program code thereon for use by or in connection with an instruction execution system. Program code embodied on a computer-usable storage medium can be transmitted using any apparatus of device or communication medium that can transmit information for use by an instruction execution system, apparatus, or device. The computer-usable storage medium can have recorded thereon instructions that, if executed by a machine, will cause the machine to perform a method and / or operations in accordance with embodiments of the application.

[0146] The foregoing is merely illustrative of the principles of the application and various modifications can be made by persons skilled in the art. The present application is not intended to be limited to the embodiments shown, but is to be accorded the full scope that resides in the art thereof. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A clearing application publishing method, performed by a clearing application server of a first data center, wherein, The method comprises: obtaining the library-level clearing result of the transaction database of the first data center and the library-level clearing result of the transaction database of the second data center associated with the transaction database of the first data center, wherein the first data center is deployed with a new version of the clearing application, and the second data center is deployed with an old version of the clearing application; performing library-level checking on the library-level clearing result of the transaction database of the first data center and the library-level clearing result of the transaction database of the second data center; in the case that the library-level checking result is consistent, obtaining the data center-level clearing result of the first data center and the data center-level clearing result of the second data center corresponding to the first data center; performing center-level checking on the data center-level clearing result of the first data center and the data center-level clearing result of the second data center to determine whether to release the new version of the clearing application at the data center level according to the center-level checking result.

2. The method of claim 1, wherein, The method comprises: receiving the library-level clearing task of the transaction database of the first data center; determining the target transaction database in the first data center according to the library-level clearing task of the transaction database of the first data center; clearing the transaction data of the target transaction database to obtain the library-level clearing result of the transaction database of the first data center.

3. The method of claim 1, wherein, The first data center comprises a plurality of transaction databases, and the method comprises: receiving the data center-level clearing task of the first data center; clearing each transaction database of the first data center according to the data center-level clearing task of the first data center to obtain the library-level clearing result of each transaction database of the first data center; performing merging processing on the library-level clearing result of each transaction database to obtain the data center-level clearing result of the first data center.

4. The method of claim 1, wherein, The library-level clearing result comprises element identification and element value, and the library-level checking on the library-level clearing result of the transaction database of the first data center and the library-level clearing result of the transaction database of the second data center comprises: respectively checking the element identification and element value of the transaction database of the first data center with the element identification and element value of the transaction database of the second data center; if the element identification of the transaction database of the first data center is consistent with the element identification of the transaction database of the second data center, and the element value of the transaction database of the first data center is consistent with the element value of the transaction database of the second data center, the library-level checking result is consistent; otherwise, the library-level checking result is inconsistent.

5. The method of claim 1, wherein, The data center-level clearing result comprises element identification and element value, and the center-level checking on the data center-level clearing result of the first data center and the data center-level clearing result of the second data center comprises: respectively checking the element identification and element value of the first data center with the element identification and element value of the second data center; If the element identifier of the first data center is consistent with the element identifier of the second data center, and the element value of the first data center is consistent with the element value of the second data center, the center-level check result is consistent. Otherwise, the center-level check result is inconsistent.

6. The method of claim 1, wherein, After the library-level check of the transaction database of the first data center and the transaction database of the second data center, the method further comprises: If the library-level check result is consistent, the library-level check result of the transaction database of the first data center is stored in the library-level check result table. After the center-level check of the data center of the first data center and the data center of the second data center, the method further comprises: If the center-level check result is consistent, the data center-level check result of the first data center is stored in the data center-level check result table. The library-level check result table and the data center-level check result table are stored in the first data center.

7. The method of claim 6, wherein, After the data center-level check result of the first data center is stored in the data center-level check result table, the method further comprises: Receiving a check result acquisition request; According to the check result request, the library-level check result and / or the data center-level check result are acquired from the first data center and returned.

8. The method of any one of claims 1 to 7, wherein, The transaction database of the first data center includes the local database of the first data center and / or the associated database deployed by the second data center in the first data center, and the transaction database of the second data center includes the local database of the second data center and / or the associated database deployed by the first data center in the second data center; the associated database includes the local database corresponding to the local database and the remote database.

9. A clearing application publishing apparatus applied to a clearing application server of a first data center, wherein, The device is used to implement the method of any one of claims 1-8.

10. An electronic device comprising: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of any one of claims 1-8.

Citation Information

Patent Citations

  • Clearing calculation method and device

    CN109753383A

  • Application publishing system, method, device and equipment

    CN114035807A