# US 10,956,403 B2 · Verifying data consistency

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,956,403 B2
- Document ID: US10956403B2
- Status: Granted
- Kind: B2
- Application number: 16/192,684
- Filed: 2018-11-15
- Published: 2019-03-21
- Granted: 2021-03-23
- Earliest claimed: 2016-02-01
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Serge Bourbonnais; Si Bin Fan; Xiao Li; Jonathan W. Wierenga; Mai Zeng
- Web page: https://patentgrep.com/patent/US10956403B2

## CPC

- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/162: {Delete operations (erasing in storage systems G06F3/0652)}
- G06F 16/1805: {Append-only file systems, e.g. using logs or journals to store data}
- G06F 16/2255: {Hash tables}
- G06F 16/23: Updating
- G06F 16/2315: {Optimistic concurrency control}
- G06F 16/2358: {Change logging, detection, and notification (replication G06F16/27)}
- G06F 21/552: {involving long-term monitoring or reporting}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for verifying data consistency between update-in-place data structures and append-only data structures containing change histories associated with the update-in-place data structures is provided. The method includes loading data from an update-in-place data structure to a first set of hash buckets in a processing platform, loading data from append-only data structures to a second set of hash buckets in the processing platform, performing a bucket-level comparison between the data in the first set of hash buckets and the data in the second set of has buckets, and generating a report based on the bucket-level comparison.

## Claims

### Claim 1

A method for verifying data consistency between update-in-place data structures and append-only data structures containing change histories associated with the update-in-place data structures, the method comprising:
performing a bucket-level comparison between the data in the first set of hash buckets and the data in the second set of hash buckets;
generating an intermediate report based on the bucket-level comparison, wherein generating the intermediate report based on the bucket-level comparison comprises:
determining an update occurred to the first update-in-place data structure during the bucket-level comparison;
identifying transient differences between the first update-in-place data structure and the append-only data structures, wherein the transient differences comprise differences caused by either in-flight transactions, by rollback transactions, or by in-flight transactions and by rollback transactions committed at the first update-in-place data structure after loading the data from the first update-in-place data structure to the first set of hash buckets in the processing platform; and
removing the transient differences from the intermediate report listing differences between the first update-in-place data structure and the append-only data structures; and
generating a final report based on the intermediate report and removal of the identified transient differences, wherein the final report comprises persistent differences between the first update-in-place data structure and the append-only data structures and omits the identified transient differences removed from the intermediate report, wherein the final report is generated for live comparison of the first update-in-place data structure and the append-only data structures, and wherein the differences are inserted into a second update-in-place data structure that is associated with the first update-in-place data structure.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the data from the append-only data structures comprises a second set of key values that corresponds to rows of data in the append-only data structures, and wherein loading the data from the append-only data structures to the second set of hash buckets is based on a second set of hash values associated with the second set of key values.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the first set of hash values and the second set of hash values are determined based on a common hash function.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the bucket-level comparison is performed on buckets from the first set of hash buckets sharing common hash values with buckets from the second set of hash buckets.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the data from the update-in-place data structure further comprises a first set of checksum values that corresponds to rows of data in the update-in-place data structure, and wherein the data from append-only data structures further comprises a second set of checksum values that corresponds to rows of data in the append-only data structures.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the report based on the bucket-level comparison comprises:
a third set of key values corresponding to differences between the update-in-place data structure and the append-only data structures;
a set of difference types corresponding to the third set of key values;
checksum values from the first set of checksum values corresponding to the third set of key values; and
checksum values from the second set of checksum values corresponding to the third set of key values.

### Claim 7 (depends on 4)

The method according to claim 4, further comprising:
generating a first set of checksum values that corresponds to rows of data in the update-in-place data structure; and
generating a second set of checksum values that corresponds to rows of data in the append-only data structures,
wherein generating the first set of checksum values and generating the second set of checksum values are based on a common function.

### Claim 8 (depends on 1)

The method according to claim 1, wherein generating the report based on the bucket-level comparison comprises:
determining an update occurred to the update-in-place data structure during the bucket-level comparison.

### Claim 9 (depends on 8)

The method according to claim 8, wherein generating the report based on the bucket-level comparison comprises:
identifying transient differences between the update-in-place data structure and the append-only data structures, wherein the transient differences are differences caused by in-flight transactions committed at the update-in-place data structure after loading the data from the update-in-place data structure to the first set of hash buckets in the processing platform; and
removing the transient differences from an intermediate report listing differences between the update-in-place data structure and the append-only data structures.

### Claim 10 (depends on 8)

The method according to claim 8, wherein generating the report based on the bucket-level comparison comprises:
identifying transient differences between the update-in-place data structure and the append-only data structures, wherein the transient differences are differences caused by rollback transactions committed at the update-in-place data structure after loading the data from the update-in-place data structure to the first set of hash buckets in the processing platform; and
removing the transient differences from an intermediate report listing differences between the update-in-place data structure and the append-only data structures.

### Claim 11 (depends on 1)

The method according to claim 1, wherein loading the data from the update-in-place data structure to the first set of hash buckets and loading the data from the append-only data structures to the second set of hash buckets is performed in parallel.

### Claim 12 (depends on 1)

The method according to claim 1, wherein the bucket-level comparison is performed in parallel.

### Claim 13 (depends on 1)

The method according to claim 1, wherein the update-in-place data structure is a relational database management systems (RDBMS).

### Claim 14

A computer program product for verifying data consistency between update-in-place data structures and append-only data structures containing change histories associated with the update-in-place data structures, the computer program product comprising at least one computer readable non-transitory storage medium having computer readable program instructions thereon for execution by a processor, the computer readable program instructions comprising program instructions for:
performing a bucket-level comparison between the data in the first set of hash buckets and the data in the second set of hash buckets;
generating an intermediate report based on the bucket-level comparison, wherein generating the intermediate report based on the bucket-level comparison comprises:
determining an update occurred to the first update-in-place data structure during the bucket-level comparison;
identifying transient differences between the first update-in-place data structure and the append-only data structures, wherein the transient differences comprise differences caused by either in-flight transactions, by rollback transactions, or by in-flight transactions and by rollback transactions committed at the first update-in-place data structure after loading the data from the first update-in-place data structure to the first set of hash buckets in the processing platform; and
removing the transient differences from the intermediate report listing differences between the first update-in-place data structure and the append-only data structures; and
generating a final report based on the intermediate report and removal of the identified transient differences, wherein the final report comprises persistent differences between the first update-in-place data structure and the append-only data structures and omits the identified transient differences removed from the intermediate report, wherein the final report is generated for live comparison of the first update-in-place data structure and the append-only data structures, and wherein the differences are inserted into a second update-in-place data structure that is associated with the first update-in-place data structure.

### Claim 15 (depends on 14)

The computer program product according to claim 14, wherein the data from the update-in-place data structure comprises a first set of key values that corresponds to rows of data in the update-in-place data structure, and wherein loading the data from the update-in-place data structure to the first set of hash buckets is based on a first set of hash values associated with the first set of key values.

### Claim 16 (depends on 15)

The computer program product according to claim 15, wherein the data from the append-only data structures comprises a second set of key values that corresponds to rows of data in the append-only data structures, and wherein loading the data from the append-only data structures to the second set of hash buckets is based on a second set of hash values associated with the second set of key values.

### Claim 17

A computer system for verifying data consistency between update-in-place data structures and append-only data structures containing change histories associated with the update-in-place data structures, the computer system comprising:
at least one processing unit;
at least one computer readable memory;
at least one computer readable tangible, non-transitory storage medium;
and program instructions stored on the at least one computer readable tangible, non-transitory storage medium for execution by the at least one processing unit via the at least one computer readable memory, wherein the program instructions comprise program instructions for:
performing a bucket-level comparison between the data in the first set of hash buckets and the data in the second set of hash buckets;
generating an intermediate report based on the bucket-level comparison, wherein generating the intermediate report based on the bucket-level comparison comprises:
determining an update occurred to the first update-in-place data structure during the bucket-level comparison;
identifying transient differences between the first update-in-place data structure and the append-only data structures, wherein the transient differences comprise differences caused by either in-flight transactions, by rollback transactions, or by in-flight transactions and by rollback transactions committed at the first update-in-place data structure after loading the data from the first update-in-place data structure to the first set of hash buckets in the processing platform; and
removing the transient differences from the intermediate report listing differences between the first update-in-place data structure and the append-only data structures; and
generating a final report based on the intermediate report and removal of the identified transient differences, wherein the final report comprises persistent differences between the first update-in-place data structure and the append-only data structures and omits the identified transient differences removed from the intermediate report, wherein the final report is generated for live comparison of the first update-in-place data structure and the append-only data structures, and wherein the differences are inserted into a second update-in-place data structure that is associated with the first update-in-place data structure.

### Claim 18 (depends on 17)

The computer system according to claim 17, wherein the data from the update-in-place data structure comprises a first set of key values that corresponds to rows of data in the update-in-place data structure, and wherein loading the data from the update-in-place data structure to the first set of hash buckets is based on a first set of hash values associated with the first set of key values.

### Claim 19 (depends on 18)

The computer system according to claim 18, wherein the data from the append-only data structures comprises a second set of key values that corresponds to rows of data in the append-only data structures, and wherein loading the data from the append-only data structures to the second set of hash buckets is based on a second set of hash values associated with the second set of key values.
