Log management method, server, and database system

US11748215B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11748215-B2
Application numberUS-202016892590-A
CountryUS
Kind codeB2
Filing dateJun 4, 2020
Priority dateDec 5, 2017
Publication dateSep 5, 2023
Grant dateSep 5, 2023

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.

In a log management method performed by a server, the server receives a transaction and generates a command log of the transaction. When detecting the transaction is a multi-partition transaction or a non-deterministic transaction, the server generates a data log of the transaction. When the server is faulty, the server recovers data according to the command log or the data log.

First claim

Opening claim text (preview).

What is claimed is: 1. A database log management method implemented by a server and comprising: receiving a first write transaction; generating a first command log of the first write transaction; storing the first command log; detecting that the first write transaction is a first multi-partition transaction for operating at least two partitions; generating, based on detecting that the first write transaction is the first multi-partition transaction, a first data log of the first write transaction; and storing the first data log. 2. The database log management method of claim 1 , wherein when the server is faulty, the database log management method further comprises: obtaining a data snapshot that backs up first data for the server; obtaining a second command log generated after a generation time point of the data snapshot; obtaining a second data log of a second write transaction corresponding to the second command log when the second write transaction is a second multi-partition transaction; and recovering second data by replaying the second data log. 3. The database log management method of claim 1 , further comprising: receiving a second write transaction; generating a second command log of the second write transaction; storing the second command log; detecting that the second write transaction is a non-deterministic transaction for which at least two execution results are not unique; generating a second data log of the second write transaction; and storing the second data log. 4. The database log management method of claim 3 , wherein when the server is faulty, the database log management method further comprises: obtaining a data snapshot that backs up first data for the server; obtaining a third command log generated after a generation time point of the data snapshot; obtaining a third data log of a third write transaction corresponding to the third command log when the third write transaction is a third multi-partition transaction or a third non-deterministic transaction; and recovering second data by replaying the third data log. 5. The database log management method of claim 3 , further comprising: sending, after storing the first command log, a first response message of the first write transaction, wherein the first response message indicates that execution of the first write transaction has completed; and sending, after storing the second command log, a second response message of the second write transaction, wherein the second response message indicates that execution of the second write transaction has completed. 6. The database log management method of claim 1 , further comprising: sharing a shared storage system with a slave node of the server; further storing the first command log in the shared storage system; and further storing the first data log in the shared storage system. 7. The database log management method of claim 1 , further comprising sending the first command log and the first data log to a slave node of the server. 8. A server in a database system and comprising: a memory configured to store instructions; a processor coupled to the memory and configured to execute the instructions to cause the server to: receive a first write transaction; generate a first command log of the first write transaction; store the first command log; detect that the first write transaction is a first multi-partition transaction for operating at least two partitions; generate, based on detecting that the first write transaction is the first multi-partition transaction, a first data log of the first write transaction; and store the first data log. 9. The server of claim 8 , wherein when the server is faulty, the processor is further configured to execute the instructions to cause the server to: obtain a data snapshot that backs up first data for the server; obtain a second command log generated after a generation time point of the data snapshot; obtain a second data log of a second write transaction corresponding to the second command log when the second write transaction is a second multi-partition transaction; and recover second data by replaying the second data log. 10. The server of claim 8 , wherein the processor is further configured to execute the instructions to cause the server to: receive a second write transaction; generate a second command log of the second write transaction; store the second command log; detect that the second write transaction is a non-deterministic transaction for which at least two execution results are not unique; generate a second data log of the second write transaction; and store the second data log. 11. The server of claim 10 , wherein when the server is faulty, the processor is further configured to execute the instructions to cause the server to: obtain a data snapshot that backs up first data for the server; obtain a third command log generated after a generation time point of the data snapshot; obtain a third data log of a third write transaction corresponding to the third command log when the third write transaction is a third multi-partition transaction or a third non-deterministic transaction; and recover second data by replaying the third data log. 12. The server of claim 10 , wherein the processor is further configured to execute the instructions to cause the server to: send, after storing the first command log, a first response message of the first write transaction, wherein the first response message indicates that execution of the first write transaction has completed; and send, after storing the second command log, a second response message of the second write transaction, wherein the second response message indicates that execution of the second write transaction has completed. 13. The server of claim 8 , wherein the processor is further configured to execute the instructions to cause the server to: share a shared storage system with a slave node of the server; further store the first command log in the shared storage system; and further store the first data log in the shared storage system. 14. The server of claim 8 , wherein the processor is further configured to execute the instructions to cause the server to send the first command log and the first data log to a slave node of the server. 15. A database system comprising: a client configured to send a first write transaction; and a first server communicatively coupled to the client and configured to: receive the first write transaction from the client; generate a first command log of the first write transaction; store the first command log; detect that the first write transaction is a first multi-partition transaction for operating at least two partitions; generate, based on detecting that the first write transaction is the first multi-partition transaction, a first data log of the first write transaction; and store the first data log. 16. The database system of claim 15 , wherein when the first server is faulty, the first server is further configured to: obtain a data snapshot that backs up first data for the first server; obtain a second command log generated after a generation time point of the data snapshot; obtain a second data log of a second write transaction corresponding to the second command log when the second write transaction is a second multi-partition transaction; and recover second data by replaying the second data log. 17. The database system of claim 15 , wherein the first server is further configured to: receive a second write transaction

Assignees

Inventors

Classifications

  • involving logging of persistent data for recovery · CPC title

  • Backup restoration techniques · CPC title

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

  • Updates performed during online database operations; commit processing · CPC title

  • Using snapshots, i.e. a logical point-in-time copy of the data · 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 US11748215B2 cover?
In a log management method performed by a server, the server receives a transaction and generates a command log of the transaction. When detecting the transaction is a multi-partition transaction or a non-deterministic transaction, the server generates a data log of the transaction. When the server is faulty, the server recovers data according to the command log or the data log.
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F11/1471. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Sep 05 2023 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 4 related publications on this page (citations in our corpus or others sharing the same primary CPC).