RowID-based data synchronization for asynchronous table replication
First Claim
Patent Images
1. A computer implemented method for synchronizing lost changes between a source table and a replica table, comprising:
- detecting, by at least one processor, a restart at a source node or a replica node, the source node having a source table and the replica node having a replica table;
comparing, by the at least one processor, a row of the source table to an associated row of the replica table based on a row-ID value of the row of the source table and a row-ID value of the associated row of the replica table, wherein the row-ID value of the row of the source table corresponds to a last write transaction on the row in the source table, and the row-ID value of the associated row of the replica table corresponds to a last write transaction on the row in the replica table;
determining, by the at least one processor, a replication error at the source table or the replica table based on the comparison; and
updating, by the at least one processor, the source table or the replica table based on the determination;
wherein at least one of the detecting, comparing, determining, and updating are performed by one or more computers.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed herein are system, method, and computer program product embodiments for synchronizing lost change between a source table and a replica table. An embodiment operates by detecting a restart at a source node or a replica node. Row-ID values of replication log entries are then compared to row-ID column values of rows at a replica table of the replica node. Replication errors at a source table or the replica table are then determined based on the row-ID comparison. The rows of the source table and the replica table are then updated based on the determination.
76 Citations
20 Claims
-
1. A computer implemented method for synchronizing lost changes between a source table and a replica table, comprising:
-
detecting, by at least one processor, a restart at a source node or a replica node, the source node having a source table and the replica node having a replica table; comparing, by the at least one processor, a row of the source table to an associated row of the replica table based on a row-ID value of the row of the source table and a row-ID value of the associated row of the replica table, wherein the row-ID value of the row of the source table corresponds to a last write transaction on the row in the source table, and the row-ID value of the associated row of the replica table corresponds to a last write transaction on the row in the replica table; determining, by the at least one processor, a replication error at the source table or the replica table based on the comparison; and updating, by the at least one processor, the source table or the replica table based on the determination; wherein at least one of the detecting, comparing, determining, and updating are performed by one or more computers. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system, comprising:
-
a memory; and at least one processor coupled to the memory and configured to; detect a restart at a source node or a replica node, the source node having a source table and the replica node having a replica table; compare a row of the source table to an associated row of the replica table based on a row-ID value of the row of the source table and a row-ID value of the associated row of the replica table, wherein the row-ID value of the row of the source table corresponds to a last write transaction on the row in the source table, and the row-ID value of the associated row of the replica table corresponds to a last write transaction on the row in the replica table; determine a replication error at the source table or the replica table based on the comparison; and update the source table or the replica table based on the determination. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. A tangible computer-readable device having instructions stored thereon that, when executed by at least one computing device, causes the at least one computing device to perform operations comprising:
-
detecting a restart at a source node or a replica node, the source node having a source table and the replica node having a replica table; comparing a row of the source table to an associated row of the replica table based on a row-ID value of the row of the source table and row-ID value of the associated row of the replica table, wherein the row-ID value of the row of the source table corresponds to a last write transaction on the row in the source table, and the row-ID value of the associated row of the replica table corresponds to a last write transaction on the row in the replica table; determining a replication error at the source table or the replica table based on the comparison; and updating the source table or the replica table based on the determination. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification