Modern computing systems include one or more processors that are coupled to a system memory over a memory bus. The system memory includes memory locations that are addressable by the processor over the memory bus. The processor reads data from and writes data to the system memory via the memory bus. The processor might typically include one or more caches for faster reads and writes of data that is available in the cache.
As the system memory may not be large enough to contain all of the data and instructions that are needed, paging algorithms have been developed to page data and instruction between an external non-volatile storage (such as a hard disk drive or solid state disk) and system memory.
Database systems often manage database tables that are quite large, and thus often the structure of such tables is persisted on external non-volatile storage, while the current data being operated upon is paged into the system memory. However, more recent database systems store database tables in volatile system memory. The durability of such in-memory tables is ensured by logging all changes to external storage such as magnetic hard disk drives or solid state drives. In addition, such database systems may also maintain checkpoints of the database state on such external storage. After a crash, the latest database state is rebuilt in system memory from the latest checkpoints and the log.
At least some embodiments described herein relate to the recovery of a transaction, and perhaps the recovery of multiple transactions, in a computing system in which one or more persistent systems are coupled via a bus to one or more processors. As an example, the persistent system may serve as at least part of the main memory of the computing system. The transaction might implement multi-versioning in which a record is not updated in place. Rather, each record is represented as a sequence of one or more record versions, each version having a valid interval during which the record version is considered to properly represent the record.
As part of the recovery for a given transaction, post-commit processing information is identified that corresponds to the transaction and that is persisted in the persistent system. Using those post-commit processing information, each record version that was written as part of the transaction is identified. This includes newly created record versions and record versions that were rendered old by the transaction. For each written record version that is created or updated by the transaction, the valid interval is updated using a commit marker (e.g., a commit time) of the transaction represented in the post-commit processing information.
This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
In order to describe the manner in which the above-recited and other advantages and features can be obtained, a more particular description of various embodiments will be rendered by reference to the appended drawings. Understanding that these drawings depict only sample embodiments and are not therefore to be considered to be limiting of the scope of the invention, the embodiments will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:
At least some embodiments described herein relate to the recovery of a transaction, and perhaps the recovery of multiple transactions, in a computing system in which one or more persistent systems are coupled via a bus to one or more processors. As an example, the persistent system may serve as at least part of the main memory of the computing system. The transaction might implement multi-versioning in which a record is not updated in place. Rather, each record is represented as a sequence of one or more record versions, each version having a valid interval during which the record version is considered to properly represent the record.
As part of the recovery for a given transaction, post-commit processing information is identified that corresponds to the transaction and that is persisted in the persistent system. Using those post-commit processing information, each record version that was written as part of the transaction is identified. This includes newly created record versions and record versions that were rendered old by the transaction. For each written record version that is created or updated by the transaction, the valid interval is updated using a commit marker (e.g., a commit time) of the transaction represented in the post-commit processing information.
Some introductory discussion of a computing system will be described with respect to
Computing systems are now increasingly taking a wide variety of forms. Computing systems may, for example, be handheld devices, appliances, laptop computers, desktop computers, mainframes, distributed computing systems, or even devices that have not conventionally been considered a computing system. In this description and in the claims, the term “computing system” is defined broadly as including any device or system (or combination thereof) that includes at least one physical and tangible processor, and a physical and tangible memory capable of having thereon computer-executable instructions that may be executed by the processor. The memory may take any form and may depend on the nature and form of the computing system. A computing system may be distributed over a network environment and may include multiple constituent computing systems.
As illustrated in
In the description that follows, embodiments are described with reference to acts that are performed by one or more computing systems. If such acts are implemented in software, one or more processors of the associated computing system that performs the act direct the operation of the computing system in response to having executed computer-executable instructions. For example, such computer-executable instructions may be embodied on one or more computer-readable media that form a computer program product. An example of such an operation involves the manipulation of data. The computer-executable instructions (and the manipulated data) may be stored in the memory 104 of the computing system 100. Computing system 100 may also contain communication channels 108 that allow the computing system 100 to communicate with other message processors over, for example, network 110.
Embodiments described herein may comprise or utilize a special purpose or general-purpose computer including computer hardware, such as, for example, one or more processors and system memory, as discussed in greater detail below. Embodiments described herein also include physical and other computer-readable media for carrying or storing computer-executable instructions and/or data structures. Such computer-readable media can be any available media that can be accessed by a general purpose or special purpose computer system. Computer-readable media that store computer-executable instructions are physical storage media. Computer-readable media that carry computer-executable instructions are transmission media. Thus, by way of example, and not limitation, embodiments of the invention can comprise at least two distinctly different kinds of computer-readable media: computer storage media and transmission media.
Computer storage media includes RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other tangible medium which can be used to store desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computer.
A “network” is defined as one or more data links that enable the transport of electronic data between computer systems and/or modules and/or other electronic devices. When information is transferred or provided over a network or another communications connection (either hardwired, wireless, or a combination of hardwired or wireless) to a computer, the computer properly views the connection as a transmission medium. Transmissions media can include a network and/or data links which can be used to carry or desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computer. Combinations of the above should also be included within the scope of computer-readable media.
Further, upon reaching various computer system components, program code means in the form of computer-executable instructions or data structures can be transferred automatically from transmission media to computer storage media (or vice versa). For example, computer-executable instructions or data structures received over a network or data link can be buffered in RAM within a network interface module (e.g., a “NIC”), and then eventually transferred to computer system RAM and/or to less volatile computer storage media at a computer system. Thus, it should be understood that computer storage media can be included in computer system components that also (or even primarily) utilize transmission media.
Computer-executable instructions comprise, for example, instructions and data which, when executed at a processor, cause a general purpose computer, special purpose computer, or special purpose processing device to perform a certain function or group of functions. The computer executable instructions may be, for example, binaries, intermediate format instructions such as assembly language, or even source code. Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the described features or acts described above. Rather, the described features and acts are disclosed as example forms of implementing the claims.
Those skilled in the art will appreciate that the invention may be practiced in network computing environments with many types of computer system configurations, including, personal computers, desktop computers, laptop computers, message processors, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, mobile telephones, PDAs, pagers, routers, switches, and the like. The invention may also be practiced in distributed system environments where local and remote computer systems, which are linked (either by hardwired data links, wireless data links, or by a combination of hardwired and wireless data links) through a network, both perform tasks. In a distributed system environment, program modules may be located in both local and remote memory storage devices.
Prior to describing the principles of recovery using post-commit processing information, an example mechanism for generating the post-commit processing information under normal operation will now be described herein. However, the principles of recovery described herein are not limited to this particular mechanism for generating the post-commit processing information.
In accordance with the principles described herein, the persistent system 220A includes a database 221. The database 211 need not provide checkpoints or logs external to the persistent system 220A. Rather, the persistent system 220A itself persists the database 221.
The processor 210A includes a logic unit 211, registers 212, and one or more caches 213. The computing environment 200 also includes a transaction module 201, a recovery module 202, and a timestamp generator 203. The timestamps generated by the timestamp generator 203 may express real time, although that is not required. Accordingly, in this description, the term “timestamp” is to be interpreted broadly. For instance, the timestamp generator 203 might simply produce monotonically increasing values that do not express time other than relative temporal ordering at the granularity of the events that cause the monotonically increasing values. The timestamp generator 203 may, upon request, provide the most recent timestamp value (i.e., read the current timestamp) provided and/or produce a timestamp value (i.e., monotonically advance the timestamp) that is greater than any previously generated timestamp values.
When a transaction is begun, the transaction module 201 may instruct the processor 210A to perform operations so as to instantiate a transaction object that stores information about the transaction. The processor 210A in turn performs a transaction on the database 221 as specified by the user's transaction program. Likewise, the recovery module 202 may instruct the processor 220 to perform operations so as to perform a recovery of the database in a transactionally-consistent way (i.e., with uncommitted transactions rolled back, and with committed transactions completed). Alternatively, some or all of the functionality attributed to the transaction module 201 and/or the recovery 202 may be incorporated in hardware, such as perhaps directly within the processor 210A itself.
As the processor 210A reads from the persistent system 220A or from the database 221, the processor 210A addresses the location of the data being read over the bus 230 and likewise reads the corresponding data over the bus 230. The processor 210A writes to the persistent memory 220A by addressing the location to be written to and also by providing the corresponding data to be written over the 230.
There are three phases associated with writing data to the persistent system 220 in a cached variant. The first phase involves the processor 210A writing the data to the cache 213 (e.g., from one of registers 212). The second phase involves transferring the data from the cache 213 to the persistent system 220A over the bus 230. The second phase will also be referred to herein as “providing” or “transferring” the data to the persistent system. The third phase involves confirming that the data provided to the persistent system has indeed been persisted. This persisting might not occur immediately upon providing the data to the persistent system. For instance, perhaps the data is left in a memory controller for some time before actually being persisted. In one embodiment, there is a command (which will be called a “Persist” command) that causes any unpersisted data that has been provided to the persistent memory to be persisted, and returns confirmation of the same to the issuer of the command. Some implementations might combine the first and second phases.
A database includes one or more records. In one embodiment, the database system is a multi-versioning database system in which each database record may be represented by a sequence of record versions. A multi-versioning database system does not update records in place, but relies instead on multi-versioning. An update of a record creates a completely new record version whose interval of validity does not overlap with that of the prior record version for that record.
The field 302 represents a valid interval end boundary. An example of such a boundary is an end timestamp (or EndTS). This field indicates the end of a record version's valid time interval. It contains either a transaction ID or a timestamp. The field is initialized to a large value (which will be called hereinafter “infinity”) when the record version is created. The “infinity” value is interpreted as essentially meaning that the valid interval does not have an ending. When a transaction updates a record version (e.g., when adding a new record version created through updating or deleting a record), the transaction first stores its transaction ID in this field. Once the transaction has committed, the transaction sets the EndTS field to its commit timestamp.
The field 303 is a version header field. This includes version header information required by the database system. An example suitable for some database systems is link fields. A table may have one or more indexes. In one implementation, each record for that table reserves a link field in each record that is used to store a pointer to the next record on a chain used by the index. When a new version of a record is created, the new record version is immediately inserted into all indexes of the table to which the corresponding record belongs.
The field 304 is the payload, which contains the user data and is immutable. That is, any update of the payload causes a new record version to be created, rather than editing the content of the payload field 304 of the current record version.
Normal Processing
In
After having created the transaction object, the transaction does its normal processing 402A, in which the transaction might perform zero or more read operations, zero or more write operations, and zero or more scan operations. During normal processing 402A, the transaction object tracks the transaction's read set, write set and scan set. A transaction's read set contains a reference (e.g., a pointer) to all record versions read by the transaction. The write set contains a reference (e.g., a pointer) to all new record versions (hereinafter referred to as “new record versions” or “newly created record versions”) created by the transaction and all updated record versions (hereinafter “rendered old record versions”) rendered no longer current by the transaction.
As an example, newly created record versions may be created by the transaction with a surrogate BeginTS (field 301) that is the transaction ID of the creating transaction. Rendered old record versions (i.e., a record version that no longer represents the newest version of a record due to a new record version created by the transaction) have their EndTS (field 302) changed from infinity to a surrogate timestamp that is the transaction ID of the transaction.
In
The pre-commit phase 402B consists of two acts—namely validation 403B and logging 404B. In order to validate 403B, the transaction validates its read set and scan set. The transaction checks whether it would see exactly the same record versions if all of its reads were performed as of the commit timestamp as compared to the logical read time (represented by the timestamp obtained by the transaction at the beginning of the transaction at event 401A). The degree of validation required depends on the transaction's isolation level.
As for logging 404B, if validation 403B fails, nothing is logged. If validation 403B succeeds, the transaction saves post-commit processing information into a log buffer including the transaction identifier, a commit record including a timestamp, and other information that can be used to perform post-commit processing. It then writes the log buffer to the persistent system and, if the write completes successfully, the transaction has been irrevocably committed.
The method 400C of
The commit/abort event 401C initiates a post-processing phase 402C. If the transaction is aborted, the transaction marks each new record version that it created as garbage by setting its BeginTS to infinity and/or its EndTS to zero. The transaction sets the EndTS of each record version that it would have rendered not current back to infinity, so that the old record version can again be considered current.
If the transaction committed, in which case the post-processing phase 402C may be referred to as the “post-commit processing phase”, the transaction scans the write set and finalizes the timestamp of each record version that it has inserted, updated or deleted. In new record versions created by the transaction, the transaction sets BeginTS (field 301) to CommitTS. In record versions that are rendered not current by the addition of new record versions created by the transaction, the transaction sets EndTS (field 302) to CommitTS.
The termination event 403C occurs when the post-processing 402C completes. In this event, the transaction switches from the committed or aborted state to a terminated state. A read-only transaction does not need to validate its read set, so it skips the validation phase, commits immediately, and skips the post-processing phase.
A record version is no longer needed and can be logically removed from the database as soon as its valid time interval no longer overlaps the lifetime of any active transaction. In this context, a transaction is considered active until it has completed all of its post-processing and its state has been changed to terminated.
The validation process 403B validates the scans and the read set to the extent required by the isolation level of the transaction. If validation is successful, the transaction begins its logging process 404B. The logging 404B consists of persisting the transaction's changes to a persistent system (e.g., persisting system 220A), building the log buffer, and persisting the log buffer also to the persistent system. In
The validation process 510 validates reads and scans to the extent required by the transaction's isolation level. For instance, referring to
The method 500 also validates one or more scan operations of the transaction (act 512). For instance, the transaction verifies that the record versions visible to each scan operation are the same, regardless of whether the scan is performed at commit time of the transaction or the begin time (i.e., the logical read time) of the transaction.
If the validation fails (“No” in decision block 513), the transaction is aborted (act 514). If the transaction is aborted, the transaction marks each new record version created by the transaction so that the valid interval indicates that the record version is no longer valid. For instance, the BeginTS could be set to zero and the record slot returned to its free list. The transaction also marks each old record version rendered no longer current by the transaction, so that the old record version is again current. For instance, the transaction might set the EndTS of such record versions back to infinity, so that the old record version can again be considered current.
On the other hand, if the validation succeeds (“Yes” in decision block 513), the pre-commit processing method 500 enters the logging process represented by the acts encompassed by the brackets 520, and represented by element 404B of
For instance, the processor 210A might operate on data in units of “cache lines” in the cache 213. When creating a new record version, the entire record version is created within the cache 213. If that newly created record version is distributed across multiple cache lines, all of those cache lines are transferred from the processor 210A to the persistent system 220A. When updating an old record version to reflect that it is no longer current, only the valid time interval need be changed, and in fact only the EndTS (field 302) need change. Accordingly, there might perhaps only be one portion of the record version being operated upon within the processor cache 213. This EndTS might be present even in a single cache line. Accordingly, only that cache line that contains EndTS would be transferred to the persistent system 220A.
In this description and in the claims, when an item of data (such as a record version, a log buffer, or portion(s) thereof) is transferred or provided to the persistent system 220A, this does not necessarily mean that the item of data is persisted right away in the persistent system 220A. For instance, when providing an item of data to the persistent system, the item of data might be provided to a store buffer of a memory controller for the persistent system 220A. Thus, if a system failure occurs between the time that the item of data is provided to the persistent system 220A and the time that the item of data is made durable in the persistent system 220A, the item of data will not be available upon recovery.
In addition, a log buffer is associated with the transaction (act 523). In one implementation, a pool of log buffers are made available to assist with transactions that are pending so that post-commit processing information may be included to help wind up the transaction to be properly terminated. Each log buffer might have one of three states; a free state, a filling state, and a filled state. The transaction locates a log buffer that has a free state, and changes the state to filling.
The transaction then stores post-commit processing information in the log buffer (act 524). This includes a commit marker (e.g., CommitTS) for the transaction, and a pointer for each record version that is created by the transaction and for each record version that is updated by the transaction. The post-commit processing information contains information needed to complete post-commit processing during recovery if this becomes necessary. A checksum may also be computed over the payload of each new version, and the checksum may be added to the log buffer. Another checksum may be computed over the contents of the log buffer, and this other checksum can then be saved within a field of the log buffer. During a recovery process, it is possible to compute the checksum over the log buffer and compare it against the checksum that was previously saved in the log buffer. If they match, the log buffer was completely persisted so its content is valid. It is also possible to recompute checksums for the transaction's new versions and compare them against the saved checksums in the log buffer. If they match, the payloads of the new versions were all correctly persisted. When checksums are used for torn write detection, the log buffer is able to store at least the following information: (1) a LBCheckSum (i.e. a checksum over the rest of the log buffer); (2) a transaction ID; (3) a commit timestamp; (4) a list of pointers to old versions; (5) a list of pointers to new versions; and (6) a list of checksums, one checksum for each new version.
The post-commit processing information is then provided to the persistent system 220A (act 525). For instance, the log buffer (e.g., more specifically, the one or more cache lines constituting the log buffer) is then provided to the persistent system.
The logging process then confirms that the record versions (and portions thereof) provided to the persistent memory and the post-commit processing information have been persisted in the persistent system (act 526). As previously mentioned, there is an embodiment in which items of data provided to the persistent system are not necessarily persisted right away in the persistent system 220A. However, the transaction may issue a command causing any data provided to the persistent system that has not yet been made durable, to in fact be made durable (or persisted) in the persistent system. For instance, such a command might cause any data within a store buffer of the persistent system 220A to be persisted in the persistent system 220A. Once this persisting occurs, the command returns, allowing the transaction to conclude that all of the data (including the record versions and log buffer) has been made durable in the persistent system 220A. In this description, this command will be referred to as a “Persist” command.
The transaction then commits as represented by the acts bracketed by brackets 530. For instance, the transaction changes a status field of the post-commit processing information so that it is not further added to (act 531). This might be accomplished by the transaction changing the status of the log buffer containing the post-commit processing information from filling to filled.
The transaction then persists the closed state of the post-commit processing information to the persistent system. For instance, this may be accomplished by providing the closed state (e.g., the cache line containing the log buffer status) of the post-commit processing operation to the persistent system (act 532), and again issuing the Persist command to thereby confirm that the closed state has been persisted in the persistent system (act 533). The transaction has been committed once the log buffer status has been persisted.
For each record version that is newly created or rendered old by the transaction, the transaction updates the valid interval using the post-commit processing information (act 601). As an example, in the context of
The updated valid interval is then provided to the persistent system (act 613). The transaction then confirms that the updated valid interval for each of the written record versions has been persisted to the persistent system (act 614). For instance, the transaction might again issue the Persist command. The valid interval changes are now durable so the log buffer is no longer needed.
Accordingly, the log buffer status is changed from filled to free (act 621), and the changed state of the log buffer is provided to the persistent system (act 622). For instance, the cache line containing the log buffer state might then be provided to the persistent system 220B. The transaction then confirms that the altered stated of the log buffer has been persisted (act 623), for instance, using the Persist command. The transaction then terminates (act 624). Specifically, the transaction module 201 may mark the transaction object terminated and remove the transaction object from the transaction map.
Thus, what has been described is a method for processing a transaction from beginning to end, when the transaction performs processing on record versions within a persistent system. Although not required, the persistent system could be a persistent main memory.
Recovery Processing
Recovery may consist of three phases. First, post-commit processing is completed for committed transactions that were alive when the crash occurred. This may be done using the post-commit processing information generated (and included within the log buffer) for that transaction. Next, the log buffer pool is cleaned up. Finally, each record slot is evaluated to determine which record slots contain valid records, and which record slots are free, and the indexes and free list for the database are rebuilt.
The method 700 includes finding post-commit processing information for each committed transaction that was alive when the crash occurred (act 701). The context of box 710 involves the first phase of recovery, namely, performing post-commit processing for each committed transaction that was alive when the crash occurred. For instance, in the case of the post-commit processing information being within a log buffer, the log buffer would be marked as having a filled status (reference acts 532 and 533 of
For each of the identified complete sets of post-commit processing information (e.g., for each log buffer marked as filled), each newly written record version that was created by the transaction or rendered old by the transaction are also identified (act 711) using, for example, the pointers to such record versions in the post-commit processing information. For each of such record versions, the valid time interval of the record version is updated (act 712) using the commit marker such as, for example, the CommitTS from the post-commit processing information. For instance, for each rendered old record version that is rendered not current by the transaction, the valid interval end boundary (e.g., field 302) is updated using the commit marker (act 713). As example, the valid interval end boundary may be replaced with CommitTS. For each newly created record version created by the transaction, the valid interval begin boundary (e.g., field 301) is updated using the commit marker (act 714).
The updated valid interval for each of the written record versions is then provided to the persistent system (act 715). For instance, at least the cache line that includes the valid time interval is provided to the persistent system 220A. Recall again that providing data to the persistent system 220A alone does not guarantee that the data is persisted in the persistent system 220A. Rather, the updated valid interval is thereafter confirmed to have been persisted to the persistent system (act 716) via a subsequent act (such as a Persist command).
This completes the first phase of recovery, which is performing the post-processing of each of the transactions to thereby update their valid time interval. The next step is to clean up the log buffer pool. The content of box 720 is performed for each log buffer that is marked as filling or filled. In the case of a filling log buffer, the log buffer was associated with a transaction during normal processing in act 523, but normal processing had not reached the point where the log buffer status changed from filling to filled (act 531), or at least had not reached the point where the filled log buffer status had been persisted in the persistent system (act 533). Accordingly, log buffers that have a filling status may be freed since the post-commit processing information, if any, within such log buffers will not be used to commit a transaction. As for the log buffers having the filled status, the contents of box 710 have already taken care of post-commit processing for the committed transaction, and thus those log buffers may also be freed.
Accordingly, each of the filling or filled log buffers are freed so that the log buffer may be made available to be associated with another transaction (act 721). For instance, the log buffer may be changed from a filling or filled status to a free status. The updated free log buffer status is then provided to the persistent memory (act 722). For instance, for each cache line that contains a free log status for each of the log buffers, those cache lines may be provided to the persistent memory The free log buffer status is then confirmed to be persisted in the persistent system (act 723) using, for example, the Persist command.
In the final phase of recovery, the database is recovered to the last valid state. This is accomplished by performing three tasks: 1) identify all record versions that are current and thus should be part of the database state, 2) identify all record portions (also called herein “slots” or “record slots”) that are empty or contain record versions that should not be part of the database state, and 3) rebuild the indexes of the database.
The valid interval begin boundary (e.g., field 301) is accessed for the corresponding record slot (act 811). Flow then branches depending on whether the valid interval begin boundary indicates that the record slot is not part of a transaction (“Zero” in decision block 812), is part of an uncommitted record (“TID” in decision block 812), or otherwise (“TS” in decision block 812).
The valid interval begin boundary may be concluded to not be part of any transaction at all if, for instance, the valid interval begin boundary indicates a zero (“Zero” in decision block 812). In that case, the record slot is added to the free list of the corresponding page (act 813).
The valid interval begin boundary may be concluded to be part of an uncommitted transaction if, for instance, the valid interval begin boundary indicates a transaction ID (“TID” in decision block 812). In that case, the record slot may then be added to the free record slot list of the corresponding page (act 813).
The valid interval begin boundary (e.g., field 301) may also be evaluated to conclude that valid interval end boundary (e.g., field 302) should be evaluated since the begin boundary includes a timestamp (“TS” in decision block 812). In this case, the record slot corresponds to a record version that was created through a committed transaction.
In this case, the valid interval end boundary is accessed for the record slot (act 815), and then processing flow branches depending on the nature of the valid interval end boundary (decision block 816). For instance, if the valid interval end boundary indicates infinity (“Infinity” in decision block 816), this means that the record slot corresponds to a record version that is current. Accordingly, the recovery identifies which table of the database the current record version belongs to (act 817), and adds the record version to the identified table (act 818), including inserting the version into all indexes associated with the table.
If the valid interval end boundary indicates a transaction ID (“TID” in decision block 816), this means that a transaction attempted to render the corresponding record version as old, but that the transaction did not commit. Accordingly, the valid interval end boundary is updated (act 819) to make the record version current again (by making the valid interval end boundary equal to infinity). Furthermore, the recovery identifies which table of the database the current record version belongs to (act 817), and adds the record version to the identified table (act 818), including inserting the version into all indexes associated with the table.
If the valid interval end boundary indicates a timestamp (“TS” in decision block 816), this means that the version was rendered old by a committed transaction. Accordingly, the record version may be freed (act 820). For instance, the valid interval begin boundary may be reset to zero, indicating availability of the record slot for use in creating a future record version. The record slot may then be added to the free list of record slots
Accordingly, the principles described herein provide an effective mechanism for performing transactions in a database that is persisted in a persistent system, and recovery of a system failure in the context of the same
The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than by the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope.
This application is a continuation of U.S. patent application Ser. No. 13/892,150 filed on May 10, 2013, entitled “RECOVERY PROCESSING FOR DATABASE IN PERSISTENT SYSTEM,” which issued as U.S. Pat. No. 9,519,551 on Dec. 13, 2016, which claims the benefit of U.S. Provisional Patent Application Ser. No. 61/806,337 filed on Mar. 28, 2013, entitled “DATABASE SYSTEM USING PERSISTENT MAIN MEMORY.” The foregoing applications are incorporated herein by reference in their entireties.
Number | Name | Date | Kind |
---|---|---|---|
5369757 | Spiro | Nov 1994 | A |
5452445 | Hallmark | Sep 1995 | A |
5465328 | Dievendorff | Nov 1995 | A |
5638508 | Kanai | Jun 1997 | A |
5642503 | Reiter | Jun 1997 | A |
5721918 | Nilsson | Feb 1998 | A |
5845292 | Bohannon et al. | Dec 1998 | A |
5864851 | Breitbart et al. | Jan 1999 | A |
5870758 | Bamford et al. | Feb 1999 | A |
6131094 | Gord | Oct 2000 | A |
6182086 | Lomet et al. | Jan 2001 | B1 |
6243702 | Bamford | Jun 2001 | B1 |
6502133 | Baulier et al. | Dec 2002 | B1 |
6901481 | Olson | May 2005 | B2 |
7065537 | Cha et al. | Jun 2006 | B2 |
7266724 | Denda et al. | Sep 2007 | B2 |
7308643 | Zhu | Dec 2007 | B1 |
7512636 | Verma et al. | Mar 2009 | B2 |
7620661 | Mehaffy | Nov 2009 | B2 |
7739244 | Verma et al. | Jun 2010 | B2 |
7801866 | Kathuria et al. | Sep 2010 | B1 |
7930695 | Chaudhry et al. | Apr 2011 | B2 |
8099627 | Shah et al. | Jan 2012 | B1 |
8255645 | Ergan et al. | Aug 2012 | B2 |
8370258 | Roberts et al. | Feb 2013 | B2 |
8396831 | Larson et al. | Mar 2013 | B2 |
8683262 | Subbiah et al. | Mar 2014 | B1 |
9104662 | Srihari | Aug 2015 | B2 |
9417974 | Larson et al. | Aug 2016 | B2 |
9436561 | Larson et al. | Sep 2016 | B2 |
9477557 | Larson et al. | Oct 2016 | B2 |
9519551 | Larson et al. | Dec 2016 | B2 |
20020049950 | Loaiza | Apr 2002 | A1 |
20030074602 | Lomet | Apr 2003 | A1 |
20040025169 | Wiser et al. | Feb 2004 | A1 |
20040213387 | Chandrasekaran | Oct 2004 | A1 |
20040249838 | Hinshaw et al. | Dec 2004 | A1 |
20040255182 | Lomet | Dec 2004 | A1 |
20040267776 | Brown et al. | Dec 2004 | A1 |
20060036574 | Schweigkoffer et al. | Feb 2006 | A1 |
20060167960 | Lomet | Jul 2006 | A1 |
20060218200 | Factor et al. | Sep 2006 | A1 |
20060259518 | Lomet et al. | Nov 2006 | A1 |
20070139231 | Wallia | Jun 2007 | A1 |
20080097996 | Dias | Apr 2008 | A1 |
20080222159 | Aranha et al. | Sep 2008 | A1 |
20080235461 | Tan et al. | Sep 2008 | A1 |
20090083488 | Madriles Gimeno et al. | Mar 2009 | A1 |
20090132535 | Surtani et al. | May 2009 | A1 |
20090287703 | Furuya | Nov 2009 | A1 |
20100010967 | Muller | Jan 2010 | A1 |
20100088551 | Berkner | Apr 2010 | A1 |
20100211554 | Reid et al. | Aug 2010 | A1 |
20110153566 | Larson et al. | Jun 2011 | A1 |
20110231447 | Starkey | Sep 2011 | A1 |
20110252000 | Diaconu et al. | Oct 2011 | A1 |
20110302143 | Lomet | Dec 2011 | A1 |
20110320496 | Reid et al. | Dec 2011 | A1 |
20120095974 | Bentkofsky et al. | Apr 2012 | A1 |
20120102006 | Larson et al. | Apr 2012 | A1 |
20120109895 | Zwilling et al. | May 2012 | A1 |
20120233139 | Larson et al. | Sep 2012 | A1 |
20120254120 | Fang et al. | Oct 2012 | A1 |
20120265743 | Ivanova et al. | Oct 2012 | A1 |
20120317384 | Bascunana Munoz et al. | Dec 2012 | A1 |
20130013874 | Graefe et al. | Jan 2013 | A1 |
20130013890 | Manner et al. | Jan 2013 | A1 |
20130066948 | Colrain et al. | Mar 2013 | A1 |
20130110766 | Promhouse et al. | May 2013 | A1 |
20130111103 | Dodson et al. | May 2013 | A1 |
20140164828 | Banikazemi | Jun 2014 | A1 |
20140297595 | Larson et al. | Oct 2014 | A1 |
20150378775 | Vermeulen | Dec 2015 | A1 |
20150379062 | Vermeulen et al. | Dec 2015 | A1 |
20160042028 | Faerber et al. | Feb 2016 | A1 |
20170031973 | Larson et al. | Feb 2017 | A1 |
Number | Date | Country |
---|---|---|
101506766 | Aug 2009 | CN |
102436490 | May 2012 | CN |
102682069 | Sep 2012 | CN |
102682071 | Sep 2012 | CN |
Entry |
---|
“Office Action Issued in European Patent Application No. 14724881.9”, dated Oct. 2, 2017, 2 Pages. |
“Non Final Office Action Issued in U.S. Appl. No. 15/295,474”, dated Sep. 27, 2018, 11 Pages. |
“Search Report Issued in European Patent Application No. 18180756.1”, dated Aug. 27, 2018, 10 Pages. |
“Office Action Issued in Chinese Patent Application No. 201480017610.0”, dated Feb. 5, 2018, 13 Pages. |
“First Office Action and Search Report Issued in Chinese Patent Application No. 201480017621.9”, dated Jan. 29, 2018, 13 Pages. |
“Second Office Action Issued in Chinese Patent Application No. 201480017621.9”, dated Sep. 5, 2018, 7 Pages. |
“First Office Action and Search Report Issued in Chinese Patent Application No. 201480018433.8”, dated Mar. 28, 2018, 15 Pages. |
“Second Written Opinion Issued in PCT Application No. PCT/US2014/031533”, dated Mar. 11, 2015, 10 Pages. |
“Drive Speed, Availability, and Scalability—for Less—with our Database Solutions”, Retrieved from <<http://web.archive.org/web/20130412024529/http://www54.sap.com/solutions/tech/database/software/overview.html>>, Retrieved on: Apr. 8, 2013, 2 Pages. |
“IBM SolidDB—Fastest Data Delivery”, Retrieved from <<http://web.archive.org/web/20130409032746/http://www-01.ibm.com/software/data/soliddb/>>, Retrieved Date: Apr. 8, 2013, 1 Page. |
“In-Memory Computing (SAP HANA)”, Retrieved from <<https://web.archive.org/web/20130410131615/http://www.sap.com/solutions/technology/in-memory-computing-platform/hanaoverview/index.epx>>, Retrieved Date: Apr. 8, 2013, 3 Pages. |
“Oracle TimesTen In-Memory Database Recommended Programming Practices”, Retrieved from: <<http://download.oracle.com/otn_hosted_doc/timesten/603/TimesTen-Documentation/goodpractices.pdf>>, Mar. 2006, 2 Pages. |
“Oracle TimesTen”, Retrieved from <<https://web.archive.org/web/20131210204943/http://www.oracle.com/technetwork/database/database-technologies/timesten/overview/index.html>>, Retrieved Date: Apr. 8, 2013, 2 Pages. |
“Phoenix Compiler Framework”, Retrieved from <<https://en.wikipedia.org/wiki/Phoenix_(compiler_framework)>>, Retrieved Date: Apr. 8, 2013, 2 Pages. |
“The LLVM Compiler Infrastructure”, Retrieved from <<https://web.archive.org/web/20130420074358/http://llvm.org/>>, Retrieved Date: Apr. 8, 2013, 4 Pages. |
“VoltDB”, Retrieved from <<https://web.archive.org/web/20130419072115/http://voltdb.com/>>, Retrieved Date: Apr. 8, 2013, 1 Page. |
“Final Office Action Issued in U.S. Appl. No. 13/892,124”, dated Oct. 2, 2015, 31 Pages. |
“Notice of Allowance Issued in U.S. Appl. No. 13/892,124”, dated May 20, 2016, 7 Pages. |
“Final Office Action issued in U.S. Appl. No. 13/892,150”, dated Oct. 9, 2015, 34 Pages. |
“Non-Final Office Action Issued in U.S. Appl. No. 13/892,150”, dated May 15, 2015, 24 Pages. |
“Notice of Allowance Issued in U.S. Appl. No. 13/892,150”, dated Aug. 30, 2016, 9 Pages. |
“Final Office Action Issued in U.S. Appl. No. 13/892,173”, dated Oct. 2, 2015, 28 Pages. |
“Notice of Allowance Issued in U.S. Appl. No. 13/892,173”, dated Jul. 7, 2016, 7 Pages. |
“Final Office Action Issued in U.S. Appl. No. 13/892,180”, dated Oct. 2, 2015, 26 Pages. |
“Notice of Allowance Issued in U.S. Appl. No. 13/892,180”, dated May 3, 2016, 7 Pages. |
Bohannon, et al., “The Architecture of the Dali Main Memory Storage Manager”, In Journal of Multimedia Tools and Applications, vol. 4, Issue 2, Mar. 1997, 46 Pages. |
Callaghan, Mark, “Do You Need the InnoDB Doublewrite Buffer?”, Retrieved from <<http://web.archive.org/web/20130503063701/http://www.facebook.com/note.php?note_id=107329775932>>, Jul. 10, 2009, 1 Page. |
Campbell, Dave, “Breakthrough Performance with In-Memory Technologies”, Retrieved from: <<http://blogs.technet.com/b/dataplatforminsider/archive/2012/11/08/breakthrough-performance-with-in-memory-technologies.aspx>>, Nov. 8, 2012, 4 Pages. |
Funke, et al., “Compacting Transactional Data in Hybrid OLTP&OLAP Databases”, In Proceedings of the VLDB Endowment, vol. 5, Issue 11, Jul. 1, 2012, pp. 1424-1435. |
Funke, et al., “HyPer-sonic Combined Transaction and Query Processing”, In Proceedings of the VLDB Endowment, vol. 4, Issue 12, Aug. 29, 2011, pp. 1367-1370. |
Grund, et al., “An Overview of HYRISE—A Main Memory Hybrid Storage Engine”, In Proceedings of the Bulletin of the IEEE Computer Society Technical Committee on Data Engineering, vol. 35, Issue 1, Mar. 2012, 6 Pages. |
Grund, et al., “HYRISE—A Main Memory Hybrid Storage Engine”, In Proceedings of the VLDB Endowment, vol. 4, Issue 2, Sep. 13, 2010, 12 Pages. |
Harizopoulos, et al., “OLTP Through the Looking Glass, and What We Found There”, In Proceedings of the ACM SIGMOD International Conference on Management of Data, Jun. 9, 2008, 12 Pages. |
Hu, Wei, “Oracle Database 11g Internals: Five Key High-Availability Innovations”, Retrieved from <<http://www.oracle.com/technetwork/database/features/availability/s316923-175936.pdf>>, Dec. 7, 2010, 44 Pages. |
Johnson, et al., “Shore-MT: A Scalable Storage Manager for the Multicore Era”, In Proceedings of the 12th International Conference on Extending Database Technology: Advances in Database Technology, Mar. 24, 2009, 12 Pages. |
Kallman, et al., “H-Store: A High-Performance, Distributed Main Memory Transaction Processing System”, In Proceedings of the VLDB Endowment, vol. 1, Issue 2, Aug. 24, 2008, 4 Pages. |
Kemper, et al., “HyPer: A Hybrid OLTP&OLAP Main Memory Database System Based on Virtual Memory Snapshots”, In Proceeding of the IEEE 27th International Conference on Data Engineering, Apr. 11, 2011, 12 Pages. |
Larson, et al., “High-Performance Concurrency Control Mechanisms for Main-Memory Databases”, In Proceedings of the VLDB Endowment, vol. 5, Issue 4, Dec. 31, 2011, pp. 298-309. |
Levandoski, et al., “The Bw-Tree: A B-tree for New Hardware Platforms”, In Proceedings of the 29th IEEE International Conference on Data Engineering, Apr. 8, 2013, 12 Pages. |
Lodberg, et al., “My SQL in a Main Memory Database Context”, In Technical Report, Department of Computer Science, University of Copenhagen, Feb. 2004, 8 Pages. |
Michael, Maged M., “Hazard Pointers: Safe Memory Reclamation for Lock-Free Objects”, In Proceedings of the IEEE Transactions on Parallel and Distributed Systems, vol. 15, Issue 6, Jun. 2004, pp. 491-504. |
Michael, Maged M., “High Performance Dynamic Lock-Free Hash Tables and List-Based Sets”, In Proceedings of the Fourteenth Annual ACM Symposium on Parallel Algorithms and Architectures, Aug. 10, 2002, 10 Pages. |
Neumann, Thomas, “Efficiently Compiling Efficient Query Plans for Modern Hardware”, In Proceedings of the VLDB Endowment, vol. 4, Issue 9, Aug. 29, 2011, 12 Pages. |
Pandis, et al., “Data-Oriented Transaction Execution”, In Proceedings of the VLDB Endowment, vol. 3, Issue 1-2, Sep. 13, 2010, 10 Pages. |
“International Preliminary Report on Patentability Issued in PCT Application No. PCT/US2014/031533”, dated Jul. 24, 2015, 14 Pages. |
“International Search Report & Written Opinion for PCT Patent Application No. PCT/US2014/031533”, dated Sep. 17, 2014, 13 Pages. |
“International Preliminary Report on Patentability Issued in PCT Application No. PCT/US2014/031620”, dated Jul. 22, 2015, 12 Pages. |
“International Search Report & Written Opinion for PCT Patent Application No. PCT/US2014/031620”, dated Sep. 2, 2014, 12 Pages. |
“International Preliminary Report on Patentability Issued in PCT Application No. PCT/US2014/031625”, dated Jun. 29, 2015, 11 Pages. |
“International Search Report & Written Opinion for PCT Patent Application No. PCT/US2014/031625”, dated Aug. 29, 2014, 12 Pages. |
“Second Written Opinion Issued in PCT Application No. PCT/US2014/031625”, dated Mar. 5, 2015, 10 Pages. |
“International Preliminary Report on Patentability Issued in PCT Application No. PCT/US2014/031629”, dated Jul. 22, 2015, 11 Pages. |
“International Search Report & Written Opinion for PCT Patent Application No. PCT/US2014/031629”, dated Sep. 29, 2014, 12 Pages. |
Dave, Pinal, “SQL Server—What is Hekaton?—Simple Words Explanation”, Retrieved from <<http://blog.sqlauthority.com/2012/12/23/sql-server-what-is-hekaton-simple-words-explanation/>>, Dec. 23, 2012, 3 Pages. |
Prabhakaran, et al., “Iron File Systems”, In Proceedings of the Twentieth ACM Symposium on Operating Systems Principles, Oct. 23, 2005, pp. 206-220. |
Prabhakaran, Vijayan, “IRON File Systems”, A Dissertation Submitted in Partial Fulfillment of Doctor of Philosophy in Computer Sciences, University of Wisconsin-Madison, Jan. 1, 2006, 148 Pages. |
Sundella, et al., “Lock-Free Deques and Doubly Linked Lists”, In Journal of Parallel and Distributed Computing, vol. 68, Issue 7, Mar. 15, 2008, 14 Pages. |
Volos, et al., “Mnemosyne: Lightweight Persistent Memory”, In Proceedings of the Sixteenth International Conference on Architectural Support for Programming Languages and Operating Systems, Mar. 5, 2011, pp. 91-103. |
“Non-Final Office Action Issued in U.S. Appl. No. 13/892,180”, dated May 15, 2015, 19 Pages. |
“Non-Final Office Action Issued in U.S. Appl. No. 13/892,173”, dated May 19, 2015, 22 Pages. |
“Non-Final Office Action Issued in U.S. Appl. No. 13/892,124”, dated May 20, 2015, 24 Pages. |
“Office Action Issued in European Patent Application No. 14721156.9”, dated Sep. 14, 2017, 4 Pages. |
“Second Office Action Issued in Chinese Patent Application No. 201480018433.8”, dated Dec. 19, 2018, 7 Pages. |
“Office Action Issued in European Patent Application No. 18180756.1”, dated Jan. 9, 2020, 10 pages. |
Number | Date | Country | |
---|---|---|---|
20170060703 A1 | Mar 2017 | US |
Number | Date | Country | |
---|---|---|---|
61806337 | Mar 2013 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13892150 | May 2013 | US |
Child | 15347580 | US |