Data consistency verification method, device, equipment and storage medium

By converting data into intermediate data and calculating cyclic redundancy check values, the problem of slow data consistency check speed in the existing technology is solved, and fast and efficient data consistency check is achieved, which is suitable for different storage spaces. Data verification.

CN114564336BActive Publication Date: 2024-10-18PINGCAP XINGCHEN (BEIJING) TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210188080.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-10-18
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

In the existing technology, after data migration and backup, data consistency verification is slow and has poor applicability, making it impossible to quickly determine the consistency of data in different storage spaces.

Method used

By converting the data in the data table into intermediate data in a preset format, calculating its cyclic redundancy check value, and comparing the check values ​​to determine data consistency, this is achieved using the data conversion module, data calculation module and data verification module Fast consistency check.

Benefits of technology

It achieves rapid data consistency verification and high applicability, can quickly determine the consistency of data in different storage spaces, and improves verification efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114564336B_ABST
    Figure CN114564336B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a data consistency verification method, device, equipment and storage medium. The method includes: converting the data in the first data table and the second data table into intermediate data in a preset format, and the first data table and the second data table are stored in the first storage space and the second storage space respectively; for each data table, determining the cyclic redundancy check value corresponding to the data table based on the intermediate data corresponding to the data table; if the cyclic redundancy check values ​​corresponding to the first data table and the second data table are consistent, it is determined that the data in the first data table and the second data table are consistent. By using the embodiment of the present application, the data consistency between the data tables can be quickly determined, and the applicability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data consistency verification method, device, equipment and storage medium. Background Art

[0002] In the existing computer technology field, data migration and backup are often important data processing links. For example, when a piece of data is placed in a database for use by an upper-level program, the data often needs to be migrated and backed up to other places for storage, such as in the form of files in an operating system or in other databases. After the data is migrated and backed up, it is often necessary to verify the consistency of the data in two different storage spaces.

[0003] When performing data consistency verification, the existing technology often needs to compare data one by one, which has a slow data verification speed and poor applicability. Summary of the invention

[0004] The embodiments of the present application provide a data consistency verification method, device, equipment and storage medium, which can quickly verify the data consistency between data tables and have high applicability.

[0005] In a first aspect, an embodiment of the present application provides a method for data consistency verification, the method comprising:

[0006] Converting data in a first data table and a second data table into intermediate data in a preset format, wherein the first data table and the second data table are stored in a first storage space and a second storage space respectively;

[0007] For each data table, determining a cyclic redundancy check value corresponding to the data table based on the intermediate data corresponding to the data table;

[0008] If the cyclic redundancy check values ​​corresponding to the first data table and the second data table are consistent, it is determined that the data in the first data table and the data in the second data table are consistent.

[0009] In a second aspect, an embodiment of the present application provides a data consistency verification device, the device comprising:

[0010] A data conversion module, used for converting data in a first data table and a second data table into intermediate data in a preset format, wherein the first data table and the second data table are stored in a first storage space and a second storage space respectively;

[0011] A data calculation module, used for determining, for each data table, a cyclic redundancy check value corresponding to the data table based on intermediate data corresponding to the data table;

[0012] The data verification module is used to determine that the data in the first data table and the data in the second data table are consistent if the cyclic redundancy check values ​​corresponding to the first data table and the second data table are consistent.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein the processor and the memory are connected to each other;

[0014] The memory is used to store computer programs;

[0015] The above-mentioned processor is configured to execute the data consistency verification method provided in the embodiment of the present application when calling the above-mentioned computer program.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the data consistency verification method provided by the embodiment of the present application.

[0017] In the embodiment of the present application, by determining the cyclic redundancy check values ​​corresponding to the first data table and the second data table, the data consistency of the first data table and the second data table can be quickly determined based on the cyclic redundancy check values ​​corresponding to the first data table and the second data table, which has high applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 It is a flowchart of a data consistency verification method provided in an embodiment of the present application;

[0020] Figure 2 It is a structural diagram of a data consistency verification device provided in an embodiment of the present application;

[0021] Figure 3 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0023] See also Figure 1 , Figure 1 Schematic diagram of the data consistency verification method provided in the embodiment of the present application. Figure 1 As shown, the data consistency verification method provided in the embodiment of the present application may include the following steps:

[0024] Step S11: converting the data in the first data table and the second data table into intermediate data in a preset format.

[0025] In some feasible implementations, the first data table is stored in a first storage space, the second data table is stored in a second storage space, and at least one data table is stored in each storage space. The data table in any storage space may include data in formats such as CSV, SQL or KV.

[0026] The first data table and the second data table are designated data that need to be checked for data consistency, and may also be any data table in the first storage space and the second storage space, respectively, to determine whether the data in the first data table and the second data table are consistent.

[0027] The first storage space and the second storage space may be the same storage space or different storage spaces, which is not limited here. For any storage space in the first storage space and the second storage space, the storage space may be a database, a folder or other storage medium, which is not limited here.

[0028] The data stored in the second storage space may be data in the first storage space that is backed up and stored in the form of CSV, SQL, or KV during the data flow process.

[0029] For example, the first storage space may be a MySQL database, and the second storage space may be other databases used to back up data in the MySQL database, such as a SQL syntax relational database, including but not limited to a Tikv database or a KV database, etc., which are not limited here.

[0030] After the first data table is determined from the first storage space and the second data table is determined from the second storage space, for each of the first data table and the second data table, the data in the data table may be converted into intermediate data in a preset format.

[0031] Specifically, for each data table in the first data table and the second data table, each data in the data table may be spliced, and the spliced ​​data may be determined as the intermediate data of the preset format corresponding to the data table. For example, each data in the data table may correspond to a cell of the data table, and the data corresponding to each cell in the data table may be spliced ​​to obtain the intermediate data of the preset format.

[0032] Optionally, for each data table in the first data table and the second data table, each data in each row of the data table may be concatenated to obtain intermediate data in a preset format corresponding to each row, that is, the intermediate data corresponding to the data table includes the intermediate data corresponding to each row in the data table.

[0033] As an example, for the first data table, if the SQL corresponding to a row in the first data table is INSERT INTO DB1.TABLE1 VALUES(1, "TERRY", "50000", "TERRY@XXX.COM"), it can be determined that the data corresponding to the row are "1", "TERRY", "50000" and "TERRY@XXX.COM". At this time, the data of the row can be concatenated to obtain the intermediate data 1TERRY50000TERRY@XXX.COM corresponding to the row.

[0034] Optionally, for each data table in the first data table and the second data table, each data in each column of the data table may be concatenated to obtain intermediate data in a preset format corresponding to each column, that is, the intermediate data corresponding to the data table includes the intermediate data corresponding to each column of the data table.

[0035] It should be noted that when splicing the various data, connectors can be used to splice the data, or the various data can be spliced ​​directly, or they can be spliced ​​through other preset processing methods. The specific method can be determined based on the actual application scenario requirements and is not limited here.

[0036] The connectors may be “|”, “-”, etc., and are not limited thereto.

[0037] Step S12: For each data table, determine a cyclic redundancy check value corresponding to the data table based on the intermediate data corresponding to the data table.

[0038] In some feasible implementations, if the intermediate data of a preset format corresponding to each data table in the first data table and the second data table is obtained by concatenating the individual data in the data table, a cyclic redundancy check operation can be performed on the intermediate data corresponding to the first data table and the second data table, respectively, to obtain a cyclic redundancy check value corresponding to the first data table and a cyclic redundancy check value corresponding to the second data table.

[0039] In some feasible implementations, if the intermediate data of a preset format corresponding to each data table in the first data table and the second data table includes intermediate data corresponding to each row, then the cyclic redundancy check value corresponding to each row can be determined based on the intermediate data corresponding to each row in the data table, and then the cyclic check value corresponding to the data table can be determined based on the cyclic redundancy check value corresponding to each row in the data table.

[0040] Specifically, for each data table in the first data table and the second data table, when determining the cyclic redundancy check value corresponding to each row in the data table, a cyclic redundancy check operation can be directly performed on the intermediate data corresponding to each row, and the obtained cyclic redundancy check value is determined as the cyclic redundancy check value corresponding to each row.

[0041] For example, for the first data table, a cyclic redundancy check operation may be performed on the intermediate data corresponding to each row in the first data table to obtain a cyclic redundancy check value corresponding to the intermediate data corresponding to each row, and determine it as the cyclic redundancy check value corresponding to the corresponding row.

[0042] Optionally, for each row in each data table, a cyclic redundancy check operation may be performed on each data in the intermediate data corresponding to the row to obtain a cyclic redundancy check value of the intermediate data corresponding to the row.

[0043] For example, if the intermediate data corresponding to a row is 1TERRY50000TERRY@XXX.COM, the cyclic redundancy check operation can be performed on "1", "TERRY", "50000" and "TERRY@XXX.COM" respectively to obtain the cyclic redundancy check values ​​of "1", "TERRY", "50000" and "TERRY@XXX.COM".

[0044] For each row in each data table, after determining the cyclic redundancy check value of each data corresponding to the row, the cyclic redundancy check values ​​of any two data can be XORed to obtain the intermediate cyclic redundancy check value, and the following calculation process can be repeated:

[0045] Perform an XOR operation on the last obtained intermediate cyclic redundancy check value and the cyclic redundancy check value of any remaining data to obtain the current intermediate cyclic redundancy check value. After completing the XOR operation on the cyclic redundancy check values ​​of all data, the final intermediate cyclic redundancy check value is determined as the cyclic redundancy check value corresponding to the row.

[0046] That is, after performing an XOR operation on the cyclic redundancy check values ​​of any two data to obtain an intermediate cyclic redundancy check value, an XOR operation is performed on the intermediate cyclic redundancy check value and the cyclic redundancy check value of any remaining data to obtain a new intermediate cyclic redundancy check value, and the new cyclic redundancy check value is further XORed with the cyclic redundancy check values ​​of the remaining other data, and so on, the finally obtained intermediate cyclic redundancy check value is determined as the cyclic redundancy check value corresponding to the row.

[0047] The cyclic redundancy check value of each data corresponding to the row only participates in the determination process of the intermediate cyclic redundancy check value once.

[0048] For example, if the intermediate data corresponding to a row is 1TERRY50000TERRY@XXX.COM, and after the cyclic redundancy check values ​​of "1", "TERRY", "50000" and "TERRY@XXX.COM" are determined, the cyclic redundancy check values ​​of "1" and "TERRY" can be XORed to obtain the intermediate cyclic redundancy check value a, and then the intermediate cyclic redundancy check value a and the cyclic redundancy check value of "50000" can be XORed to obtain the intermediate cyclic redundancy check value b, and the intermediate cyclic redundancy check value b and the cyclic redundancy check value of "TERRY@XXX.COM" can be further XORed to obtain the cyclic redundancy check value corresponding to the row.

[0049] Further, for each data table in the first data table and the second data table, after determining the cyclic redundancy check value corresponding to each row in the data table, the cyclic redundancy check values ​​corresponding to any two rows of the data table may be XORed to obtain an intermediate cyclic redundancy check value, and the following calculation process may be repeatedly performed:

[0050] Perform an XOR operation on the last obtained intermediate cyclic redundancy check value and the cyclic redundancy check value corresponding to any remaining row to obtain the current intermediate cyclic redundancy check value. After completing the XOR operation on the cyclic redundancy check values ​​corresponding to all rows, the final intermediate cyclic redundancy check value is determined as the cyclic redundancy check value corresponding to the data table.

[0051] That is, an XOR operation is performed on the cyclic redundancy check values ​​corresponding to any two rows to obtain an intermediate cyclic redundancy check value, and an XOR operation is performed on the intermediate cyclic redundancy check value and the cyclic redundancy check value corresponding to any remaining row to obtain a new intermediate cyclic redundancy check value, and an XOR operation is further performed on the new cyclic redundancy check value and the cyclic redundancy check values ​​of the remaining other rows, and so on, and the finally obtained intermediate cyclic redundancy check value is determined as the cyclic redundancy check value corresponding to the data table.

[0052] The cyclic redundancy check value corresponding to each row in the data table only participates in the determination process of the intermediate cyclic redundancy check value once.

[0053] For example, if a data table includes 4 rows of data, after determining the cyclic redundancy check value corresponding to each row, the cyclic redundancy check values ​​corresponding to the first row and the second row can be XORed to obtain an intermediate cyclic redundancy check value c, and then the intermediate cyclic redundancy check value c and the cyclic redundancy check value corresponding to the third row can be XORed to obtain an intermediate cyclic redundancy check value d, and the intermediate cyclic redundancy check value d and the cyclic redundancy check value corresponding to the last row can be further XORed to obtain the cyclic redundancy check value corresponding to the data table.

[0054] For example, each row of data in a data table includes two data about id and name. The statement (SELECTBIT_XOR(CAST(CRC32(CONCAT_WS('-,id,name,CONCAT(ISNULL(id),ISNULL(name))))AS UNSIGNED))AS checksum FROM oomtest;) can be used to connect all the data in each row of data with "-", and then calculate a cyclic redundancy check value. Finally, all cyclic redundancy check values ​​are XORed to obtain the cyclic redundancy check value corresponding to the data table.

[0055] In some exemplary implementations, if the intermediate data of a preset format corresponding to each data table in the first data table and the second data table includes intermediate data corresponding to each column, then the cyclic redundancy check value corresponding to each column can be determined based on the intermediate data corresponding to each column in the data table, and then the cyclic check value corresponding to the data table can be determined based on the cyclic redundancy check value corresponding to each column in the data table.

[0056] Specifically, for each data table in the first data table and the second data table, when determining the cyclic redundancy check value corresponding to each column in the data table, a cyclic redundancy check operation can be directly performed on the intermediate data corresponding to each column, and the obtained cyclic redundancy check value is determined as the cyclic redundancy check value corresponding to each column.

[0057] For example, for the second data table, a cyclic redundancy check operation may be performed on the intermediate data corresponding to each column in the second data table to obtain a cyclic redundancy check value corresponding to the intermediate data corresponding to each column, and determine it as the corresponding cyclic redundancy check value.

[0058] Optionally, for each column in each data table, a cyclic redundancy check operation may be performed on each data in the intermediate data corresponding to the column to obtain a cyclic redundancy check value of the intermediate data corresponding to the column.

[0059] For example, if the intermediate data corresponding to a column is 111-222-333-444, cyclic redundancy check operations can be performed on "111", "222", "333" and "444" respectively to obtain cyclic redundancy check values ​​of "111", "222", "333" and "444".

[0060] For each column in each data table, after determining the cyclic redundancy check value of each data corresponding to the column, the cyclic redundancy check values ​​of any two data can be XORed to obtain the intermediate cyclic redundancy check value, and the following calculation process can be repeated:

[0061] Perform an XOR operation on the last obtained intermediate cyclic redundancy check value and the cyclic redundancy check value of any remaining data to obtain the current intermediate cyclic redundancy check value. After completing the XOR operation on the cyclic redundancy check values ​​of all data, the final intermediate cyclic redundancy check value is determined as the cyclic redundancy check value corresponding to the column.

[0062] That is, after performing an XOR operation on the cyclic redundancy check values ​​of any two data to obtain an intermediate cyclic redundancy check value, an XOR operation is performed on the intermediate cyclic redundancy check value and the cyclic redundancy check value of any remaining data to obtain a new intermediate cyclic redundancy check value, and an XOR operation is further performed on the new cyclic redundancy check value and the cyclic redundancy check values ​​of the remaining other data, and so on, the finally obtained intermediate cyclic redundancy check value is determined as the cyclic redundancy check value corresponding to the column.

[0063] The cyclic redundancy check value of each data corresponding to the column only participates in the determination process of the intermediate cyclic redundancy check value once.

[0064] For example, if the intermediate data corresponding to a column is 111-222-333-444, and after the cyclic redundancy check values ​​of "111", "222", "333" and "444" are determined, the cyclic redundancy check values ​​of "111" and "222" can be XORed to obtain the intermediate cyclic redundancy check value e, and then the intermediate cyclic redundancy check value e and the cyclic redundancy check value of "333" can be XORed to obtain the intermediate cyclic redundancy check value f, and the intermediate cyclic redundancy check value f and the cyclic redundancy check value of "444" can be further XORed to obtain the cyclic redundancy check value corresponding to the column.

[0065] Further, for each data table in the first data table and the second data table, after determining the cyclic redundancy check value corresponding to each column in the data table, the cyclic redundancy check values ​​corresponding to any two columns of the data table may be XORed to obtain an intermediate cyclic redundancy check value, and the following calculation process may be repeatedly performed:

[0066] Perform an XOR operation on the last obtained intermediate cyclic redundancy check value and the cyclic redundancy check value corresponding to any remaining column to obtain the current intermediate cyclic redundancy check value. After completing the XOR operation on the cyclic redundancy check values ​​corresponding to all columns, the final intermediate cyclic redundancy check value is determined as the cyclic redundancy check value corresponding to the data table.

[0067] That is, after performing an XOR operation on the cyclic redundancy check values ​​corresponding to any two columns to obtain an intermediate cyclic redundancy check value, an XOR operation is performed on the intermediate cyclic redundancy check value and the cyclic redundancy check value corresponding to any remaining column to obtain a new intermediate cyclic redundancy check value, and the new cyclic redundancy check value is further XORed with the cyclic redundancy check values ​​of the remaining other columns, and so on, the finally obtained intermediate cyclic redundancy check value is determined as the cyclic redundancy check value corresponding to the data table.

[0068] The cyclic redundancy check value corresponding to each column in the data table only participates in the determination process of the intermediate cyclic redundancy check value once.

[0069] For example, if a data table includes 4 columns of data, after determining the cyclic redundancy check value corresponding to each column, an XOR operation can be performed on the cyclic redundancy check values ​​corresponding to the first column and the second column to obtain an intermediate cyclic redundancy check value g, and then an XOR operation is performed on the intermediate cyclic redundancy check value g and the cyclic redundancy check value corresponding to the third column to obtain an intermediate cyclic redundancy check value h, and further an XOR operation is performed on the intermediate cyclic redundancy check value h and the cyclic redundancy check value corresponding to the last column to obtain the cyclic redundancy check value corresponding to the data table.

[0070] Optionally, when determining the cyclic redundancy check value corresponding to each data table in the first data table and the second data table, after determining the cyclic redundancy check value corresponding to each data in the data table, an XOR operation may be performed on the cyclic redundancy check values ​​of any two data in the data table to obtain an intermediate cyclic redundancy check value, and the following calculation process may be repeatedly performed:

[0071] Perform an XOR operation on the last obtained intermediate cyclic redundancy check value and the cyclic redundancy check value of any remaining data to obtain the current intermediate cyclic redundancy check value. After completing the XOR operation on the cyclic redundancy check values ​​of all data, the final intermediate cyclic redundancy check value is determined as the cyclic redundancy check value corresponding to the data table.

[0072] Likewise, the cyclic redundancy check value of each data in the data table only participates in the determination process of the intermediate cyclic redundancy check value once.

[0073] Step S13: If the cyclic redundancy check values ​​corresponding to the first data table and the second data table are consistent, it is determined that the data in the first data table and the second data table are consistent.

[0074] In some feasible implementations, after determining the cyclic redundancy check values ​​corresponding to the first data table and the second data table, the cyclic redundancy check values ​​of the first data table and the second data table may be compared. If the two are consistent, it can be determined that the data in the first data table and the second data table are consistent, that is, the first data table and the second data table store the same data.

[0075] Optionally, when the arrangement order of the rows in the first data table and the second data table is consistent, when determining the data consistency of the first data table and the second data table based on the cyclic redundancy check values ​​corresponding to the first data table and the second data table, the cyclic redundancy check values ​​of the corresponding rows in the first data table and the second data table may be compared. If the cyclic redundancy check value corresponding to each row in the first data table is consistent with the cyclic redundancy check value of the corresponding row in the second data table, and the cyclic redundancy check values ​​corresponding to the first data table and the second data table are consistent, it can be determined that the data in the first data table and the second data table are consistent.

[0076] If the cyclic redundancy check values ​​corresponding to the first data table and the second data table are inconsistent, and / or there is at least one row in the first data table whose corresponding cyclic redundancy check value is inconsistent with the cyclic redundancy check value of the corresponding row in the second data table, it can be determined that the data in the first data table and the second data table are inconsistent.

[0077] Optionally, when the arrangement order of the columns in the first data table and the second data table is consistent, when determining the data consistency of the first data table and the second data table based on the cyclic redundancy check values ​​corresponding to the first data table and the second data table, the cyclic redundancy check values ​​of the corresponding columns in the first data table and the second data table may be compared. If the cyclic redundancy check value corresponding to each column in the first data table is consistent with the cyclic redundancy check value of the corresponding column in the second data table, and the cyclic redundancy check values ​​corresponding to the first data table and the second data table are consistent, it can be determined that the data in the first data table and the second data table are consistent.

[0078] If the cyclic redundancy check values ​​corresponding to the first data table and the second data table are inconsistent, and / or there is at least one column in the first data table whose corresponding cyclic redundancy check value is inconsistent with the cyclic redundancy check value of the corresponding column in the second data table, it can be determined that the data in the first data table and the second data table are inconsistent.

[0079] Optionally, when the arrangement order of each row and each column in the first data table and the second data table is consistent, when determining the data consistency of the first data table and the second data table based on the cyclic redundancy check values ​​corresponding to the first data table and the second data table, the cyclic redundancy check values ​​of the corresponding rows and columns in the first data table and the second data table may also be compared. If the cyclic redundancy check values ​​corresponding to the first data table and the second data table are consistent, the cyclic redundancy check value corresponding to each column in the first data table is consistent with the cyclic redundancy check value of the corresponding column in the second data table, and the cyclic redundancy check value corresponding to each row in the first data table is consistent with the cyclic redundancy check value of the corresponding row in the second data table, then it is determined that the data in the first data table and the second data table are consistent. Otherwise, it can be determined that the data in the first data table and the second data table are inconsistent.

[0080] In some feasible implementations, if it is necessary to determine the data consistency of all data in the first storage space and the second storage space, the cyclic redundancy check value corresponding to each data table in each storage space can be determined first. The specific determination method is as shown above and will not be repeated here.

[0081] Furthermore, the cyclic redundancy check values ​​of the corresponding data tables in the first storage space and the second storage space can be compared. If the cyclic redundancy check value corresponding to each data table in the first storage space is consistent with the cyclic redundancy check value of the corresponding data table in the second storage space, it can be determined that the data stored in the first storage space and the second storage space are consistent. Otherwise, it can be determined that the data stored in the first storage space and the second storage space are inconsistent.

[0082] Optionally, after determining the cyclic redundancy check values ​​corresponding to each data table in each storage space, the cyclic redundancy check values ​​of all data stored in the storage space may be determined based on the cyclic redundancy check values ​​corresponding to each data table in the storage space.

[0083] Specifically, for each storage space, the cyclic redundancy check values ​​corresponding to any two data tables in the storage space can be XORed to obtain an intermediate cyclic redundancy check value, and the following calculation process can be repeatedly performed:

[0084] The last obtained intermediate cyclic redundancy check value and the corresponding cyclic redundancy check value of any remaining data table are XORed to obtain the current intermediate cyclic redundancy check value. After completing the XOR operation of the cyclic redundancy check values ​​corresponding to all data tables in the storage space, the finally obtained intermediate cyclic redundancy check value is determined as the cyclic redundancy check value of all data stored in the storage space.

[0085] That is, after performing an XOR operation on the cyclic redundancy check values ​​corresponding to any two data tables in the storage space to obtain an intermediate cyclic redundancy check value, an XOR operation is performed on the intermediate cyclic redundancy check value and the cyclic redundancy check value corresponding to any remaining data table to obtain a new intermediate cyclic redundancy check value, and then an XOR operation is performed on the new cyclic redundancy check value and the cyclic redundancy check value of another remaining data table, and so on, the finally obtained intermediate cyclic redundancy check value is determined as the cyclic redundancy check value of all data stored in the storage space.

[0086] The cyclic redundancy check value corresponding to each data table in the storage space only participates in the determination process of the intermediate cyclic redundancy check value once.

[0087] Furthermore, after determining the cyclic redundancy check values ​​of the data stored in the first storage space and the second storage space, the cyclic redundancy check values ​​corresponding to the first storage space and the second storage space can be compared. If the cyclic redundancy check values ​​corresponding to the first storage space and the second storage space are consistent, it can be determined that the data stored in the first storage space and the second storage space are consistent.

[0088] For example, if the first storage space is a MySQL database, and the second storage space is a KV database for backing up and storing data in MySQL, based on the above implementation, it can be quickly determined whether the data stored in the MySQL database and the KV database are consistent.

[0089] In some feasible implementations, before determining the cyclic redundancy check values ​​corresponding to the first data table and the second data table, it is also possible to determine whether the table structures of the second data table and the second data table are consistent. If the table structures of the first data table and the second data table are inconsistent, it can be directly determined that the data in the first data table and the second data table are inconsistent.

[0090] If the table structures of the first data table and the second data table are consistent, the cyclic redundancy check values ​​corresponding to the first data table and the second data table can be further determined, and then whether the data in the first data table and the second data table are consistent can be determined based on the cyclic redundancy check values ​​corresponding to the first data table and the second data table.

[0091] Specifically, for each data table in the first data table and the second data table, the column attribute information of the data table may be determined, wherein the column attribute information of each data table includes the data type and attribute corresponding to each column of the data table.

[0092] For example, if the attributes of the data corresponding to each column in the data table are "id", "name", "number" and "mail", and the corresponding data types are int(4), char(64), int(64) and char(64) respectively, then the column attribute information corresponding to the data table may include "id-int(4)", "name-char(64)", "number-int(64)" and "mail-char(64)".

[0093] For each data table, when determining the column attribute information corresponding to the data table, the COLUMNS table may be determined from the schema information (information_schema) of the corresponding storage space, and the column attribute information corresponding to the data table may be determined based on the COLUMNS table.

[0094] Furthermore, for each data table, the column attribute information of the data table may be converted into intermediate data in a preset format, and then the cyclic redundancy check value corresponding to the column attribute information may be determined based on the intermediate data corresponding to the column attribute information.

[0095] When the column attribute information of the data table is converted into intermediate data of a preset format, each information can also be spliced ​​to obtain the intermediate data of the preset format. When splicing each information, a connector can be used to splice each information, or each information can be spliced ​​directly, or spliced ​​by other preset processing methods, which can be determined based on the actual application scenario requirements and is not limited here. The above connector can be "|", "-", etc., which is not limited here.

[0096] For example, if the column attribute information corresponding to a data table includes "id-int(4)", "name-char(64)", "number-int(64)" and "mail-char(64)", then the information is concatenated based on the connector to obtain the intermediate data in the preset format of id-int(4)-name-char(64)-number-int(64)-mail-char(64).

[0097] Among them, when determining the cyclic redundancy check value corresponding to the column attribute information, the intermediate data corresponding to the column attribute information can be regarded as the intermediate data corresponding to a row in the data table, and then based on the method of determining the cyclic redundancy check value corresponding to each row in the data table, the cyclic redundancy check value corresponding to the column attribute information is determined, which will not be repeated here.

[0098] Further, after determining the cyclic redundancy check values ​​corresponding to the column attribute information of the first data table and the second data table, if the cyclic redundancy check values ​​corresponding to the column attribute information of the first data table and the second data table are consistent, it can be determined that the table structures of the first data table and the second data table are consistent, and then the step of determining the cyclic redundancy check values ​​corresponding to the first data table and the second data table can be executed.

[0099] It should be noted that the algorithm used in the embodiment of the present application to determine the cyclic redundancy check value can be a 32-bit cyclic redundancy check algorithm or a 64-bit cyclic redundancy check algorithm, which is not limited here. When the 64-bit cyclic redundancy check algorithm is used to determine the cyclic redundancy check value, the possibility of data collision can be reduced and the accuracy of data consistency verification can be improved.

[0100] Based on the method provided in the embodiment of the present application, the data consistency of some or all data tables in different storage spaces (such as two databases) can be quickly verified with high accuracy.

[0101] See also Figure 2 , Figure 2 Schematic diagram of the structure of the data consistency verification device provided by the embodiment of the present application. The device provided by the embodiment of the present application includes:

[0102] A data conversion module 21, used for converting data in a first data table and a second data table into intermediate data in a preset format, wherein the first data table and the second data table are stored in a first storage space and a second storage space respectively;

[0103] A data calculation module 22, configured to determine, for each data table, a cyclic redundancy check value corresponding to the data table based on intermediate data corresponding to the data table;

[0104] The data verification module 23 is used to determine that the data in the first data table and the data in the second data table are consistent if the cyclic redundancy check values ​​corresponding to the first data table and the second data table are consistent.

[0105] In some feasible implementations, for each of the above data tables, the above data conversion module 21 is used to:

[0106] The data in each row of the data table are concatenated to obtain intermediate data in a preset format corresponding to each row;

[0107] The data in each column of the data table are concatenated to obtain intermediate data in a preset format corresponding to each column.

[0108] In some feasible implementations, for each of the above data tables, the intermediate data corresponding to the data table includes intermediate data corresponding to each row;

[0109] The data calculation module 22 is used to:

[0110] Based on the intermediate data corresponding to each row in the data table, determine a cyclic redundancy check value corresponding to each row;

[0111] Based on the cyclic redundancy check values ​​corresponding to each row in the data table, a cyclic redundancy check value corresponding to the data table is determined.

[0112] In some feasible implementations, for each of the above data tables, the above data calculation module 22 is used to:

[0113] Perform a cyclic redundancy check operation on the intermediate data corresponding to each row in the data table to obtain a cyclic redundancy check value corresponding to each row;

[0114] For each row in the data table, a cyclic redundancy check operation is performed on each data in the intermediate data corresponding to the row to obtain a cyclic redundancy check value for each data, an XOR operation is performed on the above cyclic redundancy check values ​​of any two data to obtain an intermediate cyclic redundancy check value, and the following calculation process is repeatedly performed: an XOR operation is performed on the above intermediate cyclic redundancy check value obtained last time and the above cyclic redundancy check value of any remaining data to obtain a current intermediate cyclic redundancy check value; and the above intermediate cyclic redundancy check value finally obtained is determined as the cyclic redundancy check value corresponding to the row.

[0115] In some feasible implementations, for each of the above data tables, the above data calculation module 22 is used to:

[0116] An intermediate cyclic redundancy check value is obtained by performing an XOR operation on the cyclic redundancy check values ​​corresponding to any two rows in the data table, and the following calculation process is repeated: an XOR operation is performed on the intermediate cyclic redundancy check value obtained last time and the cyclic redundancy check value corresponding to any remaining row to obtain a current intermediate cyclic redundancy check value; and the intermediate cyclic redundancy check value finally obtained is determined as the cyclic redundancy check value corresponding to the data table.

[0117] In some feasible implementations, the data calculation module 22 is further used to:

[0118] Determine a cyclic redundancy check value corresponding to each data table in each storage space;

[0119] For each storage space, perform an XOR operation on the cyclic redundancy check values ​​corresponding to any two data tables in the storage space to obtain an intermediate cyclic redundancy check value, and repeat the following calculation process: perform an XOR operation on the intermediate cyclic redundancy check value obtained last time and the cyclic redundancy check value corresponding to any remaining data table to obtain a current intermediate cyclic redundancy check value; determine the intermediate cyclic redundancy check value finally obtained as the cyclic redundancy check value of the data stored in the storage space;

[0120] The data verification module 23 is also used for:

[0121] If the cyclic redundancy check values ​​of the data stored in the first storage space and the data stored in the second storage space are consistent, it is determined that the data stored in the first storage space and the data stored in the second storage space are consistent.

[0122] In some feasible implementations, before determining the cyclic redundancy check values ​​corresponding to the first data table and the second data table, the data calculation module 22 is further used to:

[0123] For each data table, converting the column attribute information of the data table into intermediate data in a preset format, and determining a cyclic redundancy check value corresponding to the column attribute information based on the intermediate data corresponding to the column attribute information;

[0124] The data verification module 23 is also used for:

[0125] If the cyclic redundancy check values ​​corresponding to the column attribute information of the first data table and the second data table are consistent, it is determined that the table structures of the first data table and the second data table are consistent, and the step of determining the cyclic redundancy check values ​​corresponding to the first data table and the second data table is executed.

[0126] In a specific implementation, the above device can execute the above-mentioned functions through its built-in functional modules. Figure 1 For the implementation methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.

[0127] See also Figure 3 , Figure 3 Schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Figure 3As shown, the electronic device 300 in this embodiment may include: a processor 301, a network interface 304 and a memory 305. In addition, the above-mentioned electronic device 300 may also include: a user interface 303, and at least one communication bus 302. Among them, the communication bus 302 is used to realize the connection and communication between these components. Among them, the user interface 303 may include a display screen (Display), a keyboard (Keyboard), and the user interface 303 may optionally include a standard wired interface and a wireless interface. The network interface 304 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 304 may be a high-speed RAM memory, or it may be a non-volatile memory (NVM), such as at least one disk storage. The memory 305 may optionally also be at least one storage device located away from the aforementioned processor 301. As Figure 3 As shown, the memory 305 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0128] exist Figure 3 In the electronic device 300 shown, the network interface 304 can provide a network communication function; the user interface 303 is mainly used to provide an input interface for the user; and the processor 301 can be used to call the device control application stored in the memory 305 to achieve:

[0129] Converting data in a first data table and a second data table into intermediate data in a preset format, wherein the first data table and the second data table are stored in a first storage space and a second storage space respectively;

[0130] For each data table, determining a cyclic redundancy check value corresponding to the data table based on the intermediate data corresponding to the data table;

[0131] If the cyclic redundancy check values ​​corresponding to the first data table and the second data table are consistent, it is determined that the data in the first data table and the data in the second data table are consistent.

[0132] In some feasible implementation manners, for each of the above data tables, the above processor 301 is configured to:

[0133] The data in each row of the data table are concatenated to obtain intermediate data in a preset format corresponding to each row;

[0134] The data in each column of the data table are concatenated to obtain intermediate data in a preset format corresponding to each column.

[0135] In some feasible implementations, for each of the above data tables, the intermediate data corresponding to the data table includes intermediate data corresponding to each row;

[0136] For each data table, the processor 301 is used to:

[0137] Based on the intermediate data corresponding to each row in the data table, determine a cyclic redundancy check value corresponding to each row;

[0138] Based on the cyclic redundancy check values ​​corresponding to each row in the data table, a cyclic redundancy check value corresponding to the data table is determined.

[0139] In some feasible implementation manners, for each of the above data tables, the above processor 301 is configured to:

[0140] Perform a cyclic redundancy check operation on the intermediate data corresponding to each row in the data table to obtain a cyclic redundancy check value corresponding to each row;

[0141] For each row in the data table, a cyclic redundancy check operation is performed on each data in the intermediate data corresponding to the row to obtain a cyclic redundancy check value for each data, an XOR operation is performed on the above cyclic redundancy check values ​​of any two data to obtain an intermediate cyclic redundancy check value, and the following calculation process is repeatedly performed: an XOR operation is performed on the above intermediate cyclic redundancy check value obtained last time and the above cyclic redundancy check value of any remaining data to obtain a current intermediate cyclic redundancy check value; and the above intermediate cyclic redundancy check value finally obtained is determined as the cyclic redundancy check value corresponding to the row.

[0142] In some feasible implementation manners, for each of the above data tables, the above processor 301 is configured to:

[0143] An intermediate cyclic redundancy check value is obtained by performing an XOR operation on the cyclic redundancy check values ​​corresponding to any two rows in the data table, and the following calculation process is repeated: an XOR operation is performed on the intermediate cyclic redundancy check value obtained last time and the cyclic redundancy check value corresponding to any remaining row to obtain a current intermediate cyclic redundancy check value; and the intermediate cyclic redundancy check value finally obtained is determined as the cyclic redundancy check value corresponding to the data table.

[0144] In some feasible implementation manners, for each of the above data tables, the processor 301 is further configured to:

[0145] Determine a cyclic redundancy check value corresponding to each data table in each storage space;

[0146] For each storage space, perform an XOR operation on the cyclic redundancy check values ​​corresponding to any two data tables in the storage space to obtain an intermediate cyclic redundancy check value, and repeat the following calculation process: perform an XOR operation on the intermediate cyclic redundancy check value obtained last time and the cyclic redundancy check value corresponding to any remaining data table to obtain a current intermediate cyclic redundancy check value; determine the intermediate cyclic redundancy check value finally obtained as the cyclic redundancy check value of the data stored in the storage space;

[0147] If the cyclic redundancy check values ​​of the data stored in the first storage space and the data stored in the second storage space are consistent, it is determined that the data stored in the first storage space and the data stored in the second storage space are consistent.

[0148] In some feasible implementations, before determining the cyclic redundancy check values ​​corresponding to the first data table and the second data table, the processor 301 is further configured to:

[0149] For each data table, converting the column attribute information of the data table into intermediate data in a preset format, and determining a cyclic redundancy check value corresponding to the column attribute information based on the intermediate data corresponding to the column attribute information;

[0150] If the cyclic redundancy check values ​​corresponding to the column attribute information of the first data table and the second data table are consistent, it is determined that the table structures of the first data table and the second data table are consistent, and the step of determining the cyclic redundancy check values ​​corresponding to the first data table and the second data table is executed.

[0151] It should be understood that in some feasible implementations, the processor 301 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the type of device.

[0152] In a specific implementation, the electronic device 300 can execute the above-mentioned functions through its built-in functional modules. Figure 1 For the implementation methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.

[0153] The present application also provides a computer-readable storage medium, which stores a computer program and is executed by a processor to implement Figure 1 For the methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.

[0154] The computer-readable storage medium may be an internal storage unit of the device or electronic device provided in any of the aforementioned embodiments, such as a hard disk or memory of an electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the electronic device. The computer-readable storage medium may also include a magnetic disk, an optical disk, a read-only memory (read-only memory, ROM) or a random access memory (random access memory, RAM), etc. Further, the computer-readable storage medium may also include both an internal storage unit of the electronic device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.

[0155] The present invention provides a computer program product, which includes a computer program or a computer instruction. The computer program or the computer instruction is executed by a processor. Figure 1 The methods provided in each step.

[0156] The terms "first", "second", etc. in the claims, specification and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or electronic device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or electronic devices. Mentioning "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. Displaying the phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments. The term "and / or" used in the present application specification and the attached claims refers to any combination of one or more of the items listed in association and all possible combinations, and includes these combinations.

[0157] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0158] The above disclosure is only the preferred embodiment of the present application, which cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A data consistency verification method, characterized in that: The method comprises: Converting data in a first data table and a second data table into intermediate data in a preset format, wherein the first data table and the second data table are stored in a first storage space and a second storage space respectively; For each data table, determining a cyclic redundancy check value corresponding to the data table based on the intermediate data corresponding to the data table; If the cyclic redundancy check values ​​corresponding to the first data table and the second data table are consistent, it is determined that the data in the first data table and the data in the second data table are consistent; The step of determining, for each data table, a cyclic redundancy check value corresponding to the data table based on intermediate data corresponding to the data table includes: For each data table, starting from the second highest order node in the data table, according to the cyclic redundancy check value of the higher order node included in the current order node, the cyclic redundancy check value of the current order node is obtained, and the cyclic redundancy check value of the central node is obtained step by step. The step of obtaining the cyclic redundancy check value of the current-order node according to the cyclic redundancy check value of the higher-order node included in the current-order node comprises: Obtain the cyclic redundancy check value of each higher-order node, select the cyclic redundancy check values ​​of two higher-order nodes, perform an XOR operation on the cyclic redundancy check values ​​of the two selected higher-order nodes to obtain an intermediate cyclic redundancy check value, and then repeat the following calculation process until there is no higher-order node that has not been selected: perform an XOR operation on the intermediate cyclic redundancy check value obtained last time and the cyclic redundancy check value of the higher-order node selected this time to obtain the current intermediate cyclic redundancy check value; determine the final intermediate cyclic redundancy check value as the cyclic redundancy check value of the current-order node; For a data table, the data table is a central node, the next highest order nodes in the data table are batch units in the data table, the batch unit is a column or a row of cells, and the highest order nodes are individual cells.

2. The method according to claim 1, characterized in that For each of the data tables, converting the data in the data table into intermediate data in the preset format includes at least one of the following: The data in each row of the data table are concatenated to obtain intermediate data in a preset format corresponding to each row; The data in each column of the data table are concatenated to obtain intermediate data in a preset format corresponding to each column.

3. The method according to claim 2, characterized in that For each of the data tables, the intermediate data corresponding to the data table includes the intermediate data corresponding to each row; Determining a cyclic redundancy check value corresponding to the data table based on the intermediate data corresponding to the data table includes: Determine a cyclic redundancy check value corresponding to each row based on the intermediate data corresponding to each row in the data table; Based on the cyclic redundancy check values ​​corresponding to each row in the data table, a cyclic redundancy check value corresponding to the data table is determined.

4. The method according to claim 3, characterized in that: For each of the data tables, determining a cyclic redundancy check value corresponding to each row based on the intermediate data corresponding to each row in the data table includes at least one of the following: Perform a cyclic redundancy check operation on the intermediate data corresponding to each row in the data table to obtain a cyclic redundancy check value corresponding to each row; For each row in the data table, a cyclic redundancy check operation is performed on each data in the intermediate data corresponding to the row to obtain a cyclic redundancy check value for each data, an XOR operation is performed on the cyclic redundancy check values ​​of any two data to obtain an intermediate cyclic redundancy check value, and the following calculation process is repeatedly performed: an XOR operation is performed on the intermediate cyclic redundancy check value obtained last time and the cyclic redundancy check value of any remaining data to obtain a current intermediate cyclic redundancy check value; and the intermediate cyclic redundancy check value finally obtained is determined as the cyclic redundancy check value corresponding to the row.

5. The method according to claim 3, characterized in that: For each of the data tables, determining the cyclic redundancy check value corresponding to the data table based on the cyclic redundancy check value corresponding to each row in the data table includes: An intermediate cyclic redundancy check value is obtained by performing an XOR operation on the cyclic redundancy check values ​​corresponding to any two rows in the data table, and the following calculation process is repeatedly performed: an XOR operation is performed on the intermediate cyclic redundancy check value obtained last time and the cyclic redundancy check value corresponding to any remaining row to obtain a current intermediate cyclic redundancy check value; and the above-mentioned intermediate cyclic redundancy check value finally obtained is determined as the cyclic redundancy check value corresponding to the data table.

6. The method according to claim 1, characterized in that The method further comprises: Determine a cyclic redundancy check value corresponding to each data table in each storage space; For each storage space, perform an XOR operation on the cyclic redundancy check values ​​corresponding to any two data tables in the storage space to obtain an intermediate cyclic redundancy check value, and repeat the following calculation process: perform an XOR operation on the intermediate cyclic redundancy check value obtained last time and the cyclic redundancy check value corresponding to any remaining data table to obtain a current intermediate cyclic redundancy check value; determine the intermediate cyclic redundancy check value finally obtained as the cyclic redundancy check value of the data stored in the storage space; If the cyclic redundancy check values ​​of the data stored in the first storage space and the second storage space are consistent, it is determined that the data stored in the first storage space and the second storage space are consistent.

7. The method according to claim 1, characterized in that Before determining the cyclic redundancy check values ​​corresponding to the first data table and the second data table, the method further includes: For each data table, converting the column attribute information of the data table into intermediate data in a preset format, and determining a cyclic redundancy check value corresponding to the column attribute information based on the intermediate data corresponding to the column attribute information; If the cyclic redundancy check values ​​corresponding to the column attribute information of the first data table and the second data table are consistent, it is determined that the table structures of the first data table and the second data table are consistent, and the step of determining the cyclic redundancy check values ​​corresponding to the first data table and the second data table is executed.

8. A data consistency verification device, characterized in that: The device comprises: A data conversion module, used for converting data in a first data table and a second data table into intermediate data in a preset format, wherein the first data table and the second data table are stored in a first storage space and a second storage space respectively; A data calculation module, used for determining, for each data table, a cyclic redundancy check value corresponding to the data table based on intermediate data corresponding to the data table; a data verification module, configured to determine that the data in the first data table and the data in the second data table are consistent if the cyclic redundancy check values ​​corresponding to the first data table and the second data table are consistent; Wherein, the data calculation module is specifically used for: For each data table, starting from the second highest order node in the data table, according to the cyclic redundancy check value of the higher order node included in the current order node, the cyclic redundancy check value of the current order node is obtained, and the cyclic redundancy check value of the central node is obtained step by step. The step of obtaining the cyclic redundancy check value of the current-order node according to the cyclic redundancy check value of the higher-order node included in the current-order node comprises: Obtain the cyclic redundancy check value of each higher-order node, select the cyclic redundancy check values ​​of two higher-order nodes, perform an XOR operation on the cyclic redundancy check values ​​of the two selected higher-order nodes to obtain an intermediate cyclic redundancy check value, and then repeat the following calculation process until there is no higher-order node that has not been selected: perform an XOR operation on the intermediate cyclic redundancy check value obtained last time and the cyclic redundancy check value of the higher-order node selected this time to obtain the current intermediate cyclic redundancy check value; determine the final intermediate cyclic redundancy check value as the cyclic redundancy check value of the current-order node; For a data table, the data table is a central node, the next highest order nodes in the data table are batch units in the data table, the batch unit is a column or a row of cells, and the highest order nodes are individual cells.

9. An electronic device, characterized in that: comprising a processor and a memory, wherein the processor and the memory are connected to each other; The memory is used to store computer programs; The processor is configured to execute the method according to any one of claims 1 to 7 when calling the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data consistency verification method and device, equipment, medium and program product

    CN113312338A