Database Write Verification Using Extent Address Comparison
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing database verification procedures fail to detect errors when a data record is written to the wrong location, leading to database corruption despite the record itself being valid.
Innovation Solution
A method that calculates and compares expected and actual addresses using extent data from an extent table to determine whether a write instruction should be executed, ensuring data is written to the correct location within the database.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If data verification procedures check only the integrity of data records (checksum, header patterns), then the likelihood that bad data records will corrupt a database is reduced, but the procedures fail to detect when good data records are written to wrong locations
Solution Approach 1:
The patent calculates the expected location of each data record in the database before the write operation occurs. By pre-determining where data should be stored based on its offset and the database structure, the system can verify location correctness in advance and prevent silent corruption from misplaced writes.
Solution Approach 2:
The patent implements a feedback mechanism where the actual write location is compared against the expected location calculated from extent data. This closed-loop verification provides feedback on whether data was written to the correct location, enabling detection and correction of location errors that traditional verification methods miss.
2Productivity
If traditional data verification methods are used, then verification of data record integrity is simple and fast, but silent corruption goes undetected when records are written to incorrect locations
Solution Approach 1:
The system pre-calculates expected data locations using extent data stored in the database, allowing for rapid verification during write operations. This preliminary preparation enables fast comparison between actual and expected locations without adding significant overhead to the verification process.
Solution Approach 2:
The patent introduces extent data as an intermediary structure that maps logical database addresses to physical storage locations. This intermediary layer enables efficient location verification by providing a reference framework that bridges the database logical structure and physical storage, allowing fast detection of misplaced writes.
Data Source
AI summary
A method for processing a write instruction for writing data to a database stored on a logical device includes obtaining first and second addresses that specify the location of the data in respective first and second address spaces. A third address corresponding to an expected location of the data record in the first address space is then calculated. On the basis of a comparison between the first address and the third address, a determination is made as to whether to execute the write instruction.


