CN112650629B - Block chain index data recovery method, device, equipment and computer storage medium - Google Patents
Block chain index data recovery method, device, equipment and computer storage medium Download PDFInfo
- Publication number
- CN112650629B CN112650629B CN202011616175.7A CN202011616175A CN112650629B CN 112650629 B CN112650629 B CN 112650629B CN 202011616175 A CN202011616175 A CN 202011616175A CN 112650629 B CN112650629 B CN 112650629B
- Authority
- CN
- China
- Prior art keywords
- index
- database
- data
- index database
- blockchain
- 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
Links
- 238000011084 recovery Methods 0.000 title claims abstract description 150
- 238000000034 method Methods 0.000 title claims abstract description 65
- 230000002159 abnormal effect Effects 0.000 claims abstract description 65
- 230000001360 synchronised effect Effects 0.000 claims abstract description 24
- 238000004590 computer program Methods 0.000 claims description 7
- 230000008447 perception Effects 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000012217 deletion Methods 0.000 description 4
- 230000037430 deletion Effects 0.000 description 4
- 238000003780 insertion Methods 0.000 description 4
- 230000037431 insertion Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000004806 packaging method and process Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1471—Saving, restoring, recovering or retrying involving logging of persistent data for recovery
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
- G06F16/2272—Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/80—Database-specific techniques
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the application provides a method, a device, equipment and a computer storage medium for recovering blockchain index data; the method comprises the following steps: receiving a data operation request, and judging whether the operation state of the index database is normal or not; if the index database is in an abnormal state, responding to the data operation request, generating an operation log corresponding to the data operation request, and storing the operation log into a preset temporary database; when the index database is detected to restore normal service, the index database is adjusted to be in a synchronous state, and the data of the index database is restored according to the operation log in the temporary database; deleting an operation log in the temporary database and adjusting the index database to be in a normal state when the recovery of the index data in the index database is completed; when the index database is abnormal, the embodiment of the application realizes the automatic accurate non-perception recovery of the index information in the index database.
Description
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a blockchain index data recovery method, device, apparatus, and computer storage medium.
Background
The blockchain data index is a service provided by a node for a client for quickly searching transactions related to certain service data, is a key technology widely applied to a tracing scene, depends on an index database, can obtain index data by querying the index database when receiving a client data query request, and queries a blockchain ledger database through O (1) according to the index data to obtain transactions related to the service data, thereby realizing quick response of blockchain service transaction query.
The block link point generates a new block, and when performing the persistence of the block and its associated data, it often requires writing to multiple databases, including writing to the index database, when the node enables the data indexing service associated with the business data. On the one hand, the existing system has a certain mechanism to ensure the atomicity of multi-database operation, namely when one database operation is wrong, the block writing is considered to be failed, and other databases which have been successfully operated are restored to the previous state. The block data cannot be persisted, meaning that the node cannot normally provide service. However, the failure of the index database data insertion simply means that the node can no longer provide the data index service related to the service data at this time, and the normal production block of the node and other basic services provided by the node should not be affected. On the other hand, when the node starts the data index service related to the business data, a background database is used as an index database storage engine, the background database is used as an independent process, when a downtime occurs, a network cannot be connected or unknown errors occur to cause insertion or deletion failure, if the block chain link point still normally provides service at the moment, new block chain data can be generated according to the old during abnormal service period of the background database, and at the moment, the data of the index database is behind the on-line block chain data; there may also be a background database service anomaly during which a node has data rollback or data archiving occurs, at which point dirty data will be present in the index database.
Disclosure of Invention
The application provides a method, a device, equipment and a computer storage medium for recovering block chain index data, which aim to solve the technical problems that a background database connected with an index database cannot respond to a data operation request and the recovery of the index database is easy to occur when the existing block chain index database is in an abnormal state.
In one aspect, the present application provides a method for recovering blockchain index data, the method comprising the steps of:
receiving a data operation request, and judging whether the operation state of the index database is normal or not;
If the index database is in an abnormal state, responding to the data operation request, generating an operation log corresponding to the data operation request, and storing the operation log into a preset temporary database;
When the background database connected with the index database is detected to restore normal service, the index database is adjusted to be in a synchronous state, and the data of the index database is restored according to the operation log in the temporary database;
And deleting the operation log in the temporary database and adjusting the index database to be in a normal state when the recovery of the index data in the index database is completed.
In some embodiments of the present application, after the receiving the data operation request and determining whether the operation state of the index database is normal, the method includes:
if the index database is in a normal state, determining the type of the data operation request;
If the data operation request is a blockchain transaction inquiry request, inquiring the index database, acquiring index data in the transaction inquiry request, inquiring corresponding transaction detail data according to the index data from a blockchain account book with O (1) inquiry complexity, and outputting the data;
If the data operation request is a block chain transaction recovery request, generating new data index information or deleting the data index information according to the transaction recovery request, thereby recovering the data of the index database.
In some embodiments of the present application, if the index database is in an abnormal state, responding to the data operation request, generating an operation log corresponding to the data operation request, and storing the operation log in a preset temporary database, including:
If the index database is in an abnormal state, judging whether the data operation request relates to recovering the index database or not;
If the data operation request does not relate to recovering the index database, an index database exception prompt is returned;
If the data operation request relates to recovering the index database, responding to the data operation request, acquiring an operation code and operation content associated with the data operation request, generating an operation log according to the operation code and the operation content, and storing the operation log into a preset temporary database.
In some embodiments of the present application, when it is detected that the background database connected to the index database is restored to normal service, the adjusting the index database to a synchronous state and restoring the data of the index database according to the operation log in the temporary database includes:
when the background database connected with the index database is detected to restore normal service, the index database is adjusted to be in a synchronous state;
and querying the temporary database, and sequentially executing the operation logs according to the time sequence of the operation logs in the temporary database so as to recover the index data in the index database.
In some embodiments of the present application, when the recovery of the index data in the index database is completed, deleting the operation log in the temporary database, and adjusting the index database to a normal state includes:
when the recovery of the index data in the index database is completed, acquiring the index data recovered in the index database;
inquiring a blockchain ledger database according to the index data to obtain target data, and comparing the target data with index data items corresponding to the index database;
And if the target data is the same as the index data item data corresponding to the index database, deleting the operation log in the temporary database, and adjusting the index database to be in a normal state.
In some embodiments of the present application, before the receiving the data operation request and determining whether the operation state of the index database is normal, the method includes:
Collecting state information of a background database, and determining the state of the index database according to the state information;
And if the background database is in an abnormal state, adjusting the index database to be in an abnormal state.
In some embodiments of the present application, after deleting the operation log in the temporary database and adjusting the index database to a normal state when the recovery of the index data in the index database is completed, the method includes:
Counting the abnormal service frequency of a background database connected with the index database, and comparing the abnormal service frequency with a preset threshold; and if the abnormal service frequency of the background database is higher than a preset threshold, outputting prompt information.
In another aspect, the present application provides a blockchain index data retrieval device, the blockchain index data retrieval device comprising:
The request receiving module is used for receiving a data operation request and judging whether the operation state of the index database is normal or not;
the generation and storage module is used for responding to the data operation request if the index database is in an abnormal state, generating an operation log corresponding to the data operation request and storing the operation log into a preset temporary database;
The data recovery module is used for adjusting the index database to be in a synchronous state when detecting that the background database connected with the index database is recovered to normal service, and recovering the data of the index database according to the operation log in the temporary database;
And the state adjustment module is used for deleting the operation log in the temporary database and adjusting the index database to be in a normal state when the recovery of the index data in the index database is completed.
In another aspect, the present application also provides a blockchain index data recovery device, including:
one or more processors;
A memory; and
One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the blockchain index data recovery method.
In another aspect, the present application also provides a computer storage medium having a computer program stored thereon, the computer program being loaded by a processor to perform the steps of the blockchain index data recovery method.
In the embodiment of the application, a data operation request is received, and whether the operation state of the index database is normal or not is judged; if the index database is in an abnormal state, responding to the data operation request, generating an operation log corresponding to the data operation request, and storing the operation log into a preset temporary database; when the background database connected with the index database is detected to restore normal service, the index database is adjusted to be in a synchronous state, and the index database is restored according to the operation log in the temporary database; deleting an operation log in the temporary database and adjusting the index database to be in a normal state when the recovery of the index data in the index database is completed; the embodiment of the application realizes the automatic recovery of the index database. According to the embodiment of the application, when the index database is in an abnormal state, the data operation request can be responded, the operation log is generated according to the data operation request and is stored in the temporary database, and when the index database can be normally serviced, the index information in the index database is restored according to the operation log, so that the non-perception quick restoration of the index database is realized, and the problem of error restoration of the index database is effectively avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a block chain index data recovery scenario provided by an embodiment of the present application;
FIG. 2 is a flow chart of one embodiment of a method for recovering blockchain index data provided in an embodiment of the present application;
FIG. 3 is a flowchart illustrating an embodiment of a method for recovering blockchain index data in which an index database is in a normal state according to an embodiment of the present application;
FIG. 4 is a flow diagram of one embodiment of index database detection in a blockchain index data recovery method provided in an embodiment of the present application;
FIG. 5 is a flow diagram of one embodiment of background database exception hints in a blockchain index data recovery method provided in an embodiment of the present application;
FIG. 6 is a block chain index data recovery device according to an embodiment of the present application;
FIG. 7 is a schematic block chain index data recovery device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be encompassed by the present application.
In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the drawings are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the present application, the term "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described as "exemplary" in this disclosure is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for purposes of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes have not been described in detail so as not to obscure the description of the application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The embodiment of the application provides a method, a device, equipment and a computer storage medium for recovering blockchain index data, which are respectively described in detail below.
The block chain index data recovery method is applied to a block chain index data recovery device, the block chain index data recovery device is arranged in block chain index data recovery equipment, one or more processors, a memory and one or more application programs are arranged in the block chain index data recovery equipment, wherein the one or more application programs are stored in the memory and are configured to be executed by the processor to realize the block chain index data recovery method; the blockchain index data recovery device may be a terminal, for example, a mobile phone or a tablet computer, and the blockchain index data recovery device may also be a server, or a service cluster formed by a plurality of servers.
Referring to fig. 1, fig. 1 is a schematic diagram of a scenario of a blockchain index data recovery according to an embodiment of the present application, where the blockchain index data recovery scenario includes a blockchain index data recovery device 100 (a blockchain index data recovery apparatus is integrated in the blockchain index data recovery device 100), and a computer storage medium corresponding to the blockchain index data recovery is executed in the blockchain index data recovery device 100, so as to execute a step of the blockchain index data recovery.
It can be understood that the blockchain index data recovery device in the scene of the blockchain index data recovery shown in fig. 1, or the apparatus included in the blockchain index data recovery device, is not limited to the embodiment of the present invention, that is, the number of devices and the type of devices included in the scene of the blockchain index data recovery, or the number of apparatuses and the type of apparatuses included in each device do not affect the overall implementation of the technical solution in the embodiment of the present invention, and can be calculated as equivalent replacement or derivative of the technical solution claimed in the embodiment of the present invention.
The block chain index data recovery device 100 in the embodiment of the present invention is mainly used for:
receiving a data operation request, and judging whether the operation state of the index database is normal or not;
If the index database is in an abnormal state, responding to the data operation request, generating an operation log corresponding to the data operation request, and storing the operation log into a preset temporary database;
When the background database connected with the index database is detected to restore normal service, the index database is adjusted to be in a synchronous state, and the data of the index database is restored according to the operation log in the temporary database;
And deleting the operation log in the temporary database and adjusting the index database to be in a normal state when the recovery of the index data in the index database is completed.
The blockchain index data recovery device 100 in the embodiment of the present invention may be an independent blockchain index data recovery device, or may be a blockchain index data recovery device network or a blockchain index data recovery device cluster formed by the blockchain index data recovery devices, for example, the blockchain index data recovery device 100 described in the embodiment of the present invention includes, but is not limited to, a computer, a network host, a single network blockchain index data recovery device, a plurality of network blockchain index data recovery device sets, or a cloud blockchain index data recovery device formed by a plurality of blockchain index data recovery devices. The Cloud blockchain index data recovery device is composed of a large number of computers or network blockchain index data recovery devices based on Cloud Computing (Cloud Computing).
Those skilled in the art will appreciate that the application environment shown in fig. 1 is merely an application scenario with the present application, and is not limited to the application scenario with the present application, and other application environments may further include more or fewer blockchain index data recovery devices than those shown in fig. 1, or a network connection relationship between the blockchain index data recovery devices, for example, only 1 blockchain index data recovery device is shown in fig. 1, and it is understood that the scene of the blockchain index data recovery may further include one or more other blockchain index data recovery devices, which is not limited herein in particular; memory may also be included in the blockchain index data retrieval device 100.
In addition, the apparatus 100 for recovering blockchain index data in the scene of the blockchain index data recovery of the present application may be provided with a display device, or the blockchain index data recovery apparatus 100 is not provided with a display device and is communicatively connected to the external display device 200, where the display device 200 is used for outputting the result of executing the method for recovering blockchain index data in the blockchain index data recovery apparatus. The blockchain index data recovery device 100 may access the background database 300, and the background database 300 stores information related to the recovery of the blockchain index data.
The background database can be in a local memory of the blockchain index data recovery device, and the background database can be further arranged at the cloud.
It should be noted that, the schematic view of the block chain index data recovery shown in fig. 1 is only an example, and the scene of the block chain index data recovery described in the embodiment of the present invention is for more clearly describing the technical solution of the embodiment of the present invention, and does not constitute a limitation to the technical solution provided by the embodiment of the present invention.
Based on the above scenario of the block chain index data recovery, an embodiment of a block chain index data recovery method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a block chain index data recovery method according to an embodiment of the present application, the block chain index data recovery method includes steps 201 to 204:
201, receiving a data operation request, and judging whether the operation state of the index database is normal or not.
The method for recovering the block chain index data in the embodiment is applied to a block chain index data recovery device, which is called a node device, and the block chain index data recovery device is in communication connection with an index database. The type of the block chain index data recovery device in this embodiment is not particularly limited, and for example, the block chain index data recovery device may be a terminal or a server, and the terminal is described as an example in this embodiment.
The index database refers to a storage database of data index information in a blockchain, the index database can be stored in a local storage of a blockchain index data recovery device, the index database can also be stored in a cloud, the blockchain index data recovery device accesses the cloud to inquire the index database, the blockchain index data recovery device acquires index data by inquiring the index database, and inquires a blockchain ledger database according to the index data, so that data operation is executed, that is, the blockchain ledger database has relevance with the index database, and the index database needs to be synchronously recovered when the blockchain ledger database is recovered.
The terminal receives a data operation request, wherein the data operation request can be a data operation request related to the recovery of an index database or a blockchain ledger database, such as a transaction packing block request, a blockchain ledger rollback request or a data archiving operation request; the data operation request may also be a data operation request which does not relate to the recovery of the index database or the blockchain ledger database, for example, the data query request is not particularly limited, and the triggering mode of the data operation request may be actively triggered by a user, for example, the user clicks a "transaction" button on a display interface of the terminal to actively trigger the data operation request; in addition, the data operation request may be automatically triggered by the terminal, for example, the triggering condition of the preset data operation request in the terminal is: packaging data; the terminal monitors transaction state information of each platform of the blockchain in real time, and the terminal detects a data operation request automatically triggered when data is packed; for another example, the trigger conditions of the preset data operation request in the terminal are: when the intelligent contract is called; the terminal detects the intelligent contract calling state in real time, and when the terminal detects the intelligent contract calling, the terminal automatically triggers a data operation request.
After receiving the data operation request, the terminal queries the index database, and the terminal determines whether the index database is in a normal state, namely, in the embodiment, the index database is set to be in three states, namely, a normal state, an abnormal state and a synchronous state, and the three states of the index database can be mutually converted; the Normal indicates that the index database is in a Normal state, and the reading and writing operation of the index database data can be normally performed; abnormal indicates that the index database is in an abnormal state, and the read-write operation of the index database data cannot be performed; syncing indicates that the index database is undergoing data synchronization, blocking write operations to the index database.
For example, before the terminal receives an API query request related to the data index from the client, the terminal will check the state of the index database at the moment, if the index database is in Normal state at the moment, the terminal continues to execute the process, otherwise, returns a prompt that the data index service is unavailable; when the index database is not Normal, the terminal can still operate normally, and can receive the transaction from the client, generate a new block, provide services except for data index, if new data need to be inserted into the index database or old data need to be deleted in the processes, the terminal records an operation log of data insertion or data deletion in the temporary database, and specifically, the method comprises the following steps:
202, if the index database is in an abnormal state, responding to the data operation request, generating an operation log corresponding to the data operation request, and storing the operation log into a preset temporary database.
If the index database is not in a normal state, i.e. the index database is in an abnormal state or a synchronous state, the terminal generates an operation log corresponding to the data operation request, and the terminal stores the operation log into a preset temporary database to restore the index database according to the operation log in the temporary database, which specifically comprises:
(1) If the index database is in an abnormal state, judging whether the data operation request relates to recovering the index database or not;
(2) If the data operation request does not relate to recovering the index database, an index database exception prompt is returned;
(3) And if the data operation request relates to recovering the index database, responding to the data operation request, acquiring an operation code and operation content associated with the data operation request, generating an operation log according to the operation code and the operation content, and storing the operation log into a preset temporary database.
That is, if the index database is not in a normal state, the terminal judges whether the data operation request relates to recovering the index database; for example, 1, the data operation request is a transaction package block request, a blockchain ledger rollback request or a data archiving operation request, and the index database corresponding to the data operation request needs to be recovered; 2. the data operation request is a query request, and the index database corresponding to the data operation request does not need to be restored.
And if the data operation request does not relate to the recovery of the index database, the terminal returns an abnormal prompt of the index database. If the data operation request relates to recovering the index database, the terminal responds to the data operation request, acquires an operation code and operation content associated with the data operation request, generates an operation log according to the operation code and the operation content, and stores the operation log into a preset temporary database.
That is, in this embodiment, a temporary database is pre-established, and the temporary database uses a lightweight Key-Value embedded database as a storage engine, where the Key structure is: prefix+current timestamp, prefix is "timestamp-". The first byte of the Value structure is an operation code, and the following bytes have different operation contents according to different operation codes.
The operation content comprises: (1) Insert operation: representing the insertion of new data into the index database, this occurs when a node generates a new block, whose Value format is: 1 bit Insert opcode+64 bit block number+byte data to be inserted; (2) DELETERANGE operations: data representing a block interval to be deleted from the index database, which occurs when a node performs a block rollback or a block archiving. The Value format is: 1 bit DELETERANGE opcode+64 bit start block number+64 bit end block number; (3) DropDatabase operations: indicating that all online data in the index database is to be deleted, which occurs when a node performs ledger replacement, the Value format is: a 1-bit opcode.
In this embodiment, a temporary database is preset, and an operation log corresponding to a data operation request is stored in the temporary database, so that when a background database connected with the index database is recovered to be normal, the terminal recovers the index data according to the operation log stored in the temporary database, specifically:
And 203, when the background database connected with the index database is detected to restore normal service, the index database is adjusted to be in a synchronous state, and the data of the index database is restored according to the operation log in the temporary database.
The method comprises the steps that a terminal detects a background database service state connected with an index database in real time, when the background database of the index database is recovered to be normal, the terminal adjusts the index database to be in a synchronous state, and the terminal recovers the index database according to an operation log in a temporary database; specifically, the method comprises the following steps:
(1) When the background database connected with the index database is detected to restore normal service, the index database is adjusted to be in a synchronous state;
(2) And querying the temporary database, and sequentially executing the operation logs according to the time sequence of the operation logs in the temporary database so as to recover the index data in the index database.
In this embodiment, when the background database of the index database is restored to be normal, the terminal restores the index data according to the operation log in the temporary database, so that the phenomenon that the index database and the blockchain ledger data are not synchronous is avoided, and when the background database is abnormal, the situation that the index database and the blockchain ledger database are not unified is avoided.
And 204, deleting the operation log in the temporary database and adjusting the index database to be in a normal state when the recovery of the index data in the index database is completed.
When the recovery of the index data in the index database is completed, the terminal deletes the operation log in the temporary database, so that the condition that the temporary database resource accessed by the terminal is occupied is avoided, and meanwhile, the terminal adjusts the index database to be in a normal state, so that the index database can quickly respond to the data operation request.
In this embodiment, in the process of executing the block chain index data recovery method, the terminal detects the background database connected to the index database in real time to adjust the state of the index database, specifically:
(1) Collecting state information of a background database, and determining the state of the index database according to the state information;
(2) And if the background database is in an abnormal state, adjusting the index database to be in an abnormal state.
The terminal acquires state information of a background database, wherein the state information comprises network state information, access flow information, data recovery information and the like, and the terminal determines the state of the background database according to the state information; for example, if the network state in the state information is abnormal, the terminal determines that the background database is abnormal, and if the background database is in the abnormal state, the terminal adjusts the index database to be in the abnormal state.
For the convenience of understanding, this embodiment is illustrated by way of example: firstly, a terminal receives a data operation request and judges the state of an index database; if the index database is Abnormal, the terminal responds to the data operation request, generates an operation log corresponding to the data operation request, stores the operation log in a preset temporary database, and pings a background database server by the terminal, checks whether the background database is communicated or not, and if the background database is not communicated within 30 seconds, continues to carry out the next ping; if the data is communicated within 30 seconds, the terminal changes the state of the index database from Abnormal to Syncing, then reads the operation log from the temporary database, executes the operation log, synchronizes the data to the index database, and deletes the operation log from the temporary database only after the operation log is successfully applied to the index database. The execution and deletion of the operation log must ensure the atomicity, namely if the execution of the operation log of the index database is successful and the deletion of the operation log of the temporary database fails, the index database rolls back the operation of the log and returns an error; if the index database operation log fails to be executed, the operation log of the temporary database is not deleted, and an error is directly returned. If the background database is unknown again in the synchronization process to cause the index database to fail to execute the operation log, the state of the index database is changed from Syncing to Abnormal, and the data recovery flow is re-entered; if the error is other errors, such as the error returned by the temporary database storage engine, the data recovery flow is directly exited, and an exception is reported. The index database state is changed from Syncing to Normal only after all the oplogs in the temporary database have been synchronized to the index database.
In the embodiment, a data operation request is received, and whether the operation state of the index database is normal or not is judged; if the index database is in an abnormal state, responding to the data operation request, generating an operation log corresponding to the data operation request, and storing the operation log into a preset temporary database; when the background database connected with the index database is detected to restore normal service, the index database is adjusted to be in a synchronous state, and the data of the index database is restored according to the operation log in the temporary database; deleting an operation log in the temporary database and adjusting the index database to be in a normal state when the recovery of the index data in the index database is completed; the embodiment of the application realizes the automatic recovery of the index database. When the index database is in an abnormal state, the embodiment of the application can respond to the data operation request, generate the operation log according to the data operation request and store the operation log into the temporary database, and recover the index information in the index database according to the operation log, thereby realizing the imperceptible quick recovery of the index database and effectively avoiding the problem of error recovery of the index database.
Referring to fig. 3, fig. 3 is a flowchart illustrating an embodiment of a normal state of an index database in a blockchain index data recovery method according to an embodiment of the present application.
In some embodiments of the present application, the index database is in a normal state in the blockchain index data recovery method, which includes steps 301-303:
301, if the index database is in a normal state, determining the type of the data operation request.
If the index database is in a normal state, the terminal determines the type of the data operation request, so that the terminal responds according to the type of the data operation request, specifically:
302, if the data operation request is a blockchain transaction inquiry request, inquiring the index database, acquiring index data in the transaction inquiry request, inquiring corresponding transaction detail data according to the index data from a blockchain ledger with O (1) inquiry complexity, and outputting the data.
If the data operation request is a transaction inquiry request, the terminal inquires an index database, acquires index data in the transaction inquiry request, and acquires and outputs transaction detail data according to the index data inquiry block chain ledger database for a user to check; in this embodiment, when the index database is normal, the terminal queries the index database to quickly respond to the transaction query operation request.
303, If the data operation request is a blockchain transaction recovery request, generating new data index information or deleting the data index information according to the transaction recovery request, thereby recovering the data of the index database.
If the data operation request is a blockchain transaction recovery request, the terminal recovers blockchain ledger data according to the transaction recovery request, and when the blockchain ledger database is recovered, the terminal generates new index data or deletes old index data in the index database. That is, when the data operation request is a data rollback request, a data archiving request or a transaction packaging block request, the terminal determines that the data operation request is a transaction recovery request, and the terminal recovers the blockchain ledger-book database and the index database according to the transaction recovery request.
Referring to fig. 4, fig. 4 is a flowchart illustrating an embodiment of index database detection in a blockchain index data recovery method according to an embodiment of the present application.
In some embodiments of the present application, the recovery of the end check index data in the blockchain index data recovery method specifically includes steps 401-403:
401, when the recovery of the index data in the index database is completed, obtaining the recovered index data in the index database.
In this embodiment, when the recovery of the index data in the index database is completed, the terminal acquires the recovered index data in the index database, and the terminal checks the recovered index data to determine that the recovery of the index database is correct, specifically:
and 402, querying a blockchain ledger database according to the index data to obtain target data, and comparing the target data with index data items corresponding to the index database.
The terminal queries the blockchain ledger database according to the index data to obtain target data, compares the target data with index data items corresponding to the index database to determine whether the restored index data is consistent with the data in the blockchain ledger, deletes the restored index data in the index database if the target data is different from the index data item data corresponding to the index database, and carries out secondary restoration according to the operation log in the temporary database.
403, Deleting the operation log in the temporary database and adjusting the index database to a normal state if the target data is the same as the index data item data corresponding to the index database.
If the target data is the same as the index data item data corresponding to the index database, the terminal deletes the operation log in the temporary database and adjusts the index database to be in a normal state, and in the embodiment, the terminal performs data query according to the recovered index data to determine whether the index data recovered by the index database is normal or not, so that the recovery operation of the index database is more accurate.
Referring to fig. 5, fig. 5 is a flowchart illustrating an embodiment of background database exception prompting in a blockchain index data recovery method according to an embodiment of the present application.
In some embodiments of the present application, the method for recovering blockchain index data performs authority authentication on a subscriber, specifically includes steps 501-502:
And 501, counting the abnormal service frequency of a background database connected with the index database, and comparing the abnormal service frequency with a preset threshold.
The terminal counts the abnormal frequency of the service of the background database connected with the index database, namely, the terminal counts the abnormal times of the background database connected with the index database at unit time intervals (the unit time intervals can be set according to specific scenes, for example, the unit time intervals are set to be one week), the abnormal frequency of the background database is obtained, the abnormal frequency of the service of the terminal is compared with a preset threshold (the preset threshold refers to a preset abnormal processing critical value, for example, the preset threshold is set to be 3 times), and if the abnormal frequency of the service of the background database is not higher than the preset threshold, the processing is not performed.
502, If the abnormal service frequency of the background database is higher than a preset threshold, outputting prompt information.
If the abnormal service frequency of the background database is higher than a preset threshold, the terminal outputs prompt information so that a user maintains the background database corresponding to the index database according to the prompt information, and frequent database abnormality is avoided.
FIG. 6 is a block chain index data recovery device, according to one embodiment of the present invention.
In order to better implement the block chain index data recovery method in the embodiment of the present application, on the basis of the block chain index data recovery method, the embodiment of the present application further provides a block chain index data recovery device, where the block chain index data recovery device includes:
The request receiving module 601 is configured to receive a data operation request, and determine whether an operation state of the index database is normal or not;
The generation and storage module 602 is configured to respond to the data operation request if the index database is in an abnormal state, generate an operation log corresponding to the data operation request, and store the operation log in a preset temporary database;
the data recovery module 603 is configured to adjust the index database to a synchronous state when detecting that a background database connected to the index database is restored to normal service, and recover data of the index database according to an operation log in the temporary database;
And the state adjustment module 604 is configured to delete the operation log in the temporary database and adjust the index database to a normal state when the recovery of the index data in the index database is completed.
In some embodiments of the present application, the blockchain index data retrieval device includes:
if the index database is in a normal state, determining the type of the data operation request;
If the data operation request is a blockchain transaction inquiry request, inquiring the index database, acquiring index data in the transaction inquiry request, inquiring corresponding transaction detail data according to the index data from a blockchain account book with O (1) inquiry complexity, and outputting the data;
If the data operation request is a block chain transaction recovery request, generating new data index information or deleting the data index information according to the transaction recovery request, thereby recovering the data of the index database.
In some embodiments of the present application, the generating and saving module 602 includes:
If the index database is in an abnormal state, judging whether the data operation request relates to recovering the index database or not;
If the data operation request does not relate to recovering the index database, an index database exception prompt is returned;
If the data operation request relates to recovering the index database, responding to the data operation request, acquiring an operation code and operation content associated with the data operation request, generating an operation log according to the operation code and the operation content, and storing the operation log into a preset temporary database.
In some embodiments of the present application, the data recovery module 603 includes:
when the background database connected with the index database is detected to restore normal service, the index database is adjusted to be in a synchronous state;
and querying the temporary database, and sequentially executing the operation logs according to the time sequence of the operation logs in the temporary database so as to recover the index data in the index database.
In some embodiments of the present application, the status adjustment module 604 includes:
when the recovery of the index data in the index database is completed, acquiring the index data recovered in the index database;
inquiring a blockchain ledger database according to the index data to obtain target data, and comparing the target data with index data items corresponding to the index database;
And if the target data is the same as the index data item data corresponding to the index database, deleting the operation log in the temporary database, and adjusting the index database to be in a normal state.
In some embodiments of the present application, the blockchain index data retrieval device includes:
Collecting state information of a background database, and determining the state of the index database according to the state information;
And if the background database is in an abnormal state, adjusting the index database to be in an abnormal state.
In some embodiments of the present application, the blockchain index data retrieval device includes:
counting the abnormal service frequency of a background database connected with the index database, and comparing the abnormal service frequency with a preset threshold;
and if the abnormal service frequency of the background database is higher than a preset threshold, outputting prompt information.
The block chain index data recovery device in the embodiment of the application receives the data operation request and judges whether the operation state of the index database is normal or not; if the index database is in an abnormal state, responding to the data operation request, generating an operation log corresponding to the data operation request, and storing the operation log into a preset temporary database; when the background database connected with the index database is detected to restore normal service, the index database is adjusted to be in a synchronous state, and the index database is restored according to the operation log in the temporary database; deleting an operation log in the temporary database and adjusting the index database to be in a normal state when the recovery of the index data in the index database is completed; the embodiment of the application realizes the automatic recovery of the index database. When the index database is in an abnormal state, the embodiment of the application can respond to the data operation request, generate the operation log according to the data operation request and store the operation log into the temporary database, and recover the index information in the index database according to the operation log, thereby realizing the imperceptible quick recovery of the index database and effectively avoiding the problem of error recovery of the index database.
The embodiment of the application also provides a blockchain index data recovery device, as shown in fig. 7, and fig. 7 is a schematic structural diagram of an embodiment of the blockchain index data recovery device provided in the embodiment of the application.
The blockchain index data recovery device integrates any of the blockchain index data recovery devices provided by the embodiment of the invention, and comprises:
one or more processors;
A memory; and
One or more applications, wherein the one or more applications are stored in the memory and configured to perform the steps of the blockchain index data recovery method described in any of the blockchain index data recovery method embodiments above by the processor.
Specifically, the present invention relates to a method for manufacturing a semiconductor device. The blockchain index data recovery device may include components such as a processor 701 of one or more processing cores, a memory 702 of one or more computer storage media, a power supply 703, and an input unit 704. Those skilled in the art will appreciate that the blockchain index data retrieval device structure shown in fig. 7 does not constitute a limitation of the blockchain index data retrieval device, and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
The processor 701 is a control center of the blockchain index data restoration device, connects various parts of the entire blockchain index data restoration device using various interfaces and lines, and performs various functions and processes of the blockchain index data restoration device by running or executing software programs and/or modules stored in the memory 702 and calling data stored in the memory 702, thereby performing overall monitoring of the blockchain index data restoration device. Optionally, processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 701.
The memory 702 may be used to store software programs and modules, and the processor 701 executes various functional applications and data processing by executing the software programs and modules stored in the memory 702. The memory 702 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain index data retrieval device, and the like. In addition, the memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 702 may also include a memory controller to provide access to the memory 702 by the processor 701.
The blockchain index data recovery device further includes a power supply 703 for supplying power to the respective components, and preferably, the power supply 703 may be logically connected to the processor 701 through a power management system, so that functions of managing charging, discharging, power consumption management, and the like are implemented through the power management system. The power supply 703 may also include one or more of any component, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, etc.
The blockchain index data retrieval device may further include an input unit 704, the input unit 704 being operable to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the blockchain index data restoring device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 701 in the blockchain index data recovery device loads executable files corresponding to processes of one or more application programs into the memory 702 according to the following instructions, and the processor 701 executes the application programs stored in the memory 702, so as to implement various functions as follows:
receiving a data operation request, and judging whether the operation state of the index database is normal or not;
If the index database is in an abnormal state, responding to the data operation request, generating an operation log corresponding to the data operation request, and storing the operation log into a preset temporary database;
When the background database connected with the index database is detected to restore normal service, the index database is adjusted to be in a synchronous state, and the index database is restored according to the operation log in the temporary database;
And deleting the operation log in the temporary database and adjusting the index database to be in a normal state when the recovery of the index data in the index database is completed.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be implemented by instructions, or by instruction control related hardware, that may be stored on a computer storage medium and loaded and executed by a processor.
To this end, an embodiment of the present invention provides a computer storage medium, which may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like. And a computer program stored thereon, the computer program being loaded by a processor to perform the steps of any of the blockchain index data recovery methods provided by the embodiments of the present invention. For example, the loading of the computer program by the processor may perform the steps of:
receiving a data operation request, and judging whether the operation state of the index database is normal or not;
If the index database is in an abnormal state, responding to the data operation request, generating an operation log corresponding to the data operation request, and storing the operation log into a preset temporary database;
When the background database connected with the index database is detected to restore normal service, the index database is adjusted to be in a synchronous state, and the index database is restored according to the operation log in the temporary database;
And deleting the operation log in the temporary database and adjusting the index database to be in a normal state when the recovery of the index data in the index database is completed.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the portions of one embodiment that are not described in detail in the foregoing embodiments may be referred to in the foregoing detailed description of other embodiments, which are not described herein again.
In the implementation, each unit or structure may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit or structure may be referred to the foregoing method embodiments and will not be repeated herein.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
The above describes in detail a blockchain index data recovery method provided by the embodiment of the present application, and specific examples are applied herein to illustrate the principles and implementations of the present application, and the above description of the embodiment is only for helping to understand the method and the core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.
Claims (9)
1. A method for recovering blockchain index data, the method comprising:
receiving a data operation request, and judging whether the operation state of the index database is normal or not;
If the index database is in an abnormal state, responding to the data operation request, generating an operation log corresponding to the data operation request, and storing the operation log into a preset temporary database;
When the index database is detected to restore normal service, the index database is adjusted to be in a synchronous state, and the data of the index database is restored according to the operation log in the temporary database;
deleting an operation log in the temporary database and adjusting the index database to be in a normal state when the recovery of the index data in the index database is completed;
And deleting the operation log in the temporary database and adjusting the index database to be in a normal state when the recovery of the index data in the index database is completed, wherein the method comprises the following steps of:
when the recovery of the index data in the index database is completed, acquiring the index data recovered in the index database;
inquiring a blockchain ledger database according to the index data to obtain target data, and comparing the target data with index data items corresponding to the index database;
And if the target data is the same as the index data item data corresponding to the index database, deleting the operation log in the temporary database, and adjusting the index database to be in a normal state.
2. The method of claim 1, wherein after receiving the data operation request and determining whether the operation state of the index database is normal, the method comprises:
if the index database is in a normal state, determining the type of the data operation request;
If the data operation request is a blockchain transaction inquiry request, inquiring the index database, acquiring index data in the transaction inquiry request, inquiring and acquiring corresponding transaction detail data from a blockchain account book according to the index data by using O (1) inquiry complexity, and outputting the data;
If the data operation request is a block chain transaction recovery request, generating new data index information or deleting the data index information according to the transaction recovery request, thereby recovering the data of the index database.
3. The method for recovering blockchain index data according to claim 1, wherein if the index database is in an abnormal state, responding to the data operation request, generating an operation log corresponding to the data operation request, and storing the operation log in a preset temporary database, comprising:
If the index database is in an abnormal state, judging whether the data operation request relates to recovering the index database or not;
If the data operation request does not relate to recovering the index database, an index database exception prompt is returned;
If the data operation request relates to recovering the index database, responding to the data operation request, acquiring an operation code and operation content associated with the data operation request, generating an operation log according to the operation code and the operation content, and storing the operation log into a preset temporary database.
4. The method for restoring blockchain index data according to claim 1, wherein when the normal service of the index database is detected, adjusting the index database to a synchronous state and restoring the data of the index database according to the operation log in the temporary database comprises:
when the background database accessed by the index database is detected to restore normal service, the index database is adjusted to be in a synchronous state;
and querying the temporary database, and sequentially executing the operation logs according to the time sequence of the operation logs in the temporary database so as to recover the index data in the index database.
5. The method of claim 1, wherein the receiving the data operation request, before determining whether the index database is in a normal state, comprises:
Collecting state information of a background database, and determining the state of the index database according to the state information;
And if the background database is in an abnormal state, adjusting the index database to be in an abnormal state.
6. The method for restoring blockchain index data according to any of claims 1-5, wherein after deleting the operation log in the temporary database and adjusting the index database to a normal state when the restoration of the index data in the index database is completed, the method comprises:
Counting the abnormal service frequency of a background database accessed by the index database, and comparing the abnormal service frequency with a preset threshold;
and if the abnormal service frequency of the background database is higher than a preset threshold, outputting prompt information.
7. A blockchain index data retrieval device, the blockchain index data retrieval device comprising:
The request receiving module is used for receiving a data operation request and judging whether the operation state of the index database is normal or not;
the generation and storage module is used for responding to the data operation request if the index database is in an abnormal state, generating an operation log corresponding to the data operation request and storing the operation log into a preset temporary database;
The data recovery module is used for adjusting the index database to be in a synchronous state when the background database accessed by the index database is detected to recover normal service, and recovering the data of the index database according to the operation log in the temporary database;
the state adjustment module is used for deleting the operation log in the temporary database and adjusting the index database to be in a normal state when the recovery of the index data in the index database is completed;
the state adjustment module is further configured to:
when the recovery of the index data in the index database is completed, acquiring the index data recovered in the index database;
inquiring a blockchain ledger database according to the index data to obtain target data, and comparing the target data with index data items corresponding to the index database;
And if the target data is the same as the index data item data corresponding to the index database, deleting the operation log in the temporary database, and adjusting the index database to be in a normal state.
8. A blockchain index data retrieval device, the blockchain index data retrieval device comprising:
one or more processors;
A memory; and
One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the blockchain index data recovery method of any of claims 1 to 6.
9. A computer storage medium having stored thereon a computer program, the computer program being loaded by a processor to perform the steps of the blockchain index data recovery method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011616175.7A CN112650629B (en) | 2020-12-30 | 2020-12-30 | Block chain index data recovery method, device, equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011616175.7A CN112650629B (en) | 2020-12-30 | 2020-12-30 | Block chain index data recovery method, device, equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112650629A CN112650629A (en) | 2021-04-13 |
CN112650629B true CN112650629B (en) | 2024-07-26 |
Family
ID=75364403
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011616175.7A Active CN112650629B (en) | 2020-12-30 | 2020-12-30 | Block chain index data recovery method, device, equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112650629B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114780642B (en) * | 2022-05-20 | 2022-08-26 | 北京链探科技有限公司 | Block chain data processing method and device and electronic equipment |
CN116010430B (en) * | 2023-03-24 | 2023-06-20 | 杭州趣链科技有限公司 | Data recovery method, database system, computer device, and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144792A (en) * | 2018-10-08 | 2019-01-04 | 郑州云海信息技术有限公司 | Data reconstruction method, device and system and computer readable storage medium |
CN111475335A (en) * | 2020-03-08 | 2020-07-31 | 苏州浪潮智能科技有限公司 | Method, system, terminal and storage medium for fast recovery of database |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11416548B2 (en) * | 2019-05-02 | 2022-08-16 | International Business Machines Corporation | Index management for a database |
CN110955723A (en) * | 2019-11-15 | 2020-04-03 | 北京浪潮数据技术有限公司 | Master-slave database synchronization state monitoring method and device and electronic equipment |
KR102172903B1 (en) * | 2019-12-09 | 2020-11-02 | (주)트러스트체인파트너스위드하모니 | Database management system based on blockchain technology |
CN111737046A (en) * | 2020-05-28 | 2020-10-02 | 苏州浪潮智能科技有限公司 | Method for rapidly recovering multi-copy data consistency based on operation log |
-
2020
- 2020-12-30 CN CN202011616175.7A patent/CN112650629B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144792A (en) * | 2018-10-08 | 2019-01-04 | 郑州云海信息技术有限公司 | Data reconstruction method, device and system and computer readable storage medium |
CN111475335A (en) * | 2020-03-08 | 2020-07-31 | 苏州浪潮智能科技有限公司 | Method, system, terminal and storage medium for fast recovery of database |
Also Published As
Publication number | Publication date |
---|---|
CN112650629A (en) | 2021-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017177941A1 (en) | Active/standby database switching method and apparatus | |
US11892922B2 (en) | State management methods, methods for switching between master application server and backup application server, and electronic devices | |
US20150213100A1 (en) | Data synchronization method and system | |
CN106062717A (en) | Distributed storage replication system and method | |
WO2021226905A1 (en) | Data storage method and system, and storage medium | |
US20080288812A1 (en) | Cluster system and an error recovery method thereof | |
CN102833281B (en) | It is a kind of distributed from the implementation method counted up, apparatus and system | |
CN111078667B (en) | Data migration method and related device | |
CN112039970B (en) | Distributed business lock service method, server, system and storage medium | |
CN105069152B (en) | data processing method and device | |
US20210165573A1 (en) | Managing Replication State for Deleted Objects | |
EP4213038A1 (en) | Data processing method and apparatus based on distributed storage, device, and medium | |
CN112650629B (en) | Block chain index data recovery method, device, equipment and computer storage medium | |
US20180121531A1 (en) | Data Updating Method, Device, and Related System | |
EP3026574B1 (en) | Affair processing method and device | |
US9330153B2 (en) | System, method, and computer readable medium that coordinates between devices using exchange of log files | |
CN109165112B (en) | Fault recovery method, system and related components of metadata cluster | |
WO2017157111A1 (en) | Method, device and system for preventing memory data loss | |
WO2023115935A1 (en) | Data processing method, and related apparatus and device | |
EP3896571B1 (en) | Data backup method, apparatus and system | |
CN111404737B (en) | Disaster recovery processing method and related device | |
WO2021082925A1 (en) | Transaction processing method and apparatus | |
CN111552637B (en) | Database state detection method and device, electronic equipment and storage medium thereof | |
CN113872994B (en) | Organization architecture synchronization method, device, computer equipment and storage medium | |
CN110928945A (en) | Data processing method and device for database and data processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |