Data processing method and distributed processing system

Through the comparison device of the distributed processing system, combined with the comparison results of the incremental data and the target data set and the comparison results of the source data set, the problem of inaccurate incremental data comparison during data migration is solved and the comparison is improved. accuracy and efficiency of results.

CN114297311BActive Publication Date: 2024-08-23HANGZHOU DT DREAM TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111673185.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2024-08-23
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

During the data migration process, the comparison results between the incremental data and the target data set are inaccurate, leading to misjudgments and low accuracy, mainly because the target data set is not updated in time.

Method used

Using a distributed processing system, the comparison results between the incremental data and the target data set are obtained through the target comparison device, and the comparison results with the source data set are comprehensively judged to generate incremental data between the source data set and the target data. Centralized existence status improves the accuracy of comparison results.

Benefits of technology

It improves the accuracy of the comparison results between the incremental data and the target data set, ensures data consistency, and improves the efficiency of data comparison.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114297311B
    Figure CN114297311B
Patent Text Reader

Abstract

The present specification provides a data processing method and a distributed processing system, the method comprising: a first node obtains incremental data, a source data set and a target data set, and sends the incremental data, the source data set and the target data set to a target comparison device; the target comparison device obtains a first comparison result between the incremental data and the target data set, and obtains a second comparison result between the incremental data and the source data set; wherein the first comparison result indicates whether the incremental data exists in the target data set; the second comparison result indicates whether the incremental data exists in the source data set; the target comparison device generates a first target comparison result corresponding to the incremental data and the target data set based on the first comparison result and the second comparison result; wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set, thereby improving the accuracy of the comparison result between the incremental data and the target data set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present specification relates to the field of database technology, and in particular to a data processing method and a distributed processing system. Background Art

[0002] In the daily operation and maintenance of the database, data migration is often required, that is, migrating the data in the source dataset to the target dataset. When performing data migration, the migration of incremental data is also involved.

[0003] Currently, after the incremental data migration is completed, data comparison is required to verify the consistency of the data, that is, the incremental data is compared with the target data set to determine whether the incremental data exists in the target data set, thereby obtaining a comparison result between the incremental data and the target data set.

[0004] However, the comparison result between the incremental data and the target data set is only determined based on whether the incremental data exists in the target data set. Due to certain reasons (for example, the target data set is not updated in time), it is easy to misjudge that the incremental data does not exist in the target data set, resulting in inaccurate comparison results, thereby causing the accuracy of the determined comparison results to be low. Summary of the invention

[0005] To overcome the problems existing in the related art, this specification provides a data processing method and a distributed processing system.

[0006] According to a first aspect of an embodiment of this specification, there is provided a data processing method, which is applied to a distributed processing system, wherein the distributed processing system includes at least one first node and at least one comparison device;

[0007] The method comprises:

[0008] The first node acquires incremental data, a source data set, and a target data set, and sends the incremental data, the source data set, and the target data set to a target comparison device; wherein the target data set is obtained by migrating the source data set; the incremental data indicates data collected after a preset time; and the target comparison device is one comparison device among all comparison devices;

[0009] The target comparison device obtains a first comparison result between the incremental data and the target data set, and obtains a second comparison result between the incremental data and the source data set; wherein the first comparison result indicates whether the incremental data exists in the target data set; and the second comparison result indicates whether the incremental data exists in the source data set;

[0010] The target comparison device generates a first target comparison result corresponding to the incremental data and the target data set based on the first comparison result and the second comparison result; wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

[0011] The distributed processing system further comprises a filter; the filter stores a first check value corresponding to the target data set; the target comparison device comprises a second node;

[0012] The method further comprises:

[0013] The second node obtains a first check value corresponding to the target data set from the filter, and obtains a second check value corresponding to the incremental data;

[0014] The second node compares the second check value corresponding to the incremental data with the first check value corresponding to the target data set to obtain a first comparison result between the incremental data and the target data set.

[0015] Optionally, the second check value includes a hash value and a message digest value; the first check value includes a hash value; the target comparison device further includes a state storage unit, the state storage unit stores a key-value pair corresponding to the target data in the target data set, the key-value pair including the hash value corresponding to the target data and the message digest value corresponding to the target data;

[0016] The second node compares the second check value corresponding to the incremental data with the first check value corresponding to the target data set to obtain a first comparison result between the incremental data and the target data set, including:

[0017] The second node determines whether there is a hash value corresponding to the incremental data in the hash value corresponding to the target data set;

[0018] If the hash value corresponding to the incremental data does not exist, determining that the first comparison result is a result that the target data set does not have incremental data;

[0019] If there is a hash value corresponding to the incremental data, obtaining a key-value pair whose hash value is the hash value corresponding to the incremental data from the state storage unit, and using the key-value pair whose hash value is the hash value corresponding to the incremental data as the first target key-value pair;

[0020] The first comparison result is determined according to the message digest value in the first target key-value pair and the message digest value corresponding to the incremental data.

[0021] Optionally, the second node determines the first comparison result according to the message digest value in the first target key-value pair and the message digest value corresponding to the incremental data, including:

[0022] The second node determines, in response to the presence of a first target key-value pair whose message digest value is a message digest value corresponding to the incremental data, that the first comparison result is a result that the incremental data and the target data are inconsistent;

[0023] In response to the absence of a first target key-value pair whose message digest value is the message digest value corresponding to the incremental data, it is determined that the first comparison result is a result that the incremental data and the target data are consistent.

[0024] Optionally, the hash value corresponding to the incremental data is generated based on the primary key field information in the incremental data, and the message digest value corresponding to the incremental data is generated based on the target field information in the incremental data and a preset target field arrangement order.

[0025] Optionally, the method further includes:

[0026] The target comparison device obtains the data operation type corresponding to the incremental data;

[0027] When the second comparison result between the incremental data and the source data set is the first preset comparison result and / or the data operation type corresponding to the incremental data is the first preset operation type, the incremental data is compared with the source data set to determine the second comparison result between the incremental data and the source data set; wherein the first preset comparison result includes a result that the incremental data does not exist in the target data set and / or a result that the incremental data is inconsistent with the target data; and the first preset operation type includes an add operation type and / or a modify operation type.

[0028] Optionally, the target comparison device generates a first target comparison result corresponding to the incremental data and the target data set according to the first comparison result and the second comparison result, including:

[0029] The target comparison device determines a comparison result corresponding to the first comparison result and the second comparison result based on a first preset result generation rule, and uses the comparison result corresponding to the first comparison result and the second comparison result as the first target comparison result; wherein the first target comparison result is one of the following: both the source data set and the target data set are missing incremental data, the target data set is missing incremental data and the source data set has incremental data, the source data set and the target data set are inconsistent with the incremental data, and the target data set is inconsistent with the incremental data and the source data set is consistent with the incremental data.

[0030] Optionally, the distributed processing system further includes a message middleware, a comparison result processing device and a result storage database;

[0031] The method further comprises:

[0032] The target comparison device saves the first target comparison result corresponding to the incremental data and the target data set to the message middleware, so that the comparison result processing device updates the result storage database according to the first target comparison result in the message middleware.

[0033] Optionally, the target comparison device further includes a pullback flow generation unit;

[0034] The method further comprises:

[0035] The second node obtains a data operation type corresponding to the incremental data;

[0036] The second node writes the incremental data to the retraction flow generation unit when the first target comparison result is a second preset comparison result and the data operation type is a second preset operation type;

[0037] The retraction flow generation unit generates a deletion message corresponding to the incremental data, and saves the deletion message corresponding to the incremental data to the message middleware, so that the comparison result processing device deletes the incremental data corresponding to the deletion message in the updated result storage database.

[0038] Optionally, the distributed processing system further includes message middleware;

[0039] The method further comprises:

[0040] The second node generates a second target comparison result corresponding to the incremental data and the source data set according to the second comparison result and the data operation type corresponding to the incremental data, and saves the second target comparison result to the message middleware.

[0041] Optionally, the filter further stores a first check value corresponding to the source data set; the state storage unit stores a key-value pair corresponding to the source data in the source data set;

[0042] The method further comprises:

[0043] The second node obtains the first verification value corresponding to the source data set from the filter, and updates the first verification value corresponding to the source data set in the filter and the key-value pair corresponding to the source data in the state storage unit according to the second comparison result and the data operation type corresponding to the incremental data.

[0044] Optionally, the filter further stores a first check value corresponding to the source data set;

[0045] The method further comprises:

[0046] The first node obtains the first data in the source data set, obtains the second data in the target data set, and sends the first data and the second data to the second node; wherein the first data is the source data in the source data set generated before a preset time; the second data is the target data in the target data set generated before a preset time;

[0047] The second node obtains a first check value corresponding to the first data from the filter, and obtains a first check value corresponding to the second data from the filter;

[0048] The second node generates a third target comparison result corresponding to the first data and the second data according to a first verification value corresponding to the first data and a first verification value corresponding to the second data.

[0049] Optionally, the first verification value includes a hash value;

[0050] The first node sending the first data and the second data to the second node includes:

[0051] The first node classifies the first data to obtain at least one first data set, and classifies the second data to obtain at least one second data set; wherein the first data set includes first data with the same hash value, and the second data set includes second data with the same hash value;

[0052] A first data set and a second data set having the same hash value are obtained, and the first data set and the second data set having the same hash value are sent to the second node.

[0053] According to a second aspect of an embodiment of this specification, there is provided a distributed processing system, the distributed processing system comprising at least one first node and at least one comparison device;

[0054] The first node is used to obtain incremental data, a source data set and a target data set, and send the incremental data, the source data set and the target data set to a target comparison device; wherein the target data set is obtained by migrating the source data set; the incremental data indicates data collected after a preset time; and the target comparison device is one comparison device among all comparison devices;

[0055] The target comparison device is used to obtain a first comparison result between the incremental data and the target data set, and to obtain a second comparison result between the incremental data and the source data set; wherein the first comparison result indicates whether the incremental data exists in the target data set; and the second comparison result indicates whether the incremental data exists in the source data set;

[0056] The target comparison device is also used to generate a first target comparison result corresponding to the incremental data and the target data set based on the first comparison result and the second comparison result; wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

[0057] Optionally, the distributed processing system further includes a filter; the filter stores a first check value corresponding to the target data set; the target comparison device includes a second node;

[0058] The second node is further configured to:

[0059] Obtaining a first check value corresponding to the target data set from the filter, and obtaining a second check value corresponding to the incremental data;

[0060] The second check value corresponding to the incremental data is compared with the first check value corresponding to the target data set to obtain a first comparison result between the incremental data and the target data set.

[0061] Optionally, the second check value includes a hash value and a message digest value; the first check value includes a hash value; the target comparison device further includes a state storage unit, the state storage unit stores a key-value pair corresponding to the target data in the target data set, the key-value pair including the hash value corresponding to the target data and the message digest value corresponding to the target data;

[0062] The second node is specifically used for:

[0063] Determine whether the hash value corresponding to the incremental data exists in the hash value corresponding to the target data set;

[0064] If the hash value corresponding to the incremental data does not exist, determining that the first comparison result is a result that the target data set does not have incremental data;

[0065] If there is a hash value corresponding to the incremental data, obtaining a key-value pair whose hash value is the hash value corresponding to the incremental data from the state storage unit, and using the key-value pair whose hash value is the hash value corresponding to the incremental data as the first target key-value pair;

[0066] The first comparison result is determined according to the message digest value in the first target key-value pair and the message digest value corresponding to the incremental data.

[0067] Optionally, the second node is further specifically configured to:

[0068] In response to the existence of a first target key-value pair whose message digest value is the message digest value corresponding to the incremental data, determining that the first comparison result is a result that the incremental data and the target data are inconsistent;

[0069] In response to the absence of a first target key-value pair whose message digest value is the message digest value corresponding to the incremental data, it is determined that the first comparison result is a result that the incremental data and the target data are consistent.

[0070] Optionally, the hash value corresponding to the incremental data is generated based on the primary key field information in the incremental data, and the message digest value corresponding to the incremental data is generated based on the target field information in the incremental data and a preset target field arrangement order.

[0071] Optionally, the target comparison device is further used for:

[0072] The target comparison device obtains the data operation type corresponding to the incremental data;

[0073] When the second comparison result between the incremental data and the source data set is the first preset comparison result and / or the data operation type corresponding to the incremental data is the first preset operation type, the incremental data is compared with the source data set to determine the second comparison result between the incremental data and the source data set; wherein the first preset comparison result includes a result that the incremental data does not exist in the target data set and / or a result that the incremental data is inconsistent with the target data; and the first preset operation type includes an add operation type and / or a modify operation type.

[0074] Optionally, the target comparison device is further specifically used for:

[0075] The target comparison device determines a comparison result corresponding to the first comparison result and the second comparison result based on a first preset result generation rule, and uses the comparison result corresponding to the first comparison result and the second comparison result as the first target comparison result; wherein the first target comparison result is one of the following: both the source data set and the target data set are missing incremental data, the target data set is missing incremental data and the source data set has incremental data, the source data set and the target data set are inconsistent with the incremental data, and the target data set is inconsistent with the incremental data and the source data set is consistent with the incremental data.

[0076] Optionally, the distributed processing system further includes a message middleware, a comparison result processing device and a result storage database;

[0077] The target comparison device is also used for:

[0078] The first target comparison result corresponding to the incremental data and the target data set is saved in the message middleware, so that the comparison result processing device updates the result storage database according to the first target comparison result in the message middleware.

[0079] Optionally, the target comparison device further includes a pullback flow generation unit;

[0080] The second node is further used to obtain the data operation type corresponding to the incremental data;

[0081] The second node is further configured to write the incremental data to the retraction flow generation unit when the first target comparison result is a second preset comparison result and the data operation type is a second preset operation type;

[0082] The rollback flow generation unit is used to generate a deletion message corresponding to the incremental data, and save the deletion message corresponding to the incremental data to the message middleware, so that the comparison result processing device deletes the incremental data corresponding to the deletion message in the updated result storage database.

[0083] Optionally, the distributed processing system further includes message middleware;

[0084] The second node is further configured to:

[0085] The second node generates a second target comparison result corresponding to the incremental data and the source data set according to the second comparison result and the data operation type corresponding to the incremental data, and saves the second target comparison result to the message middleware.

[0086] Optionally, the filter further stores a first check value corresponding to the source data set; the state storage unit stores a key-value pair corresponding to the source data in the source data set;

[0087] The second node is further configured to:

[0088] A first verification value corresponding to the source data set is obtained from the filter, and according to the second comparison result and the data operation type corresponding to the incremental data, the first verification value corresponding to the source data set in the filter and the key-value pair corresponding to the source data in the state storage unit are updated.

[0089] Optionally, the filter further stores a first check value corresponding to the source data set;

[0090] The first node is used to obtain the first data in the source data set, obtain the second data in the target data set, and send the first data and the second data to the second node; wherein the first data is the source data in the source data set generated before the preset time; the second data is the target data in the target data set generated before the preset time;

[0091] The second node is used to obtain a first check value corresponding to the first data from the filter, and obtain a first check value corresponding to the second data from the filter;

[0092] The second node is used to generate a third target comparison result corresponding to the first data and the second data according to a first verification value corresponding to the first data and a first verification value corresponding to the second data.

[0093] Optionally, the first verification value includes a hash value;

[0094] The first node is used to send the first data and the second data to the second node, including:

[0095] The first node classifies the first data to obtain at least one first data set, and classifies the second data to obtain at least one second data set; wherein the first data set includes first data with the same hash value, and the second data set includes second data with the same hash value;

[0096] A first data set and a second data set having the same hash value are obtained, and the first data set and the second data set having the same hash value are sent to the second node.

[0097] According to a third aspect of the embodiments of this specification, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the following method is implemented:

[0098] Acquire incremental data, a source data set, and a target data set, and send the incremental data, the source data set, and the target data set to a target comparison device; wherein the target data set is obtained by migrating the source data set; the incremental data indicates data collected after a preset time; and the target comparison device is one comparison device among all comparison devices;

[0099] or,

[0100] Obtaining a first comparison result between the incremental data and the target data set, and obtaining a second comparison result between the incremental data and the source data set; wherein the first comparison result indicates whether the incremental data exists in the target data set; and the second comparison result indicates whether the incremental data exists in the source data set;

[0101] A first target comparison result corresponding to the incremental data and the target data set is generated according to the first comparison result and the second comparison result; wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

[0102] According to a fourth aspect of an embodiment of this specification, a computer device is provided, including:

[0103] processor;

[0104] a memory for storing processor-executable instructions;

[0105] Wherein, the processor is configured to:

[0106] Acquire incremental data, a source data set and a target data set, and send the incremental data, the source data set and the target data set to a target comparison device; wherein the target data set is obtained by migrating the source data set; the incremental data indicates data collected after a preset time; and the target comparison device is one comparison device among all comparison devices.

[0107] or,

[0108] Obtaining a first comparison result between the incremental data and the target data set, and obtaining a second comparison result between the incremental data and the source data set; wherein the first comparison result indicates whether the incremental data exists in the target data set; and the second comparison result indicates whether the incremental data exists in the source data set;

[0109] A first target comparison result corresponding to the incremental data and the target data set is generated according to the first comparison result and the second comparison result; wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

[0110] According to a fifth aspect of the embodiments of this specification, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the following method is implemented:

[0111] Acquire incremental data, a source data set, and a target data set, and send the incremental data, the source data set, and the target data set to a target comparison device; wherein the target data set is obtained by migrating the source data set; the incremental data indicates data collected after a preset time; and the target comparison device is one comparison device among all comparison devices;

[0112] or,

[0113] Obtaining a first comparison result between the incremental data and the target data set, and obtaining a second comparison result between the incremental data and the source data set; wherein the first comparison result indicates whether the incremental data exists in the target data set; and the second comparison result indicates whether the incremental data exists in the source data set;

[0114] A first target comparison result corresponding to the incremental data and the target data set is generated according to the first comparison result and the second comparison result; wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

[0115] The technical solutions provided by the embodiments of this specification may have the following beneficial effects:

[0116] In the embodiments of the present specification, a distributed processing system is used to perform data comparison, that is, the first node in the distributed processing system sends the incremental data as well as the source data set and the target data set to a comparison device in the distributed processing system, that is, a target comparison device. The target comparison device compares the incremental data with the target data set to determine whether the incremental data exists in the target data set, and obtains a preliminary comparison result between the incremental data and the source data set, that is, a first comparison result, and compares the incremental data with the source data set to determine whether the incremental data exists in the source data set, and obtains a preliminary comparison result between the incremental data and the source data set, that is, a second comparison result. After obtaining the first comparison result and the second comparison result, the first comparison result and the second comparison result are used to comprehensively determine the existence status of the incremental data in the source data set and the target data set, that is, on the basis of the first comparison result, the actual status of the incremental data in the target data set is determined in combination with the second comparison result, and the target comparison result (that is, the first target comparison result) between the incremental data and the target data set is obtained, instead of directly using the first comparison result as the first target comparison result, so as to achieve accurate determination of the comparison result between the incremental data and the target data set, improve the accuracy of the comparison result between the incremental data and the target data set, and use the distributed processing system to perform data comparison, and the target comparison device can perform data comparison at the same time, thereby improving the efficiency of data comparison.

[0117] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

[0118] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.

[0119] Figure 1 It is a flow chart of a data processing method shown in this specification according to an exemplary embodiment.

[0120] Figure 2 It is a flowchart of another data processing method shown in this specification according to an exemplary embodiment.

[0121] Figure 3 It is a structural diagram of a distributed processing system shown in this specification according to an exemplary embodiment.

[0122] Figure 4 It is a flow chart of data comparison shown in this specification according to an exemplary embodiment.

[0123] Figure 5 It is a flowchart of another data comparison shown in this specification according to an exemplary embodiment.

[0124] Figure 6 This specification is a block diagram of a distributed processing system according to an exemplary embodiment. DETAILED DESCRIPTION

[0125] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.

[0126] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0127] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0128] Next, the embodiments of this specification are described in detail.

[0129] like Figure 1 As shown, Figure 1 This is a flowchart of a data processing method according to an exemplary embodiment of the present specification. The method is applied to a distributed processing system, the distributed processing system includes at least one first node and at least one comparison device, and the method includes the following steps:

[0130] Step 101: The first node obtains incremental data, a source data set, and a target data set, and sends the incremental data, the source data set, and the target data set to a target comparison device. The target data set is obtained by migrating the source data set. The incremental data indicates data collected after a preset time. The target comparison device is a comparison device among all comparison devices.

[0131] In this embodiment, due to business impact, there will be deletion, modification and addition of business data, and accordingly, new business data will be obtained, that is, changed business data (for example, deleted business data, modified business data and added business data), that is, incremental data. After obtaining the new business data, the new business data needs to be saved in the source data set in real time.

[0132] In the case of data migration, the source data in the source data set needs to be migrated to the target data set. After the data migration, the target data set needs to be checked for consistency to determine whether the data migration is successful. Accordingly, after the real-time incremental data is collected, the incremental data is saved in the source data set, and the incremental data in the source data set is the target data set. After the data migration, the incremental data needs to be compared in real time, that is, the consistency of the incremental data with the target data set is determined to determine whether the incremental data migration is successful, that is, after the first node obtains the incremental data, it passes the incremental data to the downstream operator, that is, sends it to the target comparison device, so that the target comparison device determines the consistency between the incremental data and the target data set.

[0133] Optionally, the target comparison device includes a second node and a state storage unit. The state storage unit stores key-value pairs corresponding to the target data in the target data set and / or key-value pairs corresponding to the source data in the source data set. The key-value pairs corresponding to the target data include a hash value corresponding to the target data and a message digest value corresponding to the target data. The key-value pairs corresponding to the source data include a hash value corresponding to the source data and a message digest value corresponding to the source data.

[0134] Optionally, when there is only one comparison device, the comparison device may be directly used as the target comparison device. When there are multiple comparison devices, one comparison device may be selected from the comparison devices as the target comparison device.

[0135] Among them, when selecting a target device from the comparison device, a comparison device can be randomly selected and used as the target comparison device, or it can be selected based on a first verification value (for example, a hash value) corresponding to the incremental data, that is, when the hash value in the key-value pair included in the state saving unit in the comparison device is the hash value corresponding to the incremental data, the comparison device is used as the target comparison device.

[0136] Optionally, the first node and the target comparison device may both be computer devices with data processing capabilities, such as a server, a computer, etc. The first node and the target comparison device may be on the same computer device or on different computer devices.

[0137] Optionally, when there are multiple first nodes, the first nodes may be distributed on different devices. Correspondingly, when there are multiple target comparison devices, the target comparison devices may also be distributed on different devices.

[0138] Optionally, the distributed processing system may be a Flink distributed system. Figure 2 As shown, the distributed processing system also includes a message middleware, a comparison result processing device and a result storage database. The message middleware is used to store the comparison results (for example, the first target comparison results). The comparison result processing service is used to consume the message middleware (for example, the comparison results in kafka) and refresh the result storage database according to the comparison results. The result storage database is labeled to record the result database, and the table structure of the data table in the result storage database (for example, the fields included in the data table and the arrangement order of the fields) is the same as the table structure corresponding to the parameter data set. In addition, the table structure of the data table in the storage database also includes a data change type field. For example, the field value corresponding to the data change type field includes one or more of the target data set missing incremental data type, the incremental data newly added type, the target data set and the data in the source data set are inconsistent with the incremental data content.

[0139] Optionally, the source data set may be data in a related database (e.g., a business database), and the target data set may also be data in a related database, which is obtained by migrating the database storing the source data set. Incremental data may be determined based on related logs (e.g., the Flink engine supports CDC data sources, and Mysqlbinlog is used as an incremental data source, i.e., corresponding incremental data is determined based on Mysql binlog).

[0140] Step 102: The target comparison device obtains a first comparison result between the incremental data and the target data set, and obtains a second comparison result between the incremental data and the source data set. The first comparison result indicates whether the incremental data exists in the target data set. The second comparison result indicates whether the incremental data exists in the source data set.

[0141] In this embodiment, for each incremental data, the target comparison device compares the incremental data with the target data set, that is, determines whether the incremental data exists in the target data set, so as to obtain a comparison result between the incremental data and the target data set, that is, a first comparison result, that is, a first comparison result corresponding to the incremental data, and the first comparison result indicates whether the incremental data exists in the target data set.

[0142] In this embodiment, for each incremental data, the target comparison device compares the incremental data with the source data set, that is, determines whether the incremental data exists in the source data set, so as to obtain a comparison result between the incremental data and the source data set, that is, a second comparison result, that is, a second comparison result corresponding to the incremental data, and the second comparison result indicates whether the incremental data exists in the source data set.

[0143] Optionally, the first comparison result corresponding to the incremental data includes one or more of a result that the target data set does not contain the incremental data, a result that the incremental data is inconsistent with the target data, and a result that the incremental data is consistent with the target data.

[0144] Optionally, the second comparison result corresponding to the source data includes one or more of a result that the source data set does not contain incremental data, a result that the incremental data is inconsistent with the source data, and a result that the incremental data is consistent with the source data.

[0145] Step 103: The target comparison device generates a first target comparison result corresponding to the incremental data and the target data set according to the first comparison result and the second comparison result, wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

[0146] In this embodiment, after obtaining the first comparison result corresponding to the incremental data and the second comparison result corresponding to the incremental data, the existence status of the incremental data in the source data set and the target data set is determined based on the first comparison result and the second comparison result, thereby determining the actual existence status of the incremental data in the target data set based on the existence status of the incremental data in the source data set and the target data set, that is, determining the first target comparison result between the incremental data and the target data set, realizing real-time and accurate comparison between the incremental data and the target data set, and ensuring the accuracy of the comparison result.

[0147] As can be seen from the above description, a distributed processing system is used for data comparison, that is, the first node in the distributed processing system sends the incremental data as well as the source data set and the target data set to a comparison device in the distributed processing system, that is, a target comparison device. The target comparison device compares the incremental data with the target data set to determine whether the incremental data exists in the target data set, and obtains a preliminary comparison result between the incremental data and the source data set, that is, a first comparison result, and compares the incremental data with the source data set to determine whether the incremental data exists in the source data set, and obtains a preliminary comparison result between the incremental data and the source data set, that is, a second comparison result. After obtaining the first comparison result and the second comparison result, the first comparison result and the second comparison result are used to comprehensively determine the existence status of the incremental data in the source data set and the target data set, that is, on the basis of the first comparison result, the actual status of the incremental data in the target data set is determined in combination with the second comparison result, and the target comparison result (that is, the first target comparison result) between the incremental data and the target data set is obtained, instead of directly using the first comparison result as the first target comparison result, so as to achieve accurate determination of the comparison result between the incremental data and the target data set, improve the accuracy of the comparison result between the incremental data and the target data set, and use the distributed processing system to perform data comparison, and the target comparison device can perform data comparison at the same time, thereby improving the efficiency of data comparison.

[0148] like Figure 3 As shown, Figure 3 This is a flowchart of another data processing method according to an exemplary embodiment of the present specification. When a first target comparison result corresponding to the incremental data is obtained, the relevant database can be updated based on the first target comparison result to make the content in the database consistent with the content in the target data set. This process will be described in detail below in conjunction with a specific embodiment. Figure 3 As shown, the method comprises the following steps:

[0149] Step 301: The first node obtains incremental data, a source data set, and a target data set, and sends the incremental data, the source data set, and the target data set to a target comparison device. The target data set is obtained by migrating the source data set. The incremental data indicates data collected after a preset time. The target comparison device is a comparison device among all comparison devices.

[0150] In this embodiment, the implementation process of step S301 is similar to the implementation process of the above step S101, and will not be described in detail herein.

[0151] Step 302: The target comparison device obtains a first comparison result between the incremental data and the target data set, and obtains a second comparison result between the incremental data and the source data set. The first comparison result indicates whether the incremental data exists in the target data set. The second comparison result indicates whether the incremental data exists in the source data set.

[0152] In this embodiment, the distributed processing system further includes a filter (e.g., a counting bloom filter). The filter stores a first check value corresponding to the target data set and / or a first check value corresponding to the source data set. The first check value corresponding to the target data set represents a first check value corresponding to each target data in the target data set. The first check value corresponding to the source data set represents a first check value corresponding to each source data in the source data set.

[0153] Optionally, the first check value corresponding to the target data set and the first check value corresponding to the source data set may be stored through different filters. For example, the filter includes a first filter and a second filter, the first filter is used to store the first check value corresponding to the target data set, and the second filter is used to store the first check value corresponding to the source data set. Of course, they may also be stored through the same filter, which is not limited here.

[0154] Optionally, the first verification value includes a hash value. Of course, the first verification value may also include other types of verification values, such as a message digest value, which is not limited here.

[0155] In this embodiment, when determining the first comparison result between the incremental data and the target data set, the second node in the target comparison device obtains the first check value corresponding to the target data set from the filter, and obtains the second check value corresponding to the incremental data. The second node compares the second check value corresponding to the incremental data with the first check value corresponding to the target data set to obtain the first comparison result between the incremental data and the target data set, that is, to obtain the first comparison result corresponding to the incremental data.

[0156] Optionally, the second verification value includes a hash value and a message digest value.

[0157] Optionally, the second node compares the second check value corresponding to the incremental data with the first check value corresponding to the target data set to obtain a first comparison result between the incremental data and the target data set, including:

[0158] The second node determines whether there is a hash value corresponding to the incremental data in the hash value corresponding to the target data set. If there is no hash value corresponding to the incremental data, the first comparison result is determined to be the result that the target data set does not have the incremental data. If there is a hash value corresponding to the incremental data, the key-value pair corresponding to the target data whose hash value is the hash value corresponding to the incremental data is obtained from the state storage unit, and the key-value pair corresponding to the target data whose hash value is the hash value corresponding to the incremental data is used as the first target key-value pair. The first comparison result is determined based on the message digest value in the first target key-value pair and the message digest value corresponding to the incremental data.

[0159] Specifically, for each incremental data, the second node determines whether the hash value corresponding to the target data set is the hash value corresponding to the incremental data, that is, whether there is a target data with the same hash value as the hash value corresponding to the incremental data. If there is no hash value corresponding to the incremental data, it indicates that there is no target data with the same hash value as the hash value corresponding to the incremental data in the target data set, that is, it indicates that there is no target data with the same hash value as the incremental data in the target data set, and then the first comparison result corresponding to the incremental data is determined to be the result that the target data set does not have incremental data. If there is a hash value corresponding to the incremental data, it indicates that there is a target data with the same hash value as the hash value corresponding to the incremental data in the target data set, that is, it indicates that it is necessary to further determine whether there is a target data with the same hash value as the incremental data in the target data set, and then the key-value pair corresponding to the target data with the same hash value as the hash value corresponding to the incremental data is used as the first target key-value pair, that is, the first target key-value pair corresponding to the incremental data, so as to determine whether there is the target data with the same hash value as the incremental data in the target data set based on the message digest value in the first target key-value pair and the message digest value corresponding to the incremental data, that is, determine whether the target data corresponding to the first target key-value pair is the same as the incremental data, thereby determining the first target comparison result corresponding to the incremental data.

[0160] Optionally, the specific process of the second node determining the first comparison result corresponding to the incremental data according to the message digest value in the first target key-value pair and the message digest value corresponding to the incremental data is as follows:

[0161] In response to the existence of a first target key-value pair whose message digest value is the message digest value corresponding to the incremental data, the second node determines that the first comparison result is a result that the incremental data and the target data are inconsistent. In response to the absence of a first target key-value pair whose message digest value is the message digest value corresponding to the incremental data, the second node determines that the first comparison result is a result that the incremental data and the target data are consistent.

[0162] Specifically, determine whether there is a first target key-value pair whose message digest value is the message digest value corresponding to the incremental data. In response to the absence of a first target key-value pair whose message digest value is the message digest value corresponding to the incremental data, that is, indicating that the message digest value in each first target key-value pair corresponding to the incremental data is different from the message digest value corresponding to the incremental data, that is, indicating that there is no target data identical to the incremental data, then the first comparison result corresponding to the incremental data is determined to be a result of inconsistency between the incremental data and the target data. In response to the existence of a first target key-value pair whose message digest value is the message digest value corresponding to the incremental data, that is, indicating that there is a first target key-value pair whose message digest value is the same as the message digest value corresponding to the incremental data, that is, indicating that there is target data identical to the incremental data, that is, indicating that the incremental data exists in the target data set, then the first comparison result corresponding to the incremental data is determined to be a result of consistency between the incremental data and the target data.

[0163] Optionally, the hash value corresponding to the incremental data is generated based on the incremental data. Each incremental data is composed of multiple field information (i.e., field name and field value corresponding to the field name). Specifically, the hash value corresponding to the incremental data is generated based on the primary key field information in the incremental data. Of course, the hash value can also be generated based on other field information in the incremental data. Here, there is no restriction on it. Similarly, the method for determining the hash value corresponding to the target data and the hash value corresponding to the source data is the same as the method for determining the hash value corresponding to the incremental data. For example, the hash value corresponding to the target data is generated based on the primary key field information in the target data, and the hash value corresponding to the source data is generated based on the primary key field information in the source data.

[0164] The primary key field information includes the primary key field name and the corresponding field value, i.e., the primary key field value. Accordingly, in the process of generating the hash value corresponding to the incremental data based on the primary key field information in the incremental data, the hash value corresponding to the incremental data is determined based on the preset hash algorithm and the primary key field value in the incremental data.

[0165] Optionally, the message digest value corresponding to the incremental data is generated based on the incremental data. Specifically, the message digest value corresponding to the incremental data is generated based on specific fields in the incremental data, namely, the target field information and the preset target field arrangement order. Similarly, the message digest value corresponding to the target data and the message digest value corresponding to the metadata are determined in the same manner as the message digest value corresponding to the incremental data. For example, the message digest value corresponding to the target data is determined based on the target field information in the target data, and the message digest value corresponding to the source data is determined based on the target field information in the source data.

[0166] Among them, the target field information includes at least one pre-set field, namely the target field and the corresponding field value, namely the target field value. The preset target field arrangement order represents the arrangement order of the set target fields when calculating the message digest value. Accordingly, when calculating the message digest value corresponding to the incremental data, the field value corresponding to the target field is extracted from the incremental data to obtain the target field value. According to the preset target field arrangement order, the target field values ​​are sorted, and based on the preset message digest algorithm (for example, the MD5 message digest algorithm) and the sorted target field value, the message digest value corresponding to the incremental data is obtained.

[0167] Optionally, when determining the second comparison result between the incremental data and the source data set, the second node obtains the first check value corresponding to the source data set from the filter, and obtains the second check value corresponding to the incremental data. The second node compares the second check value corresponding to the incremental data with the first check value corresponding to the source data set to obtain the second comparison result between the incremental data and the source data set, that is, obtains the second comparison result corresponding to the incremental data.

[0168] Optionally, the second node compares the second check value corresponding to the incremental data with the first check value corresponding to the source data set to obtain a second comparison result between the incremental data and the source data set, including:

[0169] The second node determines whether there is a hash value corresponding to the incremental data in the hash value corresponding to the source data set. If there is no hash value corresponding to the incremental data, the second comparison result is determined to be the result that the source data set does not have the incremental data, that is, the second comparison result corresponding to the incremental data is determined to be the result that the source data set does not have the incremental data. If there is a hash value corresponding to the incremental data, the key-value pair corresponding to the source data whose hash value is the hash value corresponding to the incremental data is obtained from the state preservation unit, and the key-value pair corresponding to the source data whose hash value is the hash value corresponding to the incremental data is used as the second target key-value pair, that is, the second target key-value pair corresponding to the incremental data. The second comparison result is determined based on the message digest value in the second target key-value pair and the message digest value corresponding to the incremental data, that is, the second comparison result corresponding to the incremental data.

[0170] Optionally, the specific process of the second node determining the second comparison result according to the message digest value in the second target key-value pair and the message digest value corresponding to the incremental data is as follows:

[0171] In response to the existence of the second target key-value pair whose message digest value is the message digest value corresponding to the incremental data, indicating that the source data set contains source data identical to the incremental data, the second node determines that the second comparison result is a result that the incremental data and the source data are consistent. In response to the absence of the first target key-value pair whose message digest value is the message digest value corresponding to the incremental data, indicating that the source data set contains source data identical to the incremental data, the second node determines that the second comparison result is a result that the incremental data and the source data are inconsistent.

[0172] Among them, the process of determining the second comparison result corresponding to the incremental data based on the message digest value and hash value corresponding to the incremental data is similar to the above-mentioned process of determining the first comparison result corresponding to the incremental data based on the message digest value and hash value corresponding to the incremental data, and will not be repeated here.

[0173] Optionally, before determining the second comparison result corresponding to the incremental data, it is necessary to first use the data operation type corresponding to the incremental data to determine whether it is necessary to use the comparison result between the incremental data and the source data set, that is, the second comparison result determines the first target comparison result corresponding to the incremental data. The specific process is: the target comparison device obtains the data operation type corresponding to the incremental data. When the second comparison result between the incremental data and the source data set is the first preset comparison result and / or the data operation type corresponding to the incremental data is the first preset operation type, the incremental data is compared with the source data set to determine the second comparison result between the incremental data and the source data set. Among them, the first preset comparison result includes the result that the incremental data does not exist in the target data set and / or the result that the incremental data is inconsistent with the target data. The first preset operation type includes adding an operation type and / or modifying an operation type.

[0174] Among them, the data operation type corresponding to the incremental data indicates the type of data change, that is, it indicates the type of operation performed to obtain the incremental data. Specifically, the data operation types corresponding to the incremental data include add operation type, modify operation type and delete operation type. Among them, when the data operation type corresponding to the incremental data is an add operation type, it indicates that the incremental data is newly added business data; when the data operation type corresponding to the incremental data is a modify operation type, it indicates that the incremental data is obtained by modifying the original business data (that is, the existing business data in the source data set and the target data set). When the data operation type corresponding to the incremental data is a delete operation type, it indicates that the incremental data needs to be deleted.

[0175] Specifically, for each incremental data, when it is determined that the first comparison result corresponding to the incremental data is the first preset comparison result, that is, the first comparison result is that the incremental data does not exist in the target data set or the incremental data is inconsistent with the target data, indicating that there is no target data in the target data set that is consistent with the incremental data, that is, the same target data, if the data operation type corresponding to the incremental data is a modification operation type or an addition operation type, indicating that there must be target data in the target data set that is the same as the incremental data, then it is necessary to determine a second comparison result between the incremental data and the source data, so as to use the second comparison result to further determine the actual existence status of the incremental data in the target data set.

[0176] Optionally, if the data operation type corresponding to the incremental data is a deletion operation type, indicating that there is no need for target data identical to the incremental data to exist in the target data set, then there is no need to determine the second comparison result between the incremental data and the source data.

[0177] Optionally, when it is determined that the first comparison result corresponding to the incremental data is the first preset comparison result, and the data operation type corresponding to the incremental data is a deletion operation type, the first comparison result can be used as the first target comparison result corresponding to the incremental data. In addition, the first target comparison result can also include the data operation type corresponding to the incremental data to indicate that the reason why the target data set is inconsistent with the incremental data is because the incremental data is deleted.

[0178] Optionally, the first check value in the filter and the key-value pair corresponding to the target data set in the state preservation unit can also be updated according to the second check value corresponding to the incremental data and the data operation type corresponding to the incremental data, so that accurate data comparison can be performed later. The update process is specifically as follows: when the hash value corresponding to the target data set does not exist in the hash value corresponding to the incremental data, and the data operation type corresponding to the incremental data is not a deletion operation type, the hash value corresponding to the target data set in the filter is updated, and the key-value pair corresponding to the target data set in the state preservation unit is updated. When the hash value corresponding to the incremental data exists in the hash value corresponding to the target data set, the key-value pair corresponding to the incremental data does not exist in the key-value pair corresponding to the target data set, and the data operation type corresponding to the incremental data is not a deletion operation type, the key-value pair corresponding to the target data set in the state preservation unit is updated.

[0179] Optionally, when there is a hash value corresponding to the incremental data in the hash value corresponding to the target data set, there is a key-value pair corresponding to the incremental data in the key-value pair corresponding to the target data set, and the data operation type corresponding to the incremental data is a deletion operation type, the number of first hash values ​​corresponding to the target data set in the filter can be reduced, and the first key-value pair corresponding to the target data set in the state storage unit can be deleted or the message digest value in the first key-value pair can be updated to a null value. The first hash value is the hash value corresponding to the incremental data, and the first key-value pair is the key-value pair corresponding to the incremental data.

[0180] When the hash value corresponding to the target data set in the filter is updated, the hash value corresponding to the incremental data may be added to the hash value corresponding to the target data set, that is, the hash value corresponding to the incremental data may be used as the new hash value corresponding to the target data set.

[0181] Among them, when the key-value pair corresponding to the target data set in the state preservation unit is updated, the key-value pair corresponding to the incremental data can be added to the key-value pair corresponding to the target data set, that is, the key-value pair corresponding to the incremental data can be used as the new key-value pair corresponding to the target data set, or the key-value pair whose hash value corresponding to the target data set is the hash value corresponding to the incremental data can be modified, that is, the message digest value in the key-value pair is updated to the message digest value corresponding to the incremental data.

[0182] Step 303: The target comparison device generates a first target comparison result corresponding to the incremental data and the target data set according to the first comparison result and the second comparison result, wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

[0183] In this embodiment, the target comparison device determines the comparison result corresponding to the first comparison result and the second comparison result based on the first preset result generation rule, and uses the comparison result corresponding to the first comparison result and the second comparison result as the first target comparison result. The first target comparison result is a result that both the source data set and the target data set lack incremental data and / or a result that the target data set lacks incremental data and the source data set has incremental data.

[0184] Specifically, after obtaining the first comparison result and the second comparison result corresponding to the incremental data, the target comparison device, i.e., the second node, uses the first preset result generation rule to determine the first comparison result corresponding to the incremental data and the target comparison result corresponding to the second comparison result corresponding to the incremental data, and uses the target comparison result as the first target comparison result. The first preset result generation rule indicates the mapping relationship between the initial comparison result and the target comparison result.

[0185] Specifically, when the first comparison result corresponding to the incremental data is that the target data set does not contain the incremental data result or the incremental data is inconsistent with the target data, and the second comparison result corresponding to the incremental data is that the source data set does not contain the incremental data result or the incremental data is inconsistent with the source data, it indicates that the incremental data is different from both the target data set and the source data set, that is, the incremental data does not exist in the source data set, the target data set and the source data set, and the incremental data is not successfully added to the source data set, then it is determined that the first target comparison result corresponding to the incremental data is that both the source data set and the target data set are missing the incremental data result.

[0186] When the first comparison result corresponding to the incremental data is that the target data set does not have the incremental data result or the incremental data is inconsistent with the target data, and the second comparison result corresponding to the incremental data is that the incremental data is consistent with the source data, it indicates that the target data set does not have the same target data as the incremental data, but the source data corresponding to the incremental data exists in the source data set, then it is determined that the first target comparison result is that the target data set lacks the incremental data and the source data set has the incremental data result. Since the target data in the target data set is migrated from the source data set, when the incremental data exists in the source data set, the target data set actually also has the incremental data. Therefore, the first target comparison result indicates that the incremental data actually exists in the target data set. It may be because the target data set has not been updated, resulting in the first comparison result that the target data set does not have the incremental data result or the incremental data is inconsistent with the target data.

[0187] Step 304: the target comparison device saves the first target comparison result corresponding to the incremental data and the target data set to the message middleware, so that the comparison result processing device updates the result storage database according to the first target comparison result in the message middleware.

[0188] In this embodiment, if Figure 4 As shown, after obtaining the first target comparison result, the first target comparison result can also be written into the message middleware, so that the comparison result processing device, that is, the comparison result processing service consumes the first target comparison result from the message middleware, and based on the first target comparison result, the result storage database is updated accordingly, so that the data in the result storage database is consistent with the target data set, so that the result storage database can be used to perform corresponding operations later. For example, when the database that stores the target data loses the target data, the result storage database can be used to recover its data.

[0189] Optionally, in the process of updating the result storage database based on the first target comparison result corresponding to the incremental data, if the first target comparison result is that both the source data set and the target data set lack the incremental data result, or the target data set lacks the incremental data and the source data set has the incremental data result, the incremental data is saved in the result storage database. In addition, the field value corresponding to the data change type field corresponding to the incremental data can also be determined based on the data operation type corresponding to the incremental data. For example, when the first target comparison result is that both the source data set and the target data set lack the incremental data result, and the data change type corresponding to the incremental data is an increase operation type, indicating that the incremental data is newly added business data, then the field value corresponding to the data change type field corresponding to the incremental data is determined to be the incremental data new type.

[0190] Optionally, the target comparison device further includes a withdrawal flow generation unit (such as Figure 2 As shown in the recall flow generation unit). Since the data in the target data set, i.e., the target data, has a certain data delay, therefore, when the changed data in the source data set, i.e., the incremental data, has been migrated to the target data set, but the target data set has not been refreshed, resulting in the target data set missing the incremental data, after the incremental data is written to the result storage database based on the first target comparison result corresponding to the incremental data, redundant data, i.e., the incremental data, exists in the result storage database. Therefore, the redundant incremental data in the result storage database needs to be recalled, i.e., deleted.

[0191] The specific process of retracting the redundant incremental data in the result storage database is as follows: the second node obtains the data operation type corresponding to the incremental data. When the first target comparison result is the second preset comparison result and the data operation type is the second preset operation type, the second node writes the incremental data to the retraction flow generation unit. The retraction flow generation unit generates a deletion message corresponding to the incremental data, and saves the deletion message corresponding to the incremental data to the message middleware, so that the comparison result processing device deletes the incremental data corresponding to the deletion message in the updated result storage database.

[0192] Specifically, when it is determined that the first target comparison result corresponding to the incremental data is the second preset comparison result and the data operation type corresponding to the incremental data is the second preset operation type, it indicates that the target data set is inconsistent with the incremental data because the target data set has not been refreshed, and the incremental data in the result storage database is redundant and needs to be deleted, then the incremental data is written to the retraction flow generation unit, the retraction flow generation unit generates a deletion message corresponding to the incremental data, and saves the deletion message corresponding to the incremental data to the message middleware. The comparison result processing device deletes the incremental data in the result storage database.

[0193] Among them, the second preset comparison result and the corresponding second preset operation type can be set according to actual conditions. For example, the second preset comparison result is that the target data set lacks incremental data and the source data set has incremental data results, and the second preset operation type includes an add operation type and / or a modify operation type. In the case where the first target comparison result corresponding to the incremental data is that the target data set lacks incremental data and the source data set has incremental data results, and the data operation type corresponding to the incremental data is an add operation type or a modify operation type, a deletion message corresponding to the incremental data is generated so that the comparison result processing device deletes the incremental data corresponding to the deletion message from the updated result storage database to ensure data consistency.

[0194] Optionally, the second preset comparison result may also be that there is incremental data in the target data set and the source data is missing the incremental data result. Accordingly, the second preset operation type is a deletion operation type, indicating that since the target data set has not been refreshed, the corresponding incremental data in the target data set is still in existence. At this time, the incremental data in the updated result storage database needs to be deleted, and a deletion message corresponding to the incremental data is generated, so that the comparison result processing device deletes the incremental data corresponding to the deletion message in the result storage database based on the deletion message.

[0195] Optionally, the data consistency between the incremental data and the source data set can also be determined based on the source data set perspective, that is, the target comparison result corresponding to the incremental data and the source data set is determined, that is, the second target comparison result. The specific process includes: the second node generates the second target comparison result corresponding to the incremental data and the source data set according to the second comparison result and the data operation type corresponding to the incremental data, and saves the second target comparison result to the message middleware.

[0196] Specifically, for each incremental data, the target comparison device, i.e., the second node in the target comparison device, after obtaining the second comparison result between the source data set and the incremental data, i.e., the initial comparison result, determines the second target comparison result corresponding to the incremental data and the source data set, i.e., the second target comparison result corresponding to the incremental data, in combination with the data operation type corresponding to the incremental data. After obtaining the second target comparison result corresponding to the incremental data, the second target comparison result can also be saved to the message middleware, so that the comparison result processing device can update the result storage database based on the second target comparison result corresponding to the incremental data.

[0197] Among them, when determining the second target comparison result corresponding to the incremental data, the second comparison result corresponding to the incremental data and the target comparison result corresponding to the data operation type can be determined based on the second preset result generation rule, and the target comparison result is used as the second target comparison result corresponding to the incremental data. Specifically, when the second comparison result corresponding to the incremental data is that the source data set does not have the incremental data result or the incremental data is inconsistent with the source data, and the data operation type corresponding to the incremental data is not a deletion operation type, the second target comparison result corresponding to the incremental data is determined to be the incremental data result that the source data is missing.

[0198] Optional, such as Figure 5 As shown, when the second comparison result corresponding to the incremental data is a result that the incremental data is consistent with the source data, and the data operation type corresponding to the incremental data is a deletion operation type, the incremental data is marked as redundant data, that is, the second target comparison result corresponding to the incremental data is determined to be a redundant result of incremental data, and it is written into the message middleware, so that the comparison result processing device updates the result storage database based on the second target comparison result.

[0199] Optionally, the first verification value corresponding to the source data set, that is, the hash value, and the key-value pair corresponding to the source data can be updated based on the second comparison result corresponding to the incremental data and the data operation type corresponding to the incremental data. That is, the second node obtains the first verification value corresponding to the source data set from the filter, and updates the first verification value corresponding to the source data set in the filter and the key-value pair corresponding to the source data in the state storage unit according to the second comparison result and the data operation type corresponding to the incremental data.

[0200] Specifically, for each incremental data, when the data operation type corresponding to the incremental data is an add operation type, the hash value corresponding to the incremental data is added to the first verification value corresponding to the source data set in the filter, that is, the hash value corresponding to the incremental data is used as the new verification value corresponding to the source data set.

[0201] In the case where the data operation type corresponding to the incremental data is a delete operation type, the number of second target hash values ​​corresponding to the source data set in the filter is reduced, that is, the count is reduced once, and the second target key-value pair corresponding to the source data set in the state storage unit is deleted or the message digest value in the second target key-value pair is updated to a null value. The second target hash value is the hash value corresponding to the incremental data, and the second target key-value pair is the key-value pair corresponding to the incremental data.

[0202] When the data operation type corresponding to the incremental data is a modification operation type, the key-value pair corresponding to the source data in the state storage unit is updated.

[0203] Optionally, when updating the key-value pair corresponding to the source data, the key-value pair corresponding to the incremental data can be added to the key-value pair corresponding to the source data set, that is, the key-value pair corresponding to the incremental data can be used as the key-value pair corresponding to the source data set; or the key-value pair whose hash value corresponds to the source data set is the hash value corresponding to the incremental data can be modified, that is, the message digest value in the key-value pair can be updated to the message digest value corresponding to the incremental data.

[0204] Optionally, the historical data in the source data set and the target data set can also be compared to determine the data consistency of the historical data. The comparison process of the historical data is as follows: the first node obtains the first data in the source data set, obtains the second data in the target data set, and sends the first data and the second data to the second node. Among them, the first data is the source data in the source data set whose generation time is before the preset time. The second data is the target data in the target data set whose generation time is before the preset time. The second node obtains the first verification value corresponding to the first data from the filter, and obtains the first verification value corresponding to the second data from the filter. The second node generates a third target comparison result corresponding to the first data and the second data based on the first verification value corresponding to the first data and the first verification value corresponding to the second data.

[0205] Specifically, the first node obtains historical data in the source data set, and uses the historical data as the first data in the target data set. The historical data in the target data set is obtained, and the historical data is used as the second data in the target data set. The second data is obtained by migrating the first data. The first data represents the source data in the source data set whose generation time is before the preset time, that is, the business data collected before the preset time. Correspondingly, the second data represents the target data in the target data set whose generation time is before the preset time.

[0206] After obtaining the first data and the second data, it is necessary to verify the consistency between the two. The target comparison device compares the first data and the second data it receives, that is, obtains the first verification value corresponding to the first data and the first verification value corresponding to the second data from the filter, and determines the comparison result between the first data and the second data based on the first verification value corresponding to the first data and the first verification value corresponding to the second data, and uses the comparison result as the third target comparison result corresponding to the first data and the second data.

[0207] Optionally, the first check value includes a hash value. Accordingly, the process of determining the third target comparison result is: for each first data, determine whether there is a hash value corresponding to the first data among all the hash values ​​corresponding to the second data, that is, determine whether there is second data with a hash value corresponding to the hash value of the first data.

[0208] If there is no second data whose hash value is the hash value corresponding to the first data, the third target comparison result corresponding to the first data is determined to be the result that the target data set is missing the first data. If there is a second data whose hash value is the hash value corresponding to the first data, the second data with the same hash value as the first data is used as the third target data, and the key-value pair corresponding to each third target data and the key-value pair corresponding to the first data are obtained. Determine whether there is third target data corresponding to the key-value pair corresponding to the first data, that is, determine whether there is third target data whose message digest value is the message digest value corresponding to the first data. If so, determine that the first data exists in the target data set, that is, determine that the third target comparison result corresponding to the first data and the second data is consistent with the target data set and the first data, that is, determine that the third target comparison result corresponding to the first data is consistent with the target data set and the first data. If not, determine that the third target comparison result corresponding to the first data is inconsistent with the first data.

[0209] Optionally, after obtaining the third target comparison result corresponding to the first data, the third target comparison result can be saved in the message middleware, so that the comparison result processing device obtains the third target comparison result from the message middleware and updates the result storage database accordingly based on the third target comparison result.

[0210] The process of updating the result storage database based on the third target comparison result is similar to the process of updating the result storage database based on the first target comparison result, and will not be described in detail here.

[0211] Optionally, when saving the third target comparison result to the message middleware, only the third target comparison result that is an inconsistent result between the target data set and the first data and the result that the target data set is missing the first data can be saved, that is, when the third target comparison result corresponding to the first data is an inconsistent result between the target data set and the first data or the target data set is missing the first data, the third target comparison result corresponding to the first data is saved in the message middleware.

[0212] Optionally, in order to improve the efficiency of data comparison, the same second node can be used to process the first data and the second data with the same hash value. Therefore, the first node needs to distribute the first data / second data with the same hash value to the same downstream computing node, that is, the second node. The specific process includes: the first node classifies the first data to obtain at least one first data set, and classifies the second data to obtain at least one second data set. The first data set includes the first data with the same hash value, and the second data set includes the second data with the same hash value. The first data set and the second data set with the same hash value are obtained, and the first data set and the second data set with the same hash value are sent to the second node.

[0213] Specifically, after calculating the hash value corresponding to the first data and the hash value corresponding to the second data, the first node uses the first data with the same hash value as a first data set, that is, the hash value of the first data included in the first data set is the same, and uses the second data with the same hash value as a second data set, that is, the hash value of the second data included in the second data set is the same. The first data set and the second data set with the same hash value are sent to the second node. The second node compares the received first data set and the second data set, and determines the third target comparison result corresponding to the first data in the first data set, so as to achieve rapid data comparison.

[0214] Optionally, when the target comparison device restarts abnormally, the corresponding filter can be initialized.

[0215] Optionally, the source dataset and the target dataset may be updated accordingly according to the determined target comparison results (eg, the first target comparison result, the second target comparison result, and the third target comparison result) to ensure consistency between the source dataset and the target dataset.

[0216] In this embodiment, the concurrency of the operator can be set, that is, the number of second nodes that perform data comparison at the same time, and the data can be scattered according to the hash value of the primary key field to assign the same primary key to the same second node, so that the second node can quickly perform data comparison, thereby improving the efficiency of data comparison.

[0217] In this embodiment, after obtaining the first target comparison result corresponding to the incremental data and the target data set, that is, the first target comparison result corresponding to the incremental data, the first target comparison result corresponding to the incremental data is saved to the message middleware, so that the relevant comparison result processing device can process the first target comparison result in time, that is, based on the first target comparison result, the result storage database is updated accordingly, so that the data in the result storage database is consistent with the target data set, so as to facilitate subsequent data recovery and other operations.

[0218] Corresponding to the embodiments of the aforementioned method, this specification also provides embodiments of a device and a terminal to which it is applied.

[0219] like Figure 6 As shown, Figure 6 is a block diagram of a distributed processing system according to an exemplary embodiment of the present specification, the distributed processing system includes at least one first node 610 and at least one comparison device 620;

[0220] The first node 610 is used to obtain incremental data, a source data set and a target data set, and send the incremental data, the source data set and the target data set to a target comparison device 620. The target data set is obtained by migrating the source data set. The incremental data indicates data collected after a preset time. The target comparison device 620 is a comparison device among all comparison devices.

[0221] The target comparison device 620 is used to obtain a first comparison result between the incremental data and the target data set, and to obtain a second comparison result between the incremental data and the source data set. The first comparison result indicates whether the incremental data exists in the target data set. The second comparison result indicates whether the incremental data exists in the source data set.

[0222] The target comparison device 620 is further configured to generate a first target comparison result corresponding to the incremental data and the target data set according to the first comparison result and the second comparison result, wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

[0223] Optionally, the distributed processing system further comprises a filter. The filter stores a first check value corresponding to the target data set. The target comparison device 620 comprises a second node.

[0224] The second node is also used to:

[0225] A first check value corresponding to the target data set is obtained from the filter, and a second check value corresponding to the incremental data is obtained.

[0226] The second check value corresponding to the incremental data is compared with the first check value corresponding to the target data set to obtain a first comparison result between the incremental data and the target data set.

[0227] Optionally, the second check value includes a hash value and a message digest value. The first check value includes a hash value. The target comparison device 620 also includes a state storage unit, which stores a key-value pair corresponding to the target data in the target data set, and the key-value pair includes a hash value corresponding to the target data and a message digest value corresponding to the target data.

[0228] The second node is specifically used for:

[0229] Determine whether the hash value corresponding to the incremental data exists in the hash value corresponding to the target data set.

[0230] If there is no hash value corresponding to the incremental data, it is determined that the first comparison result is that there is no incremental data result in the target data set.

[0231] If there is a hash value corresponding to the incremental data, a key-value pair whose hash value is the hash value corresponding to the incremental data is obtained from the state storage unit, and the key-value pair whose hash value is the hash value corresponding to the incremental data is used as the first target key-value pair.

[0232] A first comparison result is determined according to the message digest value in the first target key-value pair and the message digest value corresponding to the incremental data.

[0233] Optionally, the second node is further specifically used for:

[0234] In response to the existence of a first target key-value pair whose message digest value is the message digest value corresponding to the incremental data, it is determined that the first comparison result is a result that the incremental data and the target data are inconsistent.

[0235] In response to the absence of a first target key-value pair whose message digest value is the message digest value corresponding to the incremental data, it is determined that the first comparison result is a result that the incremental data and the target data are consistent.

[0236] Optionally, the hash value corresponding to the incremental data is generated based on the primary key field information in the incremental data, and the message digest value corresponding to the incremental data is generated based on the target field information in the incremental data and a preset target field arrangement order.

[0237] Optionally, the target comparison device 620 is further used for:

[0238] The target comparison device 620 obtains the data operation type corresponding to the incremental data.

[0239] When the second comparison result between the incremental data and the source data set is the first preset comparison result and / or the data operation type corresponding to the incremental data is the first preset operation type, the incremental data is compared with the source data set to determine the second comparison result between the incremental data and the source data set. The first preset comparison result includes a result that the target data set does not have the incremental data and / or a result that the incremental data is inconsistent with the target data. The first preset operation type includes an add operation type and / or a modify operation type.

[0240] Optionally, the target comparison device 620 is further specifically used for:

[0241] The target comparison device 620 determines the comparison result corresponding to the first comparison result and the second comparison result based on the first preset result generation rule, and uses the comparison result corresponding to the first comparison result and the second comparison result as the first target comparison result. The first target comparison result is one of the following: both the source data set and the target data set lack incremental data, the target data set lacks incremental data and the source data set has incremental data, the source data set and the target data set are inconsistent with the incremental data, and the target data set is inconsistent with the incremental data and the source data set is consistent with the incremental data.

[0242] Optionally, the distributed processing system also includes a message middleware, a comparison result processing device and a result storage database.

[0243] The target comparison device 620 is also used for:

[0244] The first target comparison result corresponding to the incremental data and the target data set is saved to the message middleware, so that the comparison result processing device updates the result storage database according to the first target comparison result in the message middleware.

[0245] Optionally, the target comparison device 620 further includes a pullback flow generation unit.

[0246] The second node is also used to obtain the data operation type corresponding to the incremental data.

[0247] The second node is further configured to write the incremental data to the rollback flow generation unit when the first target comparison result is the second preset comparison result and the data operation type is the second preset operation type.

[0248] The rollback flow generation unit is used to generate a deletion message corresponding to the incremental data, and save the deletion message corresponding to the incremental data to the message middleware, so that the comparison result processing device deletes the incremental data corresponding to the deletion message in the updated result storage database.

[0249] Optionally, the distributed processing system also includes message middleware.

[0250] The second node is also used to:

[0251] The second node generates a second target comparison result corresponding to the incremental data and the source data set according to the second comparison result and the data operation type corresponding to the incremental data, and saves the second target comparison result to the message middleware.

[0252] Optionally, the filter further stores a first check value corresponding to the source data set. The state storage unit stores a key-value pair corresponding to the source data in the source data set.

[0253] The second node is also used to:

[0254] A first check value corresponding to the source data set is obtained from the filter, and according to the second comparison result and the data operation type corresponding to the incremental data, the first check value corresponding to the source data set in the filter and the key-value pair corresponding to the source data in the state storage unit are updated.

[0255] Optionally, the filter also stores a first check value corresponding to the source data set.

[0256] The first node 610 is used to obtain first data in the source data set, obtain second data in the target data set, and send the first data and the second data to the second node. The first data is the source data in the source data set whose generation time is before the preset time. The second data is the target data in the target data set whose generation time is before the preset time.

[0257] The second node is used to obtain the first check value corresponding to the first data from the filter, and obtain the first check value corresponding to the second data from the filter.

[0258] The second node is used to generate a third target comparison result corresponding to the first data and the second data according to the first verification value corresponding to the first data and the first verification value corresponding to the second data.

[0259] Optionally, the first check value includes a hash value.

[0260] The first node 610 is configured to send the first data and the second data to the second node, including:

[0261] The first node 610 classifies the first data to obtain at least one first data set, and classifies the second data to obtain at least one second data set, wherein the first data set includes first data with the same hash value, and the second data set includes second data with the same hash value.

[0262] A first data set and a second data set having the same hash value are obtained, and the first data set and the second data set having the same hash value are sent to the second node.

[0263] The implementation process of the functions and effects of each device in the above-mentioned distributed processing system is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

[0264] Corresponding to the embodiments of the aforementioned method, this specification also provides an embodiment of a computer device used by the first node or the comparison device.

[0265] The embodiment of the present specification also provides a computer device, the computer device includes a processor and a memory for storing instructions executable by the processor. The processor is configured to:

[0266] Acquire incremental data, source data set and target data set, and send the incremental data, source data set and target data set to a target comparison device. The target data set is obtained by migrating the source data set. The incremental data indicates data collected after a preset time. The target comparison device is one of all comparison devices.

[0267] or,

[0268] A first comparison result between the incremental data and the target data set is obtained, and a second comparison result between the incremental data and the source data set is obtained, wherein the first comparison result indicates whether the incremental data exists in the target data set, and the second comparison result indicates whether the incremental data exists in the source data set.

[0269] A first target comparison result corresponding to the incremental data and the target data set is generated according to the first comparison result and the second comparison result, wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

[0270] The embodiments of this specification provide a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the following method is implemented:

[0271] Acquire incremental data, source data set and target data set, and send the incremental data, source data set and target data set to a target comparison device. The target data set is obtained by migrating the source data set. The incremental data indicates data collected after a preset time. The target comparison device is one of all comparison devices.

[0272] or,

[0273] A first comparison result between the incremental data and the target data set is obtained, and a second comparison result between the incremental data and the source data set is obtained, wherein the first comparison result indicates whether the incremental data exists in the target data set, and the second comparison result indicates whether the incremental data exists in the source data set.

[0274] A first target comparison result corresponding to the incremental data and the target data set is generated according to the first comparison result and the second comparison result, wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

[0275] The embodiments of this specification also provide a computer program product, including a computer program. When the computer program is executed by a processor, the following method is implemented:

[0276] Acquire incremental data, source data set and target data set, and send the incremental data, source data set and target data set to a target comparison device. The target data set is obtained by migrating the source data set. The incremental data indicates data collected after a preset time. The target comparison device is one of all comparison devices.

[0277] or,

[0278] A first comparison result between the incremental data and the target data set is obtained, and a second comparison result between the incremental data and the source data set is obtained, wherein the first comparison result indicates whether the incremental data exists in the target data set, and the second comparison result indicates whether the incremental data exists in the source data set.

[0279] A first target comparison result corresponding to the incremental data and the target data set is generated according to the first comparison result and the second comparison result, wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

[0280] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0281] The above is a description of a specific embodiment of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0282] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention claimed herein. The specification is intended to cover any variations, uses or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not claimed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the following claims.

[0283] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

[0284] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. A data processing method, characterized in that: Applied to a distributed processing system, the distributed processing system comprising at least one first node and at least one comparison device; The method comprises: The first node acquires incremental data, a source data set, and a target data set, and sends the incremental data, the source data set, and the target data set to a target comparison device; wherein the target data set is obtained by migrating the source data set; the incremental data indicates data collected after a preset time; and the target comparison device is one comparison device among all comparison devices; The target comparison device obtains a first comparison result between the incremental data and the target data set, and obtains a second comparison result between the incremental data and the source data set; wherein the first comparison result indicates whether the incremental data exists in the target data set; and the second comparison result indicates whether the incremental data exists in the source data set; The target comparison device generates a first target comparison result corresponding to the incremental data and the target data set based on the first comparison result and the second comparison result; wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

2. The method according to claim 1, characterized in that The distributed processing system further comprises a filter; the filter stores a first check value corresponding to the target data set; the target comparison device comprises a second node; The method further comprises: The second node obtains a first check value corresponding to the target data set from the filter, and obtains a second check value corresponding to the incremental data; The second node compares the second check value corresponding to the incremental data with the first check value corresponding to the target data set to obtain a first comparison result between the incremental data and the target data set.

3. The method according to claim 2, characterized in that The second check value includes a hash value and a message digest value; the first check value includes a hash value; the target comparison device also includes a state storage unit, the state storage unit stores a key-value pair corresponding to the target data in the target data set, the key-value pair includes a hash value corresponding to the target data and a message digest value corresponding to the target data; The second node compares the second check value corresponding to the incremental data with the first check value corresponding to the target data set to obtain a first comparison result between the incremental data and the target data set, including: The second node determines whether there is a hash value corresponding to the incremental data in the hash value corresponding to the target data set; If the hash value corresponding to the incremental data does not exist, determining that the first comparison result is a result that the target data set does not have incremental data; If there is a hash value corresponding to the incremental data, obtaining a key-value pair whose hash value is the hash value corresponding to the incremental data from the state storage unit, and using the key-value pair whose hash value is the hash value corresponding to the incremental data as the first target key-value pair; The first comparison result is determined according to the message digest value in the first target key-value pair and the message digest value corresponding to the incremental data.

4. The method according to claim 3, characterized in that The second node determines the first comparison result according to the message digest value in the first target key-value pair and the message digest value corresponding to the incremental data, including: The second node determines, in response to the presence of a first target key-value pair whose message digest value is a message digest value corresponding to the incremental data, that the first comparison result is a result that the incremental data and the target data are inconsistent; In response to the absence of a first target key-value pair whose message digest value is the message digest value corresponding to the incremental data, it is determined that the first comparison result is a result that the incremental data and the target data are consistent.

5. The method according to claim 3 or 4, characterized in that: The hash value corresponding to the incremental data is generated based on the primary key field information in the incremental data, and the message digest value corresponding to the incremental data is generated based on the target field information in the incremental data and the preset target field arrangement order.

6. The method according to claim 1, characterized in that The method further comprises: The target comparison device obtains the data operation type corresponding to the incremental data; When the second comparison result between the incremental data and the source data set is the first preset comparison result and / or the data operation type corresponding to the incremental data is the first preset operation type, the incremental data is compared with the source data set to determine the second comparison result between the incremental data and the source data set; wherein the first preset comparison result includes a result that the incremental data does not exist in the target data set and / or a result that the incremental data is inconsistent with the target data; and the first preset operation type includes an add operation type and / or a modify operation type.

7. The method according to claim 1, characterized in that The target comparison device generates a first target comparison result corresponding to the incremental data and the target data set according to the first comparison result and the second comparison result, including: The target comparison device determines a comparison result corresponding to the first comparison result and the second comparison result based on a first preset result generation rule, and uses the comparison result corresponding to the first comparison result and the second comparison result as the first target comparison result; wherein the first target comparison result is a result that both the source data set and the target data set are missing incremental data or the target data set is missing incremental data and the source data set has incremental data.

8. The method according to claim 2, characterized in that: The distributed processing system also includes a message middleware, a comparison result processing device and a result storage database; The method further comprises: The target comparison device saves the first target comparison result corresponding to the incremental data and the target data set to the message middleware, so that the comparison result processing device updates the result storage database according to the first target comparison result in the message middleware.

9. The method according to claim 8, characterized in that The target comparison device also includes a pullback flow generation unit; The method further comprises: The second node obtains a data operation type corresponding to the incremental data; The second node writes the incremental data to the retraction flow generation unit when the first target comparison result is a second preset comparison result and the data operation type is a second preset operation type; The retraction flow generation unit generates a deletion message corresponding to the incremental data, and saves the deletion message corresponding to the incremental data to the message middleware, so that the comparison result processing device deletes the incremental data corresponding to the deletion message in the updated result storage database.

10. The method according to claim 3, characterized in that The distributed processing system also includes a message middleware; The method further comprises: The second node generates a second target comparison result corresponding to the incremental data and the source data set according to the second comparison result and the data operation type corresponding to the incremental data, and saves the second target comparison result to the message middleware.

11. The method according to claim 10, characterized in that The filter also stores a first check value corresponding to the source data set; The state storage unit stores key-value pairs corresponding to the source data in the source data set; The method further comprises: The second node obtains the first verification value corresponding to the source data set from the filter, and updates the first verification value corresponding to the source data set in the filter and the key-value pair corresponding to the source data in the state storage unit according to the second comparison result and the data operation type corresponding to the incremental data.

12. The method according to any one of claims 2 to 4, characterized in that: The filter also stores a first check value corresponding to the source data set; The method further comprises: The first node obtains the first data in the source data set, obtains the second data in the target data set, and sends the first data and the second data to the second node; wherein the first data is the source data in the source data set generated before a preset time; the second data is the target data in the target data set generated before a preset time; The second node obtains a first check value corresponding to the first data from the filter, and obtains a first check value corresponding to the second data from the filter; The second node generates a third target comparison result corresponding to the first data and the second data according to a first verification value corresponding to the first data and a first verification value corresponding to the second data.

13. The method according to claim 12, characterized in that The first check value includes a hash value; The first node sending the first data and the second data to the second node includes: The first node classifies the first data to obtain at least one first data set, and classifies the second data to obtain at least one second data set; wherein the first data set includes first data with the same hash value, and the second data set includes second data with the same hash value; A first data set and a second data set having the same hash value are obtained, and the first data set and the second data set having the same hash value are sent to the second node.

14. A distributed processing system, characterized in that: The distributed processing system includes at least one first node and at least one comparison device; The first node is used to obtain incremental data, a source data set and a target data set, and send the incremental data, the source data set and the target data set to a target comparison device; wherein the target data set is obtained by migrating the source data set; the incremental data indicates data collected after a preset time; and the target comparison device is one comparison device among all comparison devices; The target comparison device is used to obtain a first comparison result between the incremental data and the target data set, and to obtain a second comparison result between the incremental data and the source data set; wherein the first comparison result indicates whether the incremental data exists in the target data set; and the second comparison result indicates whether the incremental data exists in the source data set; The target comparison device is also used to generate a first target comparison result corresponding to the incremental data and the target data set based on the first comparison result and the second comparison result; wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the following method is implemented: Acquire incremental data, a source data set, and a target data set, and send the incremental data, the source data set, and the target data set to a target comparison device; wherein the target data set is obtained by migrating the source data set; the incremental data indicates data collected after a preset time; and the target comparison device is one comparison device among all comparison devices; Obtaining a first comparison result between the incremental data and the target data set, and obtaining a second comparison result between the incremental data and the source data set; wherein the first comparison result indicates whether the incremental data exists in the target data set; and the second comparison result indicates whether the incremental data exists in the source data set; A first target comparison result corresponding to the incremental data and the target data set is generated according to the first comparison result and the second comparison result; wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

16. A computer device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the following method is implemented: Acquire incremental data, a source data set, and a target data set, and send the incremental data, the source data set, and the target data set to a target comparison device; wherein the target data set is obtained by migrating the source data set; the incremental data indicates data collected after a preset time; and the target comparison device is one comparison device among all comparison devices; Obtaining a first comparison result between the incremental data and the target data set, and obtaining a second comparison result between the incremental data and the source data set; wherein the first comparison result indicates whether the incremental data exists in the target data set; and the second comparison result indicates whether the incremental data exists in the source data set; A first target comparison result corresponding to the incremental data and the target data set is generated according to the first comparison result and the second comparison result; wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.

17. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the following method: Acquire incremental data, a source data set, and a target data set, and send the incremental data, the source data set, and the target data set to a target comparison device; wherein the target data set is obtained by migrating the source data set; the incremental data indicates data collected after a preset time; and the target comparison device is one comparison device among all comparison devices; Obtaining a first comparison result between the incremental data and the target data set, and obtaining a second comparison result between the incremental data and the source data set; wherein the first comparison result indicates whether the incremental data exists in the target data set; and the second comparison result indicates whether the incremental data exists in the source data set; A first target comparison result corresponding to the incremental data and the target data set is generated according to the first comparison result and the second comparison result; wherein the first target comparison result indicates the existence status of the incremental data in the source data set and the target data set.