Ensuring the same completion status for transactions after recovery in a synchronous replication environment

US9424145B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-9424145-B2
Application numberUS-201414315138-A
CountryUS
Kind codeB2
Filing dateJun 25, 2014
Priority dateJun 25, 2014
Publication dateAug 23, 2016
Grant dateAug 23, 2016

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.

Disclosed in some examples is a method, the method including detecting that an RDMS is recovering from a failure; sending a request for a last committed transaction on a replication component to the replication component; receiving, from the replication component, the last committed transaction which identifies a transaction that was the last committed transaction at a replication component at a time of RDMS failure; determining that a transaction log on the RDMS includes a transaction that had not yet been replicated at the time of RDMS failure which was committed on the transaction log subsequent to the last committed transaction received from the replication component; and based on that determination rolling back the transaction that had not yet been replicated at the time of RDMS failure.

First claim

Opening claim text (preview).

What is claimed is: 1. A method performed by a Relational Database Management System (RDMS), the method comprising: detecting that the RDMS is recovering from a failure; receiving, over the network, a request from a replication component to obtain a last committed transaction of a transaction log of the RDMS; responsive to receiving the request, sending the last committed transaction of the transaction log of the RDMS to the replication component; receiving, from the replication component, a last committed transaction of the replication component, the last committed transaction of the replication component identifying a transaction that was the last committed transaction at the replication component at a time of RDMS failure; determining, using one or more processors, that a transaction log on the RDMS includes a transaction that had not yet been replicated at the time of RDMS failure, the transaction that had not yet been replicated at the time of RDMS failure being committed on the transaction log subsequent to the last committed transaction of the replication component received from the replication component; and based on the determining that the transaction log includes the transaction that had not yet been replicated at the time of RDMS failure, rolling back the transaction that had not yet been replicated at the time of RDMS failure. 2. The method of claim 1 , comprising: receiving, from the replication component, a transaction that was committed on the replication component but was not committed on the transaction log prior to the time of RDMS failure; and writing the transaction to the transaction log. 3. The method of claim 1 , wherein rolling back the transaction that had not yet been replicated at the time of RDMS failure comprises: inserting at least one log record into the transaction log to reverse the work of the transaction that had not yet been replicated at the time of failure. 4. A Relational Database Management System (RDMS) comprising: a processor configured to include: a replication agent module configured to: detect that the RDMS is recovering from a failure; receive, over the network, a request from a replication component to obtain a last committed transaction of a transaction log of the RDMS; responsive to receiving the request, send the last committed transaction of the transaction log of the RDMS to the replication component: receive, from the replication component, a last committed transaction on the replication component, the last committed transaction the replication component identifying a transaction that was the last committed transaction at the replication component at a time of RDMS failure; determine, using one or more processors, that the RDMS includes a transaction that had not yet been replicated at the time of RDMS failure, the transaction that had not yet been replicated at the time of RDMS failure being committed on the RDMS subsequent to the last committed transaction on the replication component received from the replication component; and cause the transaction that had not yet been replicated at the time of RDMS failure to be rolled back based on the determining that the transaction log includes the transaction that had not yet been replicated at the time of RDMS failure. 5. The RDMS of claim 4 , wherein the replication agent module is configured to: receive, from the replication component, a transaction that was committed on the replication component but was not committed on the RDMS prior to the time of RDMS failure; and cause the transaction to be committed on the RDMS. 6. The RDMS of claim 4 , wherein the RDMS is configured to transition to a standby mode and wherein the replication agent module is configured to receive, from the replication component, a transaction committed by a newly active RDMS. 7. A machine-readable medium that stores instructions, which when performed by a machine, causes the machine to perform the operations comprising: receiving, over the network, a request from a replication component to obtain a last committed transaction of a transaction log of a Relational Database Management System (RDMS); responsive to receiving the request, sending the last committed transaction of the transaction log of the RDMS to the replication component; receiving, from the replication component, a last committed transaction of the replication component, the last committed transaction identifying a transaction that was the last committed transaction at the replication component at a time of RDMS failure; determining, using one or more processors, that a transaction log on the RDMS includes a transaction that had not yet been replicated at the time of RDMS failure, the transaction that had not yet been replicated at the time of RDMS failure being committed on the transaction log subsequent to the last committed transaction of the replication component received from the replication component; and based on the determining that the transaction log includes the transaction that had not yet been replicated at the time of RDMS failure, rolling back the transaction that had not yet been replicated at the time of RDMS failure. 8. The machine-readable medium of claim 7 , wherein the operations comprise: receiving from the replication component, a transaction that was committed on the replication component but was not committed on the transaction log prior to the time of RDMS failure; and writing the transaction to the transaction log. 9. A method performed by a replication component, the method comprising: using one or more computer processors configured to perform the operations of: sending a request for a last committed transaction to a Relational Database Management System (RDMS), the last committed transaction being a last transaction that was committed on a transaction log of the RDMS prior to a failure of the RDMS; receiving the last committed transaction from the RDMS; receiving a request from the RDMS for a last committed transaction on the transaction log of the replication component at the time of failure of the RDMS; sending the last committed transaction on the transaction log of the replication component at the time of failure of the RDMS to the RDMS; determining that an unconfirmed transaction stored in a transaction log of the replication component is subsequent to the last committed transaction from the RDMS; and sending the unconfirmed transaction to the RDMS. 10. The method of claim 9 , comprising: identifying a new transaction, the new transaction being a transaction that was replicated to the replication component from a second RDMS; and sending the new transaction to the RDMS. 11. The method of claim 9 , wherein the unconfirmed transaction is a transaction replicated from the RDMS which was not indicated as written to disk by the RDMS at a time it was replicated. 12. A system comprising: one or more computer processors configured to include: a replication module configured to: detect that a Relational Database Management System (RDMS) has come back into service after going out of service; send a request for a last committed transaction on the RDMS, the last committed transaction being a last transaction that was committed on a transaction log of the RDMS prior to a failure of the RDMS; receive the last committed transaction from the RDMS; receive a request from the RDMS for a last committed transaction on a transaction log of the replication module at the time of failure of the RDMS; send the last committed transaction on the transaction log of the replication module at the time of failure of the RDMS to the RDMS; determine, using the one or more processor

Assignees

Inventors

Classifications

  • Change logging, detection, and notification (replication G06F16/27) · CPC title

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

  • Ensuring data consistency and integrity · CPC title

  • Database-specific techniques · CPC title

  • Relational databases · 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 US9424145B2 cover?
Disclosed in some examples is a method, the method including detecting that an RDMS is recovering from a failure; sending a request for a last committed transaction on a replication component to the replication component; receiving, from the replication component, the last committed transaction which identifies a transaction that was the last committed transaction at a replication component at …
Who is the assignee on this patent?
Shang Heping, Lo Ming-Chen, Zhou Fei, and 5 more
What technology area does this patent fall under?
Primary CPC classification G06F11/1658. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Aug 23 2016 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 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).