Movatterモバイル変換


[0]ホーム

URL:


US11455217B2 - Transaction consistency query support for replicated data from recovery log to external data stores - Google Patents

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

Info

Publication number
US11455217B2
US11455217B2US15/850,454US201715850454AUS11455217B2US 11455217 B2US11455217 B2US 11455217B2US 201715850454 AUS201715850454 AUS 201715850454AUS 11455217 B2US11455217 B2US 11455217B2
Authority
US
United States
Prior art keywords
transaction
records
entries
data
external data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active, expires
Application number
US15/850,454
Other versions
US20180113771A1 (en
Inventor
Serge Bourbonnais
Austin F. M. D'Costa
Yat On Lau
Xiao Li
Hong Min
Gong Su
Jonathan W. Wierenga
Christian Zentgraf
Kan Zhang
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
International Business Machines Corp
Original Assignee
International Business Machines Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by International Business Machines CorpfiledCriticalInternational Business Machines Corp
Priority to US15/850,454priorityCriticalpatent/US11455217B2/en
Assigned to INTERNATIONAL BUSINESS MACHINES CORPORATIONreassignmentINTERNATIONAL BUSINESS MACHINES CORPORATIONASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS).Assignors: BOURBONNAIS, SERGE, D'COSTA, AUSTIN F.M., WIERENGA, JONATHAN W., LI, XIAO, ZENTGRAF, CHRISTIAN, ZHANG, KAN, SU, GONG, LAU, YAT ON, MIN, HONG
Publication of US20180113771A1publicationCriticalpatent/US20180113771A1/en
Application grantedgrantedCritical
Publication of US11455217B2publicationCriticalpatent/US11455217B2/en
Activelegal-statusCriticalCurrent
Adjusted expirationlegal-statusCritical

Links

Images

Classifications

Definitions

Landscapes

Abstract

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.

Description

FIELD
Embodiments of the invention relate to transaction consistency query support for replicated data from recovery log to external data stores.
BACKGROUND
Transactions include Create, Read, Update, and Delete (CRUD) operations. A transaction's writeset refers to data being operated with CRUD operations. Parallel replication replicates (copies) data from a source data store (e.g., a source DataBase Management System (DBMS)) to target data stores via multiple logical end-to-end replication channels.
Parallel replication is a desirable solution to increase throughput by concurrently replicating changed data through these replication channels. Such concurrent replication may potentially split a transaction's writeset among the multiple replication channels.
For such a split transaction's writeset, the existing solutions are unable to recover transaction consistency when answering queries at the target data stores. For example, assume that transactions for a bank account that stores $500 includes: a deposit of $500 and a withdrawal of $1000. Once the deposit is made, the bank account stores $1000, and the withdrawal of $1000 is valid. However, if the withdrawal is processed before the deposit, then the withdrawal fails (as there is $500 in the account). To maintain transaction consistency, the order of the transactions must be maintained at the target data stores, i.e. in above example, the deposit needs to occur before the withdrawal at the target data store, the same as at the source data store
Designs of asynchronous/lazy database replication face a challenge of performance. The applications that changed the data in the source database (e.g., insert/update/delete) may have had many simultaneous transactions active and working in parallel. The replication system may be serialized for assuring that the original order remains intact, but in doing so, gives up much of the parallelism and performance of the source system, resulting in stale data in the target system.
For performance reasons, the transactions are applied in parallel, independent threads. If a transaction message has a dependency on one or more preceding transaction messages whose applications have not yet completed, that transaction message is held until the application completes. To find the transaction dependencies at low granularity levels, there are two solutions.
With solution 1, using the transactions' start and commit time values, the replication engines can determine the commit sequences of these transactions at the source side. The transactions can be issued in parallel as long as their commit sequences are the same. Thus, transaction dependencies can be built based on their associated commit time values.
With solution 2, using the raw column values and operation types of each row change, the replication engines can dynamically determine if these transactions are trying to change the same records. If a pair of transactions includes operations that modify the same records, then the transactions must be serialized. A global transaction dependency graph can be built using these row-level local relations. Solution 2 offers better parallelism than Solution 1, but Solution 2 only guarantees casual consistency of these Insert/Delete/Update operations. That is, the performance improvement is achieved by relaxing the original transactional consistency.
Unfortunately, when the workloads are very heavy, the replication throughputs of the above two solutions are still unable to match the source-side workload throughputs. Therefore, for further performance enhancement, a replication system may further relax the consistency, for example, by breaking up the workload of the transaction stream by tables or even finer granularity. In this case, it violates transaction consistency, which is guaranteed in the source-side database. Although most of such solutions can guarantee eventual consistency, target-side replicas become dirty and inconsistent when replicating. The data in these replicas are not acceptable for most business-critical applications, especially in scenarios of 24/7/365 replication services.
SUMMARY
Provided is a method for transaction consistency query support for replicated data from recovery log to external data stores. An external data store is populated, using a processor of a computer, 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.
Provided is a computer program product for transaction consistency query support for replicated data from recovery log to external data stores. The computer program product comprises a computer readable storage medium having program code embodied therewith, the program code executable by at least one processor. With the computer program product, 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.
Provided is a computer system for transaction consistency query support for replicated data from recovery log to external data stores. The computer system comprises one or more processors, one or more computer-readable memories and one or more computer-readable, tangible storage devices and comprises 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 memories. With the computer system, 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.
BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS
Referring now to the drawings in which like reference numbers represent corresponding parts throughout:
FIG. 1 illustrates, in a block diagram, a computing environment in accordance with certain embodiments.
FIG. 2 illustrates, in a block diagram, a computing environment with multiple, external data stores in accordance with certain embodiments.
FIG. 3 illustrates, in a flow chart, operations for transaction consistency query support for replicated data from recovery log to external data stores.
FIG. 4, illustrates, in a flow chart, operations for reading a log entry from a recovery log in accordance with certain embodiments.
FIG. 5, illustrates, in a flow chart, operations when a transaction completion indicator is received in accordance with certain embodiments.
FIG. 6 illustrates, in a flow chart, query answering filtered with transaction consistency from an external data store in accordance with certain embodiments.
FIG. 7 illustrates, in a flow chart operations for responding to a query with transaction consistency in accordance with certain embodiments.
FIG. 8 illustrates a computing node in accordance with certain embodiments.
FIG. 9 illustrates a cloud computing environment in accordance with certain embodiments.
FIG. 10 illustrates abstraction model layers in accordance with certain embodiments.
DETAILED DESCRIPTION
The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
FIG. 1 illustrates, in a block diagram, a computing environment in accordance with certain embodiments. Abig data platform100 is coupled to anexternal data store120 and a Database Management System (DBMS)140. Thebig data platform100 includes a log replication apply engine102 (“apply engine”) and an in-memory data structure104. TheDBMS140 may be described as a source data store.
Theexternal data store120 includesmetadata124 and one or more replicated transformation tables with temporal history126 (“replicated tables” or “replicated transformation tables”). Theexternal data store120 also is coupled to aquery answering module190, which may issue queries against data stored in the external data store.
TheDBMS140 is coupled to a log replication capture engine160 (“capture engine”). TheDBMS140 includes one or more change data tables142, one or more other transactional tables144, and arecovery log146 storing transactions. The one or more change data tables142 may be persistent. The transactional tables144 store DBMS transactional data (as records or rows). Therecovery log146 may also be referred to as a transaction log and may be persistent.
Thecapture engine160 includes alog reader162, an in-memory queue164, and atransaction builder166.
Embodiments introduce replication middleware that includes the applyengine102 and thecapture engine160. With embodiments, thecapture engine160 may reside in the same system as theDBMS140. Thecapture engine160 is responsible for decoding recovery log entries, rebuilding transactions, and writing committed changes to the change data table142 in theDBMS140. With embodiments, there is one change data table142 defined for each transaction table144. These change data tables142 act as data staging buffers that are accessed by both thecapture engine160 and the applyengine102.
With embodiments, for optimal performance and minimal overhead, the change data tables142 are defined “NOT LOGGED” and accessed without locking. If theDBMS140 fails, their content may be recaptured from thepersistent recovery log146.
The applyengine102 runs parallel jobs (e.g., Hadoop® Spark jobs) to subscribe new log entries in the change data tables142 via SQL (e.g., Hadoop® Spark SQL) and to build the replicated tables126. Subscribing the log entries refers to selectively choosing which log entries to receive. In certain embodiments, the selection of log entries may be configured using a filtering parameter. In other embodiments, the selection of log entries may be configured to receive all log entries. With embodiments, there is one replicated table126 defined for each transaction table144. In certain embodiments, the replicated tables have a columnar storage format (e.g., an Apache® Parquet® format). (Parquet is a registered trademark of the Apache Software Foundation in the United States and/or other countries.)
FIG. 2 illustrates, in a block diagram, a computing environment with multiple, external data stores in accordance with certain embodiments. InFIG. 2, there are multipleexternal data stores121a. . .121n. In certain embodiments, the multipleexternal data stores121a. . .121nmay be heterogeneous data stores. In other embodiments, the multipleexternal data stores121a. . .121nmay be homogenous data stores. Each of theexternal data stores121a. . .121nincludes metadata and one or more replicated transformation tables with temporal history (“replicated tables” or “replicated transformation tables”). For example, theexternal data store121aincludesmetadata124aand one or more replicated transformation tables withtemporal history126a(“replicated tables” or “replicated transformation tables”).
FIG. 3 illustrates, in a flow chart, operations for transaction consistency query support for replicated data from recovery log to external data stores. Control begins atblock300 with thecapture engine160 reading therecovery log146. Inblock302, thecapture engine160 populates (i.e., stores data into) the change data table142 based on therecovery log146. Inblock304, the applyengine102 populates (i.e., stores data into) one or more replicated tables126 of theexternal data store120 based on the change data table142. Inblock306, theanalytics engine100 answers a query filtered with transaction consistency from the external data store.
FIG. 4, illustrates, in a flow chart, operations for reading a log entry from therecovery log146 in accordance with certain embodiments. Control begins atblock400 with thecapture engine160 identifying a log entry as related to a subscribed/registered table/column/row. Inblock402, thecapture engine160 extracts information from the log entry. In certain embodiments, the information that is extracted is information that needs to be stored at the target data store, as well as, meta data information, such as timestamp, etc. Inblock404, thecapture engine160 records the extracted information in an in-memory queue164 as a queued entry. In certain embodiments, the in-memory queue164 is an in-memory buffer. Inblock406, thecapture engine160 determines whether all log entries to be processed have been identified. If so, processing is done, otherwise, processing loops to block400.
FIG. 5, illustrates, in a flow chart, operations when a transaction completion indicator is received in accordance with certain embodiments. Control begins atblock500 with thecapture engine160 receiving a transaction completion indicator (which may be commit or abort). Inblock502, thecapture engine160 determines whether the transaction completion indicator is a commit. If so, processing continues to block504, otherwise, processing continues to block506.
Inblock504, thecapture engine160 re-constructs a transaction entry by grouping the queued entries with a same TXID in the in-memory queue164. Inblock506, thecapture engine160 copies the grouped entries from the in-memory queue164 to the change data table142.
Processing continues fromblock502 to block508 when the transaction completion indicator is an abort. Inblock508, thecapture engine160 discards queued entries for the transaction from the in-memory queue164.
With embodiments, alog reader162 sequentially scans therecovery log146 and examines each log entry in therecovery log146. A log entry may be described as a data structure that describes what was changed within the transactional tables144 of theDBMS140. If the log entry is related to the subscribed/registered tables/columns/rows, thelog reader162 extracts information from the log entry of therecovery log146 and records that information in the in-memory queue164.
Each log entry contains the transaction information (e.g., a unique transaction identifier, TXID). All the log entries written by the same transaction contain the same TXID.
The end of a transaction has a Commit or Abort log entry. When seeing an Abort log entry, the queued entries of this transaction are discarded. When seeing a Commit log entry, thetransaction builder166 re-constructs a transaction by grouping the records with the same TXID. The transaction is composed of a list of records whose sequence is the same as the ones in the recovery log.
The re-constructed transaction entries are inserted into an in-memory queue164, transQ, which is a non-persistent staging area.
In certain embodiments, the information of each re-constructed transaction log entry includes:
Sequence Identifier (SID): a globally densely incrementing sequence identifier (SID) generated by thetransaction builder166. It starts with zero for the first queue record in the first built transaction entry and increments by one for each subsequent queued record processed by thetransaction builder166. Thus, the assigned SID numbers of the records within the same transaction are consecutive.
Log Sequence Number (LSN): a sequence number that uniquely identifies a change in the recovery log. This value is globally ascending.
Transaction Identifier (TXID): a sequence number that provides transactional order. This is also extracted from the log entry.
Last Message of Transaction (LAST_MSG_TX): a flag to show if this message is the last message (queued record) of the entire transaction. This value is assigned by thetransaction builder166 for the last queued record grouped into a transaction. This may be referred to as a last transaction message indicator.
Commit time (COMMIT_TIME): the transaction commit timestamp. This is extracted from the log entry.
Operation (OP): A flag that indicates the type of operation for a record. With embodiments, the following indicators are used for the flag: I for insert; U for update; and D for delete.
user-column-after-image (“after-image”): Each source column has a corresponding after-image column. In most cases, the after-image contains the value that is in the source column after the change occurs. This value has the same name, data type, and null attributes as the source column. In certain embodiments, in the case of an update, this value reflects the new value of the data that was updated. In certain embodiments, in the case of a delete, the after-image column is null. In certain embodiments, in the case of an insert, the after-image column reflects the value of the data that was inserted.
user-column-before-image (“before-image”): Each source column has a corresponding before-image column. In most cases, the before-image column contains the value that was in the source column before the change occurred. This value has the same name, data type, and null attributes as the source column. In certain embodiments, in the case of an update, the before-image column reflects the data that was updated. In certain embodiments, in the case of a delete, the before-image column reflects the data that was deleted. In certain embodiments, in the case of an insert, the before-image column is null.
Cyclic Redundancy Check (CRC): the checksum of the whole record, which may be referred to as a data loss indicator.
Embodiments provide new attribute fields of: SID, LAST_MSG_TX, and CRC. With embodiments, SID and CRC are used to detect the data loss and corruption; SID and LAST_MSG_TX are used to determine which records are part of in-flight transactions in the external data store; and SID and COMMIT_TIME are used to determine the source commit time for which all transactions to that point have been inserted to the target. With embodiments, the SID, LAST_MSG_TX, and CRC are generated bytransaction builder166. An “in-flight” transaction is a transaction that has been started, but not committed yet.
Populating the external data store includes moving log entries recorded in the in-memory queue164 and storing them into the external data store120 (target). Theexternal data store120 may be described as a history/versioning data store that records the data change histories in the replicated tables126 that are captured from therecovery log146. For example, for a bank account, for a particular account holder, the transactional table144 may show that the account holder has $0. However, the replicated table126 may show the history of the account holder having $500, adding $500 (and having $1000), and withdrawing $1000 (and having $0).
In certain embodiments, data transmission from the source transactional tables144 to the targetexternal data store120 may be completed without extra staging media. In another embodiment, a persistence queue/media is used for staging between source and target (e.g., DBMS tables or a messaging queue). In certain embodiments, the targetexternal data store120 may be a key-value data store, and duplicate keys are allowed. In other embodiments, theexternal data store120 supports versioning.
In certain embodiments, theexternal data store120 is a big, distributed, persistent, fault-tolerant hash table. In certain embodiments, theexternal data store120 is a Hadoop® Distributed File System (HDFS). (Hadoop is a registered trademark of the Apache Software Foundation in the United States and/or other countries.) The HDFS may be described as a distributed, scalable, and portable file-system. In other embodiments, theexternal data store120 is an object store over HDFS. In certain embodiments, thebig data platform100 is a Hadoop® Spark platform.
In certain embodiments, the publishing is a push model, in which theDBMS140 pushes records from the change data table142 to the targetexternal data store120. In another embodiment, the publishing is a pull model, in which the targetexternal data store120 pulls records from the change data table142 of theDBMS140. The change data table142 may be a persistence queue or a messaging queue.
In certain embodiments, the push model uses the Representational State (REST) Application Programming Interfaces (APIs) provided by theexternal data store120.
When using a key-value external data store with versioning, the key consists of: 1) a replication key schema name and 2) a table name (and/or database name). The replication key may be the source-side table key. Alternatively, the replication key may be an internal row identifier inside theDBMS140 or any other unique value.
In certain embodiments, each record includes values for: SID, LSN, TXID, LAST_MSG_TX, COMMIT_TIME, OP, after-image, before-image, and CRC. In other embodiments, the record does not include all of these values (e.g., does not include the before-image).
In certain embodiments, the technologies of REST APIs plus resource and session management (betweenDBMS140 and big data platform100) provide atomic and persistent operations. Resource management refers to management of resources, such as managing hardware resources (e.g., CPU, memory, etc.) and software resources (e.g., number of database instances, connections among databases, etc.). Session refers to a way that operation state is maintained, if it is stateful. For example, these technologies provide the commit operation, which can guarantee an object being written to a finalized object. Once this commit operation succeeds, a container (betweenDBMS140 and big data platform100) guarantees that the object is available for reading.
The data movements from theDBMS140 to theexternal data store120 may be done with sequential publishing or parallel publishing. With sequential publishing, one publisher thread reads the in-memory queue164 and publish it to the remoteexternal data store120.
With parallel publishing, multiple publisher threads are consuming the same in-memory queue164. With parallel publishing, there is transaction-level parallelism and record-level parallelism. With transaction-level parallelism, each message in the in-memory queue164 corresponds to a single transaction, each transaction in in-memory queue164 is published by one and only one thread, and the publishing order may be different from the original transaction commit orders. With record-level parallelism, each message in the in-memory queue164 corresponds to a single record of a transaction, each record is published by one and only one thread, and the publishing order may be different from the original data change orders. With embodiments, the parallelism of publishing is configurable. In certain embodiments, the parallelism of publishing may be specified by users. In certain embodiments, parallelism of publishing may be adjusted by thecapture engine160.
FIG. 6 illustrates, in a flow chart, query answering filtered with transaction consistency from theexternal data store120 in accordance with certain embodiments. Control begins atblock600 with the log replication applyengine102 receiving a query. Inblock602, the log replication applyengine102 retrieves records for the query from theexternal data store120. Inblock604, the log replication applyengine102 determines whether partial changes have been applied. If so, processing continues to block606, otherwise, processing continues to block608.
Inblock606, the log replication applyengine102 filters the records whose SID values are larger than a maximum transaction commit SID (“maximum value”) to provide transaction consistency. Inblock608, the log replication applyengine102 returns the records.
Since the data changes from the recovery log146 to theexternal data store120 are always active, thequery answering module190 needs to know which applied/inserted data changes are part of in-flight transactions whose changes have not been completed. That means, partial changes may not be inserted into theexternal data store120 or may be invisible to the queries. These changes in in-flight transactions should not be returned to users.
Embodiments provide option-1 and option-2.
With option-1, a partial change is not visible to queries event though they are applied as they arrive. Embodiments introduce a maximum transaction-commit SID, max_tx_commit_sid. The records in the in-flight transactions have larger SID values than max_tx_commit_sid. The returned query results filter out the records or the associated results whose SID values are larger than the max_tx_commit_sid.
Under option-1, with sequential publishing, the publishing sequence is the same as the message sequence in in-memory queue164. When hitting the last message of a transaction, embodiments update max_tx_commit_sid to the SID of the last message.
Under option-1, with parallel publishing, the records and the associated transactions are published and completed in any order. Thus, embodiments provide an automatic technique to maintain max_tx_commit_sid. In certain embodiments, another variable maximum applied SID, a maximum applied SID (max_applied_sid) is maintained at the same time. Then, max_applied_sid is the SID value for which all messages to that point have been applied to theexternal data store120. In other embodiments, an in-memory data structure is used to store the SID whose value is larger than max_applied_sid. The SIDs are stored in a sorted order or the data structure itself provides the order (such as “min heap”). Each element in the data structure stores a value of SID and a flag LAST_MSG_TX to indicate if this is the last message of a transaction. In yet other embodiments, max_applied_sid and max_tx_commit_sid are stored in both memory and a persistent media.
With option-1, with parallel publishing, when a new record is inserted into theexternal data store120, the SID of the new record is compared with max_applied_sid. If the value is not equal to max_applied_sid+1, the new record is inserted into the data structure, while preserving the order of SIDs in the data structure. If the value is equal to max_applied_sid+1, this SID value replaces the existing max_applied_sid. If the current message is the last message of the transaction, max_tx_commit_sid is updated to this new SID value. Furthermore, consecutive SIDs in the data structure immediately following the new max_applied_sid are also removed from the data structure, and the SID of the last removed entry is the new max_applied_sid. When the value of max_applied_sid is updated, max_tx_commit_sid is the last consecutive applied SID with LAST_MSG_TX.
With option-1, with parallel publishing, for “min heap” as the data structure, embodiments enter the checking loop to check if the max_applied_sid is the same as the root's SID value (the min applied nonconsecutive SID)−1. If not equal, embodiments break the loop and check the next message. Otherwise, embodiments 1) replace the existing max_applied_sid by max_applied_sid+1, 2) if it is the last message of a transaction, max_tx_commit_sid is updated to max_applied_sid+1, 3) remove the root node, 4) continue the checking loop using the new root of min heap.
With option-2, partial changes are not applied. With embodiments, the data structure also holds the to be applied changes, unless they are consecutive, following immediately after max_applied_sid. When LAST_MSG_TX is seen, then the entire group of captured records in the same transaction are applied. In the case in which the data structure in memory cannot hold the arrived records any more in memory, those records with higher SID in the data structure are overflown to disk.
In both option-1 and option-2, in the case when some records fail to arrive at theexternal data store120, these records are retrieved from theDBMS140. If only a few records are lost or corrupted, embodiments can send messages back to thecapture engine160 to re-capture the few records from the recovery log156. One more attribute, max_applied_lsn, may be used for thecapture engine160 to find the eligible/subscribed records just after this LSN. When many records are missing, the targetexternal data store120 deletes the appended rows whose SIDs are after max_tx_commit_sid; and thesource DBMS140 drops all rows in the in-memory queue164 and restarts reading the recover log146 from max_applied_lsn.
In both option-1 and option-2, when generation of the message sequence identifier SID is reset, the targetexternal data store120 deletes records. To avoid data loss and data corruption: when SID is always consecutive, no message is lost. Also, when the CRC is calculated at the targetexternal data store120, if the CRC matches the source-side value, there is no data corruption.
FIG. 7 illustrates, in a flow chart operations for responding to a query with transaction consistency in accordance with certain embodiments. Control begins atblock700 with populating an external data store with records using entries of a change data table, wherein the change data table has entries for each transaction that has committed and is to be replicated, wherein each of the entries stores information for each log entry of log entries in a recovery log from a DBMS, wherein each of the log entries identifies a transactional change of data and a transaction completion indicator of one of commit and abort. Inblock702, in response to receiving a query about a transaction of the transactions, a set of records from the external data store are retrieved for the transaction; from the set of records, records whose sequence identifier values are larger than a maximum transaction commit sequence identifier are removed; and from the set of records, remaining records are returned having transaction consistency.
Embodiments provide a query capability with the same recorded transaction consistency at the targetexternal data store120 as is available at thesource DBMS140, especially for the applications that are unable to tolerate a dirty read. Thus, embodiments are able to recover the transaction consistency when answering queries at the targetexternal data store120.
Embodiments enable a data store external to a DBMS to efficiently retrieve information recorded in the transaction recovery log of the DBMS with the same recorded transaction consistency.
Big data platforms, such as the Apache® Hadoop® platform and the Apache® Spark platform, enable analytics on data processed with a DBMS. (Apache and Hadoop are registered trademarks of the Apache Software Foundation in the United States and/or other countries.) A recovery log captures the change history of the DBMS transactional data.
With embodiments, the recovery log is available on big data platforms, and the decoded recovery log may be used for history trend analysis, compliance monitoring, online fraud detection, online preference recommendation, transaction hot-spot identification, query-able data archive of DBMS, data access pattern correlation, credit investigation, online DBMS data exploration and visualization, etc. Embodiments provide highly scalable data replication from a DBMS recovery log to the big data platforms for data retrieval exploited by advanced analysis and analytics exploration.
Embodiments allow queries to return data from a target external data store that is consistent based on in-flight replication of source updates that are being applied in multiple independent transactions. With embodiments, the source unit of work (or unit of recovery) is not applied at the targetexternal data source120 in an atomic operation, and this allows queries to ignore the parts that have already been applied for source UORs that are still being processed. Embodiments provide performance enhancement, compared with the conventional solutions. Source UOR/transactions are split into multiple independent table-specific replication channels. In the target side, the replication channels are applied in parallel, and the changes in each channel can also be replayed in parallel for better performance. The performance gains are more obvious when the target systems are append-only file systems (like HDFS). For better performance, each row-specific change may be applied in a non-atomic way in the targetexternal data store120. For target-side queries, the source-side transaction consistency is recovered.
Based on the observation that transaction consistency is relevant when data is queried, embodiments introduce a new way for lazy database replication without sacrificing transaction consistency, replay parallelism/performance in the target system. Embodiments are more feasible when the target system is big-data processing platforms, which are based on append-only files. All the changes captured in the source database append on the files in the target database without negative performance impacts by dependency checking and throttling. Transaction consistency is recovered when a query is answered. All the inconsistent data (including both out-of-order replays and partial replays) are filtered out by the target system by using the transaction commit identifiers generated in the source database. Thus, embodiments maximize the transaction replay parallelism in the target database without compromising the integrity of the data. Embodiments require significantly less overhead than conventional approaches. More importantly, it is easily adaptable to various types of big data processing systems when replicating data from traditional databases. Another advantage is this approach off-loads computations cost at source database side which very often is resource constrained.
Embodiments provide a synchronized and consistent query result from an unsynchronized parallel store of data. This allows fully deterministic queries more commonly done on a dedicated DBMS to be performed on other scalable programming environments. Embodiments provide the ability for clients to leverage newer analytics engines, without compromising the deterministic query behavior they are familiar with from a DBMS. With embodiments, multiple processing streams are used to deal with the source data value, which means that embodiments be used by large enterprises.
Embodiments are directed to transaction consistency query support for replicated data from DBMS recovery log to external data stores comprising: receiving a recovery log from a database management system (DBMS) identifying one or more transactional changes of data comprising CRUD operations of records and transaction completion [commit or abort] by a system remote to the DBMS; replaying the recovery log in the system by inserting data from the records into an in memory data structure tracking a summarization of transaction entries comprising a status of commit, abort, and in-process; and responsive to receiving a request for information about a transaction from a requestor, utilizing the summarization of transaction entries to return the information to the requestor.
In certain embodiments, the summarization of transaction entries include a sequence number, a log sequence number, a transaction identifier, a last transaction message indicator, a commit time, and a data loss indictor. In certain embodiments, the returned information contains records for committed transactions. In certain embodiments, the returned information permits returning non-committed data for queries that do not need consistent data. In certain embodiments, the returned information contains completed data. In certain embodiments, the returned information contains partial data.
FIG. 8 illustrates acomputing environment810 in accordance with certain embodiments. In certain embodiments, the computing environment is a cloud computing environment. Referring toFIG. 8,computer node812 is only one example of a suitable computing node and is not intended to suggest any limitation as to the scope of use or functionality of embodiments of the invention described herein. Regardless,computer node812 is capable of being implemented and/or performing any of the functionality set forth hereinabove.
Thecomputer node812 may be a computer system, which is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations that may be suitable for use withcomputer node812 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above systems or devices, and the like.
Computer node812 may be described in the general context of computer system executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, and so on that perform particular tasks or implement particular abstract data types.Computer node812 may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
As shown inFIG. 8,computer node812 incloud computing node810 is shown in the form of a general-purpose computing device. The components ofcomputer node812 may include, but are not limited to, one or more processors orprocessing units816, asystem memory828, and abus818 that couples various system components includingsystem memory828 toprocessor816.
Bus818 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnects (PCI) bus.
Computer node812 typically includes a variety of computer system readable media. Such media may be any available media that is accessible bycomputer node812, and it includes both volatile and non-volatile media, removable and non-removable media.
System memory828 can include computer system readable media in the form of volatile memory, such as random access memory (RAM)830 and/orcache memory832.Computer node812 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only,storage system834 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a “hard drive”). Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “floppy disk”), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each can be connected tobus818 by one or more data media interfaces. As will be further depicted and described below,memory828 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program/utility840, having a set (at least one) ofprogram modules842, may be stored inmemory828 by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data or some combination thereof, may include an implementation of a networking environment.Program modules842 generally carry out the functions and/or methodologies of embodiments of the invention as described herein.
Computer node812 may also communicate with one or moreexternal devices814 such as a keyboard, a pointing device, adisplay824, etc.; one or more devices that enable a user to interact withcomputer node812; and/or any devices (e.g., network card, modem, etc.) that enablecomputer node812 to communicate with one or more other computing devices. Such communication can occur via Input/Output (I/O) interfaces822. Still yet,computer node812 can communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and/or a public network (e.g., the Internet) vianetwork adapter820. As depicted,network adapter820 communicates with the other components ofcomputer node812 viabus818. It should be understood that although not shown, other hardware and/or software components could be used in conjunction withcomputer node812. Examples, include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
In certain embodiments, thebig data platform100, theexternal data store120, and/or theDBMS140 have the architecture ofcomputer node812. In certain embodiments, thebig data platform100, theexternal data store120, and/or theDBMS140 are part of a cloud environment. In certain alternative embodiments, thebig data platform100, theexternal data store120, and/or theDBMS140 are not part of a cloud environment.
Cloud Embodiments
It is understood in advance that although this disclosure includes a detailed description on cloud computing, implementation of the teachings recited herein are not limited to a cloud computing environment. Rather, embodiments of the present invention are capable of being implemented in conjunction with any other type of computing environment now known or later developed.
Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g. networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal management effort or interaction with a provider of the service. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
Characteristics are as follows:
On-demand self-service: a cloud consumer can unilaterally provision computing capabilities, such as server time and network storage, as needed automatically without requiring human interaction with the service's provider.
Broad network access: capabilities are available over a network and accessed through standard mechanisms that promote use by heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and PDAs).
Resource pooling: the provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically assigned and reassigned according to demand. There is a sense of location independence in that the consumer generally has no control or knowledge over the exact location of the provided resources but may be able to specify location at a higher level of abstraction (e.g., country, state, or datacenter).
Rapid elasticity: capabilities can be rapidly and elastically provisioned, in some cases automatically, to quickly scale out and rapidly released to quickly scale in. To the consumer, the capabilities available for provisioning often appear to be unlimited and can be purchased in any quantity at any time.
Measured service: cloud systems automatically control and optimize resource use by leveraging a metering capability at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported providing transparency for both the provider and consumer of the utilized service.
Service Models are as follows:
Software as a Service (SaaS): the capability provided to the consumer is to use the provider's applications running on a cloud infrastructure. The applications are accessible from various client devices through a thin client interface such as a web browser (e.g., web-based e-mail). The consumer does not manage or control the underlying cloud infrastructure including network, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings.
Platform as a Service (PaaS): the capability provided to the consumer is to deploy onto the cloud infrastructure consumer-created or acquired applications created using programming languages and tools supported by the provider. The consumer does not manage or control the underlying cloud infrastructure including networks, servers, operating systems, or storage, but has control over the deployed applications and possibly application hosting environment configurations.
Infrastructure as a Service (IaaS): the capability provided to the consumer is to provision processing, storage, networks, and other fundamental computing resources where the consumer is able to deploy and run arbitrary software, which can include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure but has control over operating systems, storage, deployed applications, and possibly limited control of select networking components (e.g., host firewalls).
Deployment Models are as follows:
Private cloud: the cloud infrastructure is operated solely for an organization. It may be managed by the organization or a third party and may exist on-premises or off-premises.
Community cloud: the cloud infrastructure is shared by several organizations and supports a specific community that has shared concerns (e.g., mission, security requirements, policy, and compliance considerations). It may be managed by the organizations or a third party and may exist on-premises or off-premises.
Public cloud: the cloud infrastructure is made available to the general public or a large industry group and is owned by an organization selling cloud services.
Hybrid cloud: the cloud infrastructure is a composition of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technology that enables data and application portability (e.g., cloud bursting for load-balancing between clouds).
A cloud computing environment is service oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure comprising a network of interconnected nodes.
Referring now toFIG. 9, illustrativecloud computing environment950 is depicted. As shown,cloud computing environment950 comprises one or morecloud computing nodes910 with which local computing devices used by cloud consumers, such as, for example, personal digital assistant (PDA) orcellular telephone954A,desktop computer954B,laptop computer954C, and/orautomobile computer system954N may communicate. Nodes710 may communicate with one another. They may be grouped (not shown) physically or virtually, in one or more networks, such as Private, Community, Public, or Hybrid clouds as described hereinabove, or a combination thereof. This allowscloud computing environment950 to offer infrastructure, platforms and/or software as services for which a cloud consumer does not need to maintain resources on a local computing device. It is understood that the types ofcomputing devices954A-N shown inFIG. 9 are intended to be illustrative only and thatcomputing nodes910 andcloud computing environment950 can communicate with any type of computerized device over any type of network and/or network addressable connection (e.g., using a web browser).
Referring now toFIG. 10, a set of functional abstraction layers provided by cloud computing environment950 (FIG. 9) is shown. It should be understood in advance that the components, layers, and functions shown inFIG. 10 are intended to be illustrative only and embodiments of the invention are not limited thereto. As depicted, the following layers and corresponding functions are provided:
Hardware andsoftware layer1060 includes hardware and software components. Examples of hardware components include:mainframes1061; RISC (Reduced Instruction Set Computer) architecture basedservers1062;servers1063;blade servers1064;storage devices1065; and networks andnetworking components1066. In some embodiments, software components include networkapplication server software1067 anddatabase software1068.
Virtualization layer1070 provides an abstraction layer from which the following examples of virtual entities may be provided:virtual servers1071;virtual storage1072;virtual networks1073, including virtual private networks; virtual applications andoperating systems1074; andvirtual clients1075.
In one example,management layer1080 may provide the functions described below.Resource provisioning1081 provides dynamic procurement of computing resources and other resources that are utilized to perform tasks within the cloud computing environment. Metering andPricing1082 provide cost tracking as resources are utilized within the cloud computing environment, and billing or invoicing for consumption of these resources. In one example, these resources may comprise application software licenses. Security provides identity verification for cloud consumers and tasks, as well as protection for data and other resources.User portal1083 provides access to the cloud computing environment for consumers and system administrators.Service level management1084 provides cloud computing resource allocation and management such that required service levels are met. Service Level Agreement (SLA) planning andfulfillment1085 provide pre-arrangement for, and procurement of, cloud computing resources for which a future requirement is anticipated in accordance with an SLA.
Workloads layer1090 provides examples of functionality for which the cloud computing environment may be utilized. Examples of workloads and functions which may be provided from this layer include: mapping andnavigation1091; software development andlifecycle management1092; virtualclassroom education delivery1093; data analytics processing1094;transaction processing1095; and query processing withtransaction consistency1096.
Thus, in certain embodiments, software or a program, implementing query processing with transaction consistency in accordance with embodiments described herein, is provided as a service in a cloud environment.
Additional Embodiment Details
The present invention may be a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.

Claims (6)

What is claimed is:
1. A computer-implemented method for transaction consistency query support for replicated data from a recovery log to an external data store, comprising 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-implemented method ofclaim 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-implemented method ofclaim 1, wherein the remaining records contain records for committed transactions and do not contain records for the in-flight transactions.
4. The computer-implemented method ofclaim 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-implemented method ofclaim 1, wherein a Software as a Service (SaaS) is configured to perform the operations of the method.
6. The computer-implemented method ofclaim 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.
US15/850,4542016-06-032017-12-21Transaction consistency query support for replicated data from recovery log to external data storesActive2036-08-18US11455217B2 (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
US15/850,454US11455217B2 (en)2016-06-032017-12-21Transaction consistency query support for replicated data from recovery log to external data stores

Applications Claiming Priority (2)

Application NumberPriority DateFiling DateTitle
US15/173,502US11442823B2 (en)2016-06-032016-06-03Transaction consistency query support for replicated data from recovery log to external data stores
US15/850,454US11455217B2 (en)2016-06-032017-12-21Transaction consistency query support for replicated data from recovery log to external data stores

Related Parent Applications (1)

Application NumberTitlePriority DateFiling Date
US15/173,502ContinuationUS11442823B2 (en)2016-06-032016-06-03Transaction consistency query support for replicated data from recovery log to external data stores

Publications (2)

Publication NumberPublication Date
US20180113771A1 US20180113771A1 (en)2018-04-26
US11455217B2true US11455217B2 (en)2022-09-27

Family

ID=60483317

Family Applications (2)

Application NumberTitlePriority DateFiling Date
US15/173,502Active2038-05-22US11442823B2 (en)2016-06-032016-06-03Transaction consistency query support for replicated data from recovery log to external data stores
US15/850,454Active2036-08-18US11455217B2 (en)2016-06-032017-12-21Transaction consistency query support for replicated data from recovery log to external data stores

Family Applications Before (1)

Application NumberTitlePriority DateFiling Date
US15/173,502Active2038-05-22US11442823B2 (en)2016-06-032016-06-03Transaction consistency query support for replicated data from recovery log to external data stores

Country Status (1)

CountryLink
US (2)US11442823B2 (en)

Families Citing this family (38)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US10216582B2 (en)*2016-08-152019-02-26International Business Machines CorporationRecovery log analytics with a big data management platform
US10540342B2 (en)*2017-05-082020-01-21American Express Travel Related Services Company, Inc.In-memory transaction processing
US10860618B2 (en)2017-09-252020-12-08Splunk Inc.Low-latency streaming analytics
US11615113B2 (en)2017-11-032023-03-28International Business Machines CorporationNet change mirroring optimization across transactions in replication environment
US10942823B2 (en)*2018-01-292021-03-09Guy PardonTransaction processing system, recovery subsystem and method for operating a recovery subsystem
US10997180B2 (en)2018-01-312021-05-04Splunk Inc.Dynamic query processor for streaming and batch queries
US10430100B2 (en)*2018-02-282019-10-01International Business Machines CorporationTransactional operations in multi-master distributed data management systems
US11120046B2 (en)*2018-05-042021-09-14Microsoft Technology Licensing LlcData replication in a distributed storage system
US11061909B2 (en)*2018-07-192021-07-13Sap SeGenerating a single transactional data stream from multiple database logs
US10936585B1 (en)2018-10-312021-03-02Splunk Inc.Unified data processing across streaming and indexed data sets
US11086840B2 (en)*2018-12-072021-08-10Snowflake Inc.Transactional streaming of change tracking data
US11403179B1 (en)*2018-12-132022-08-02Amazon Technologies, Inc.Transactionally consistent point-in-time restore
US11188228B1 (en)*2019-03-252021-11-30Amazon Technologies, Inc.Graphing transaction operations for transaction compliance analysis
US10997206B2 (en)*2019-04-082021-05-04Sap SeSubscription-based change data capture mechanism using database triggers
US11238048B1 (en)2019-07-162022-02-01Splunk Inc.Guided creation interface for streaming data processing pipelines
US11144529B2 (en)*2019-08-092021-10-12Sap SeConsistent data replication in an event-driven architecture
US11494394B2 (en)*2019-12-302022-11-08Paypal, Inc.Data versioning in a multi-datacenter topology
US11614923B2 (en)2020-04-302023-03-28Splunk Inc.Dual textual/graphical programming interfaces for streaming data processing pipelines
CN111581227A (en)*2020-06-012020-08-25腾讯科技(深圳)有限公司Event pushing method and device, computer equipment and storage medium
US11455235B2 (en)*2020-07-242022-09-27Paypal, Inc.Online query execution using a big data framework
US11409618B2 (en)2020-09-142022-08-09International Business Machines CorporationTransaction recovery
CN112307118B (en)*2020-09-302024-03-22武汉达梦数据库股份有限公司Method for guaranteeing data consistency based on log analysis synchronization and synchronization system
CN113760923B (en)*2020-10-272023-09-05北京京东振世信息技术有限公司Data heterogeneous method, device, system and storage medium
US11711381B2 (en)2020-10-292023-07-25International Business Machines CorporationAutomatic hotspot identification in network graphs
CN112347189A (en)*2020-11-052021-02-09江苏电力信息技术有限公司 The discovery and recovery method of financial data consistency failure based on cloud computing
CN112612647B (en)*2020-12-292024-02-23上海达梦数据库有限公司Log parallel replay method, device, equipment and storage medium
US20220245156A1 (en)2021-01-292022-08-04Splunk Inc.Routing data between processing pipelines via a user defined data stream
US12164524B2 (en)2021-01-292024-12-10Splunk Inc.User interface for customizing data streams and processing pipelines
US11687487B1 (en)2021-03-112023-06-27Splunk Inc.Text files updates to an active processing pipeline
US11663219B1 (en)2021-04-232023-05-30Splunk Inc.Determining a set of parameter values for a processing pipeline
US12242892B1 (en)2021-04-302025-03-04Splunk Inc.Implementation of a data processing pipeline using assignable resources and pre-configured resources
US11604789B1 (en)2021-04-302023-03-14Splunk Inc.Bi-directional query updates in a user interface
US11836153B1 (en)*2021-06-142023-12-05Eightfold AI Inc.Bidirectional high-volume data synchronization between intelligent platform and remote system with minimal latency
US11989592B1 (en)2021-07-302024-05-21Splunk Inc.Workload coordinator for providing state credentials to processing tasks of a data processing pipeline
US12164522B1 (en)2021-09-152024-12-10Splunk Inc.Metric processing for streaming machine learning applications
CN114172609B (en)*2021-12-062025-02-14深圳益邦阳光有限公司 Data transmission method, device, equipment and medium
US12242458B2 (en)*2022-01-312025-03-04Oracle International CorporationTransactional query processing in external tables
CN117453730B (en)*2023-12-212024-03-08深圳海智创科技有限公司Data query method, device, equipment and storage medium

Citations (30)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5553279A (en)*1993-10-081996-09-03International Business Machines CorporationLossless distribution of time series data in a relational data base network
US5870761A (en)1996-12-191999-02-09Oracle CorporationParallel queue propagation
US5956704A (en)*1997-06-051999-09-21Oracle CorporationMethod and apparatus for parallelizing operations that insert data into an existing data container
US20030172091A1 (en)*2001-05-242003-09-11Norcott William D.Synchronous change data capture in a relational database
US6622152B1 (en)2000-05-092003-09-16International Business Machines CorporationRemote log based replication solution
US20040199552A1 (en)2003-04-012004-10-07Microsoft CorporationTransactionally consistent change tracking for databases
US6804672B1 (en)2001-01-312004-10-12Oracle International CorporationMethod and mechanism for dependency tracking
US6978396B2 (en)2002-05-302005-12-20Solid Information Technology OyMethod and system for processing replicated transactions parallel in secondary server
US7076508B2 (en)*2002-08-122006-07-11International Business Machines CorporationMethod, system, and program for merging log entries from multiple recovery log files
US7406486B1 (en)2002-04-102008-07-29Oracle International CorporationTransforming transactions to increase parallelism when replicating
US20080281865A1 (en)*2007-05-082008-11-13Bmc Software, Inc.Database Recovery Using Logs Applied to Consistent Copies
US7457796B2 (en)2004-07-082008-11-25International Business Machines CorporationMethod using virtual replicated tables in a cluster database management system
US7490083B2 (en)2004-02-272009-02-10International Business Machines CorporationParallel apply processing in data replication with preservation of transaction integrity and source ordering of dependent updates
US7716181B2 (en)*2004-06-252010-05-11International Business Machines CorporationMethods, apparatus and computer programs for data replication comprising a batch of descriptions of data changes
US8032885B2 (en)2005-10-112011-10-04Oracle International CorporationMethod and medium for combining operation commands into database submission groups
US20120084260A1 (en)*2010-09-302012-04-05International Business Machines CorporationLog-shipping data replication with early log record fetching
US20120150829A1 (en)*2010-12-102012-06-14International Business Machines CorporationAsynchronous Deletion of a Range of Messages Processed by a Parallel Database Replication Apply Process
US20120166407A1 (en)*2010-12-282012-06-28Juchang LeeDistributed Transaction Management Using Two-Phase Commit Optimization
US20120167098A1 (en)*2010-12-282012-06-28Juchang LeeDistributed Transaction Management Using Optimization Of Local Transactions
US8296269B2 (en)*2006-05-122012-10-23Oracle International CorporationApparatus and method for read consistency in a log mining system
US20130073513A1 (en)2010-05-172013-03-21Technische Universitat MunchenHybrid OLTP and OLAP High Performance Database System
US8473953B2 (en)2010-07-212013-06-25International Business Machines CorporationBatching transactions to apply to a database
US8650155B2 (en)2008-02-262014-02-11Oracle International CorporationApparatus and method for log based replication of distributed transactions using globally acknowledged commits
US8738568B2 (en)2011-05-052014-05-27Oracle International CorporationUser-defined parallelization in transactional replication of in-memory database
US8843441B1 (en)*2012-01-172014-09-23Amazon Technologies, Inc.System and method for maintaining a master replica for reads and writes in a data store
US20150199415A1 (en)2014-01-162015-07-16International Business Machines CorporationParallel transaction messages for database replication
US20150254298A1 (en)2014-03-062015-09-10International Business Machines CorporationRestoring database consistency integrity
US9280591B1 (en)*2013-09-202016-03-08Amazon Technologies, Inc.Efficient replication of system transactions for read-only nodes of a distributed database
US9444811B2 (en)*2014-10-212016-09-13Commvault Systems, Inc.Using an enhanced data agent to restore backed up data across autonomous storage management systems
US10009438B2 (en)*2015-05-202018-06-26Sandisk Technologies LlcTransaction log acceleration

Patent Citations (34)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5553279A (en)*1993-10-081996-09-03International Business Machines CorporationLossless distribution of time series data in a relational data base network
US5870761A (en)1996-12-191999-02-09Oracle CorporationParallel queue propagation
US5956704A (en)*1997-06-051999-09-21Oracle CorporationMethod and apparatus for parallelizing operations that insert data into an existing data container
US6622152B1 (en)2000-05-092003-09-16International Business Machines CorporationRemote log based replication solution
US6804672B1 (en)2001-01-312004-10-12Oracle International CorporationMethod and mechanism for dependency tracking
US20030172091A1 (en)*2001-05-242003-09-11Norcott William D.Synchronous change data capture in a relational database
US7406486B1 (en)2002-04-102008-07-29Oracle International CorporationTransforming transactions to increase parallelism when replicating
US6978396B2 (en)2002-05-302005-12-20Solid Information Technology OyMethod and system for processing replicated transactions parallel in secondary server
US7076508B2 (en)*2002-08-122006-07-11International Business Machines CorporationMethod, system, and program for merging log entries from multiple recovery log files
US20040199552A1 (en)2003-04-012004-10-07Microsoft CorporationTransactionally consistent change tracking for databases
US7490083B2 (en)2004-02-272009-02-10International Business Machines CorporationParallel apply processing in data replication with preservation of transaction integrity and source ordering of dependent updates
US8150812B2 (en)*2004-06-252012-04-03International Business Machines CorporationMethods, apparatus and computer programs for data replication
US7716181B2 (en)*2004-06-252010-05-11International Business Machines CorporationMethods, apparatus and computer programs for data replication comprising a batch of descriptions of data changes
US8032488B2 (en)2004-07-082011-10-04International Business Machines CorporationSystem using virtual replicated tables in a cluster database management system
US7457796B2 (en)2004-07-082008-11-25International Business Machines CorporationMethod using virtual replicated tables in a cluster database management system
US8032885B2 (en)2005-10-112011-10-04Oracle International CorporationMethod and medium for combining operation commands into database submission groups
US8296269B2 (en)*2006-05-122012-10-23Oracle International CorporationApparatus and method for read consistency in a log mining system
US20080281865A1 (en)*2007-05-082008-11-13Bmc Software, Inc.Database Recovery Using Logs Applied to Consistent Copies
US8650155B2 (en)2008-02-262014-02-11Oracle International CorporationApparatus and method for log based replication of distributed transactions using globally acknowledged commits
US20130073513A1 (en)2010-05-172013-03-21Technische Universitat MunchenHybrid OLTP and OLAP High Performance Database System
US8473953B2 (en)2010-07-212013-06-25International Business Machines CorporationBatching transactions to apply to a database
US20120084260A1 (en)*2010-09-302012-04-05International Business Machines CorporationLog-shipping data replication with early log record fetching
US20120191680A1 (en)*2010-12-102012-07-26International Business Machines CorporationAsynchronous Deletion of a Range of Messages Processed by a Parallel Database Replication Apply Process
US8341134B2 (en)*2010-12-102012-12-25International Business Machines CorporationAsynchronous deletion of a range of messages processed by a parallel database replication apply process
US20120150829A1 (en)*2010-12-102012-06-14International Business Machines CorporationAsynchronous Deletion of a Range of Messages Processed by a Parallel Database Replication Apply Process
US20120167098A1 (en)*2010-12-282012-06-28Juchang LeeDistributed Transaction Management Using Optimization Of Local Transactions
US20120166407A1 (en)*2010-12-282012-06-28Juchang LeeDistributed Transaction Management Using Two-Phase Commit Optimization
US8738568B2 (en)2011-05-052014-05-27Oracle International CorporationUser-defined parallelization in transactional replication of in-memory database
US8843441B1 (en)*2012-01-172014-09-23Amazon Technologies, Inc.System and method for maintaining a master replica for reads and writes in a data store
US9280591B1 (en)*2013-09-202016-03-08Amazon Technologies, Inc.Efficient replication of system transactions for read-only nodes of a distributed database
US20150199415A1 (en)2014-01-162015-07-16International Business Machines CorporationParallel transaction messages for database replication
US20150254298A1 (en)2014-03-062015-09-10International Business Machines CorporationRestoring database consistency integrity
US9444811B2 (en)*2014-10-212016-09-13Commvault Systems, Inc.Using an enhanced data agent to restore backed up data across autonomous storage management systems
US10009438B2 (en)*2015-05-202018-06-26Sandisk Technologies LlcTransaction log acceleration

Non-Patent Citations (25)

* Cited by examiner, † Cited by third party
Title
Cecchet, E., G. Candea, and A. Ailamaki, "Middleware-based Database Replication: The Gaps Between Theory and Practice", SIGMOD'08, Jun. 9-12, 2008, Copyright 2008 ACM, Total 14 pp.
Final Office Action 1 for U.S. Appl. No. 15/173,502, 20 pp., dated May 22, 2019.
Final Office Action 2 for U.S. Appl. No. 15/173,502, 27 pp., dated Jun. 19, 2020.
Final Office Action 3 for U.S. Appl. No. 15/173,502, 32 pp., dated Dec. 23, 2021.
Gray, J., P. Helland, P. O'Neil, and D. Shasha, "The Dangers of Replication and a Solution", 1996, ACM SIGMOD, p. 173-182., Total 10 pp.
IP.com, "Methodology for Intelligent Recovery Model for System with Missing/Corrupted Transactional Log Files", IP.com No. 000239860, can be retrieved at <URL: IP.com No. 000239860>, Dec. 5, 2014, Total 6 pp.
Kemme, B., R.J. Peris, and M. Patino-Martinez, "Database Replication: Synthesis Lectures on Data Management", Copyright © 2010 by Morgan & Claypool, Total 154 pp.
Kim, W., W. Kelley, S. Gala, and I. Choi, "SQL/M: A Unified Relational and Object-Oriented Multidatabase Language"; Journal of Computer and Software Engineering, vol. 3, No. 1, pp. 71-99; 1995, Total 15 pp.
List of IBM Patents or Patent Applications Treated as Related, Dec. 21, 2017, Total 2 pp.
Mell, P. and T. Grange, "Effectively and Securely Using the Cloud Computing Paradigm", [online], Oct. 7, 2009, retrieved from the Internet at <URL: http://csrc.nist.gov/groups/SNS/cloud-computing/cloud-computing-v26.ppt>, Total 80 pp.
Mell, P. and T. Grange, "The NIST Definition of Cloud Computing (Draft)", Sep. 2011, Computer Security Division Information Technology Laboratory National Institute of Standards and Technology, Total 7 pp.
Min, H., Z. Gao, X. Li, J. Huang, Y. Jin, S. Bourbonnais, M. Zheng, and G. Fuh, "Inter-Data-Center Large-scale Database Replication Optimization—a Workload Driven Partitioning Approach", 25th International Conference on Database and Expert Systems Applications (DEXA) 2014: 417-432, Total 15 pp.
Notice of Allowance dated Jun. 29, 2022, pp. 10, for U.S. Appl. No. 15/173,502.
Office Action 1 for U.S. Appl. No. 15/173,502, pp. 31, dated Oct. 4, 2018.
Office Action 3 for U.S. Appl. No. 15/173,502, 18 pp., dated Dec. 13, 2019.
Office Action 5 for U.S. Appl. No. 15/173,502, 23 pp., dated Jun. 10, 2021. [57.374 (OA5)].
Pre-Appeal Brief Request for Review for U.S. Appl. No. 15/173,502, 6 pp., dated Feb. 22, 2022.
Preliminary Amendment, Dec. 21, 2017, for U.S. Appl. No. 15/173,502, filed Jun. 3, 2016 by S. Bourbonnais et al., Total 5 pp. [57.374 (PrelimAmend)].
Response to Final Office Action 1 for U.S. Appl. No. 15/173,502, 12 pp., dated Aug. 22, 2019.
Response to Final Office Action 2 for U.S. Appl. No. 15/173,502, 14 pp., dated Sep. 15, 2020.
Response to Office Action 1 for U.S. Appl. No. 15/173,502, pp. 20, dated Jan. 4, 2019.
Response to Office Action 3 for U.S. Appl. No. 15/173,502, 13 pp., dated Mar. 13, 2020.
Response to Office Action 5 for U.S. Appl. No. 15/173,502, 12 pp., dated Sep. 10, 2021.
Traiger, I.L., J.N. Gray, C.A. Galtieri, B.G. Lindsay, "Transactions and Consistency in Distributed Database Systems", Jun. 5, 1979, IP.com No. 000148821, can be retrieved at <URL: http://ip.com/IPCOM/000148821>, Total 21 pp.
U.S. Appl. No. 15/173,502, filed Jun. 3, 2016, entitled "Transaction Consistency Query Support for Replicated Data From Recovery Log to External Data Stores", invented by S. Bourbonnais, Total 43 pp. [57.374 (Appln)].

Also Published As

Publication numberPublication date
US20180113771A1 (en)2018-04-26
US20170351585A1 (en)2017-12-07
US11442823B2 (en)2022-09-13

Similar Documents

PublicationPublication DateTitle
US11455217B2 (en)Transaction consistency query support for replicated data from recovery log to external data stores
US10216584B2 (en)Recovery log analytics with a big data management platform
US11977532B2 (en)Log record identification using aggregated log indexes
JP6514306B2 (en) Restore database streaming from backup system
US9727625B2 (en)Parallel transaction messages for database replication
Macedo et al.Redis cookbook: Practical techniques for fast data manipulation
US9772911B2 (en)Pooling work across multiple transactions for reducing contention in operational analytics systems
US9990224B2 (en)Relaxing transaction serializability with statement-based data replication
US9152683B2 (en)Database-transparent near online archiving and retrieval of data
US10303678B2 (en)Application resiliency management using a database driver
US11853284B2 (en)In-place updates with concurrent reads in a decomposed state
US11341159B2 (en)In-stream data load in a replication environment
US8862544B2 (en)Grid based replication

Legal Events

DateCodeTitleDescription
FEPPFee payment procedure

Free format text:ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: BIG.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

ASAssignment

Owner name:INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW YORK

Free format text:ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:BOURBONNAIS, SERGE;D'COSTA, AUSTIN F.M.;LAU, YAT ON;AND OTHERS;SIGNING DATES FROM 20160527 TO 20160602;REEL/FRAME:044974/0667

Owner name:INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y

Free format text:ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:BOURBONNAIS, SERGE;D'COSTA, AUSTIN F.M.;LAU, YAT ON;AND OTHERS;SIGNING DATES FROM 20160527 TO 20160602;REEL/FRAME:044974/0667

STPPInformation on status: patent application and granting procedure in general

Free format text:RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPPInformation on status: patent application and granting procedure in general

Free format text:FINAL REJECTION MAILED

STPPInformation on status: patent application and granting procedure in general

Free format text:DOCKETED NEW CASE - READY FOR EXAMINATION

STPPInformation on status: patent application and granting procedure in general

Free format text:NON FINAL ACTION MAILED

STPPInformation on status: patent application and granting procedure in general

Free format text:RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPPInformation on status: patent application and granting procedure in general

Free format text:FINAL REJECTION MAILED

STPPInformation on status: patent application and granting procedure in general

Free format text:DOCKETED NEW CASE - READY FOR EXAMINATION

STPPInformation on status: patent application and granting procedure in general

Free format text:NON FINAL ACTION MAILED

STPPInformation on status: patent application and granting procedure in general

Free format text:RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPPInformation on status: patent application and granting procedure in general

Free format text:FINAL REJECTION MAILED

STPPInformation on status: patent application and granting procedure in general

Free format text:DOCKETED NEW CASE - READY FOR EXAMINATION

STPPInformation on status: patent application and granting procedure in general

Free format text:NOTICE OF ALLOWANCE MAILED -- APPLICATION RECEIVED IN OFFICE OF PUBLICATIONS

STPPInformation on status: patent application and granting procedure in general

Free format text:PUBLICATIONS -- ISSUE FEE PAYMENT VERIFIED

STCFInformation on status: patent grant

Free format text:PATENTED CASE


[8]ページ先頭

©2009-2025 Movatter.jp