Transaction consistency query support for replicated data from recovery log to external data stores

US11442823B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11442823-B2
Application numberUS-201615173502-A
CountryUS
Kind codeB2
Filing dateJun 3, 2016
Priority dateJun 3, 2016
Publication dateSep 13, 2022
Grant dateSep 13, 2022

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Transaction consistency query support is available for replicated data from recovery log to external data stores. An external data store is populated with records using entries of a change data table. The change data table has entries for each transaction that has committed and is to be replicated, and each of the entries stores information for each log entry in a recovery log from a database management system. Each log entry identifies a transactional change of data and a transaction completion indicator of one of commit and abort. In response to receiving a query about a transaction of the transactions, a set of records are retrieved from the external data store for the transaction. From the set of records, records whose sequence identifier values are larger than a maximum transaction commit sequence identifier are removed. From the set of records, remaining records having transaction consistency are returned.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer program product, the computer program product for transaction consistency query support for replicated data from a recovery log to an external data store and comprising a computer readable storage medium having program code embodied therewith, the program code executable by at least one processor to perform operations for: populating a replicated transformation table in an external data store with records using entries of a change data table in a database management system, by: with sequential publishing, for each of the entries: determining whether that entry is a last entry for a transaction by checking a last transaction message indicator; and in response to determining that the entry is the last entry for the transaction, setting a maximum transaction commit sequence identifier value for the transaction to a sequence identifier of the last entry; and with parallel publishing, for each of the entries, determining whether that entry is the last entry for the transaction by checking the last transaction message indicator; and in response to determining that the entry is the last entry for the transaction, setting a maximum transaction commit sequence identifier value to a last consecutive applied sequence identifier; and in response to receiving a query at the external data store, retrieving a set of records from the replicated transformation table in the external data store; determining whether partial changes have been applied, wherein the partial changes are in records of in-flight transactions that have not committed yet in the external data store; in response to determining that the partial changes have been applied, removing, from the set of records, the records of the in-flight transactions whose sequence identifier values are larger than the maximum transaction commit sequence identifier value; and returning, from the set of records, remaining records having transaction consistency; and in response to determining that the partial changes have not been applied, returning the set of records having transaction consistency. 2. The computer program product of claim 1 , wherein, in response to receiving an abort transaction completion indicator, discarding the entries for the transaction from an in-memory queue. 3. The computer program product of claim 1 , wherein the remaining records contain records for committed transactions and do not contain records for the in-flight transactions. 4. The computer program product of claim 1 , wherein information from a log entry includes a sequence identifier, a commit time, and a data loss indictor, wherein the sequence identifier and the commit time are used to determine a source commit time for which transactions to that point have been inserted into the external data store, and wherein the sequence identifier and the data loss indicator are used to detect data loss and corruption. 5. The computer program product of claim 1 , wherein a Software as a Service (SaaS) is configured to perform the operations of the computer program product. 6. The computer program product of claim 1 , wherein the change data table is populated by: storing information from log entries of a recovery log into entries of an in-memory queue; in response to receiving a commit transaction completion indicator, reconstructing a transaction by grouping entries of the in-memory queue that have a same transaction identifier; and storing the grouped entries for the reconstructed transaction in the change data table. 7. A computer system for transaction consistency query support for replicated data from a recovery log to an external data store, comprising: one or more processors, one or more computer-readable memories and one or more computer-readable, tangible storage devices; and program instructions, stored on at least one of the one or more computer-readable, tangible storage devices for execution by at least one of the one or more processors via at least one of the one or more computer-readable memories, to perform operations comprising: populating a replicated transformation table in an external data store with records using entries of a change data table in a database management system by: with sequential publishing, for each of the entries: determining whether that entry is a last entry for a transaction by checking a last transaction message indicator; and in response to determining that the entry is the last entry for the transaction, setting a maximum transaction commit sequence identifier value for the transaction to a sequence identifier of the last entry; and with parallel publishing, for each of the entries, determining whether that entry is the last entry for the transaction by checking the last transaction message indicator; and in response to determining that the entry is the last entry for the transaction, setting a maximum transaction commit sequence identifier value to a last consecutive applied sequence identifier; and in response to receiving a query at the external data store, retrieving a set of records from the replicated transformation table in the external data store; determining whether partial changes have been applied, wherein the partial changes are in records of in-flight transactions that have not committed yet in the external data store; in response to determining that the partial changes have been applied, removing, from the set of records, the records of the in-flight transactions whose sequence identifier values are larger than the maximum transaction commit sequence identifier value; and returning, from the set of records, remaining records having transaction consistency; and in response to determining that the partial changes have not been applied, returning the set of records having transaction consistency. 8. The computer system of claim 7 , wherein, in response to receiving an abort transaction completion indicator, discarding the entries for the transaction from an in-memory queue. 9. The computer system of claim 7 , wherein the remaining records contain records for committed transactions and do not contain records for the in-flight transactions. 10. The computer system of claim 7 , wherein a Software as a Service (SaaS) is configured to perform the operations of the computer system. 11. The computer system of claim 7 , wherein information from a log entry includes a sequence identifier, a commit time, and a data loss indictor, wherein the sequence identifier and the commit time are used to determine a source commit time for which transactions to that point have been inserted into the external data store, and wherein the sequence identifier and the data loss indicator are used to detect data loss and corruption. 12. The computer system of claim 7 , wherein the change data table is populated by: storing information from log entries of a recovery log into entries of an in-memory queue; in response to receiving a commit transaction completion indicator, reconstructing a transaction by grouping entries of the in-memory queue that have a same transaction identifier; and storing the grouped entries for the reconstructed transaction in the change data table.

Assignees

Inventors

Classifications

  • G06F16/27Primary

    Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor · CPC title

  • in transactions (updating of structured data in databases G06F16/23) · CPC title

  • Redundant storage or storage space (G06F11/2056 takes precedence) · CPC title

  • Database-specific techniques · CPC title

  • Solving problems relating to consistency · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11442823B2 cover?
Transaction consistency query support is available for replicated data from recovery log to external data stores. An external data store is populated with records using entries of a change data table. The change data table has entries for each transaction that has committed and is to be replicated, and each of the entries stores information for each log entry in a recovery log from a database m…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F16/27. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Sep 13 2022 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 5 related publications on this page (citations in our corpus or others sharing the same primary CPC).