Recoverable Single-Phase Logging with Atomic Validation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing data logging methods, such as two-phase write operations, incur latency and overhead due to the need for additional 'trailer' records and data displacement, which complicates data recovery and reliability in case of system failures.

Innovation Solution

Implementing recoverable logs with a validation indicator stored atomically with each data block, allowing parallel writing of header records and data blocks, and using a validation indicator to verify log entry validity during recovery.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a two-phase write operation with trailer records is used, then data reliability is improved, but write latency increases

Engineering Contradiction:
Improvedata reliabilityVSAvoidwrite latency
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies preliminary action by pre-calculating and storing validation indicators (checksums) with each data block before the write operation completes. This allows the validation information to be ready in advance, eliminating the need for post-write validation computations and enabling faster recovery without sacrificing reliability.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent segments the validation mechanism by attaching individual validation indicators to each data block rather than using a single trailer record for the entire log entry. This segmentation allows parallel validation of multiple blocks and eliminates the sequential dependency that causes latency in two-phase writes.

Inventive Principle:
Principle #1Segmentation

2Difficulty of detecting and measuring

If informational headers replace part of each data block, then log entry identification is improved, but storage efficiency deteriorates

Engineering Contradiction:
Improvelog entry identificationVSAvoidstorage efficiency
Core Design Contradiction:
Difficulty of detecting and measuringVSQuantity of substance

Solution Approach 1:

The patent extracts the validation information (validation indicators) from the data blocks themselves and stores it separately in metadata associated with each data block. This extraction allows the data blocks to retain their full capacity while still providing comprehensive validation information, solving both identification and storage efficiency requirements.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent makes the metadata structure multi-functional by using it to store both validation indicators and other block information. This universal metadata approach eliminates the need for separate informational headers within data blocks, maintaining storage efficiency while providing comprehensive log entry identification and validation capabilities.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Ease of manufacture

If displaced data is copied to additional blocks, then log record creation is enabled, but memory overhead increases

Engineering Contradiction:
Improvelog record creationVSAvoidmemory overhead
Core Design Contradiction:
Ease of manufactureVSQuantity of substance

Solution Approach 1:

The patent merges the validation indicator storage with the existing metadata structure that already accompanies each data block. By combining multiple functions (validation, block identification, and metadata storage) into a single metadata structure, the patent eliminates the need for separate copies of displaced data, reducing memory overhead while maintaining log record creation capabilities.

Inventive Principle:
Principle #5Merging (Combining)

4Stability of the object's composition

If merged back operations are performed on displaced data, then data consistency is improved, but operational complexity increases

Engineering Contradiction:
Improvedata consistencyVSAvoidoperational complexity
Core Design Contradiction:
Stability of the object's compositionVSDevice complexity

Solution Approach 1:

The patent implements self-service by having the validation indicators automatically verify data consistency during recovery operations. The metadata containing validation indicators performs the verification function automatically when data blocks are read, eliminating the need for complex manual merged-back operations and reducing operational complexity while maintaining data consistency.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS8805886B1Recoverable single-phase logging
Publication Date: 2014.08.12 ARCTERA US LLC
  • US8805886B1 patent drawing
  • US8805886B1 patent drawing
  • US8805886B1 patent drawing

AI summary

A log manager may store a validation indicator with each data block of a log entry. The log manager may create a header block for each log entry that may include a validation indicator or tag. Such a validation indicator may be stored within the metadata for each data block. The validation indicator may additionally be stored in the metadata for the header block and it may be stored in header block itself. When recovering such a log, according to some embodiments, the validation indicators for each data block are checked against the validation indicator in the header block.