Sorted Hashmaps for Data Discrepancy Detection in Replication Pipelines

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current data replication techniques face challenges in detecting and addressing data inconsistencies, such as data loss and duplication, particularly in identifying the root cause and timing of these issues, which often leads to system restarts and privacy concerns due to inadequate logging.

Innovation Solution

A computer system and method that utilizes sorted hashmaps to detect data discrepancies during live data replication by analyzing metadata updates across the replication pipeline, identifying the stage and component where discrepancies occur without impacting replication performance, and providing modes for different user environments to manage resource usage.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If comprehensive logging is implemented to detect data inconsistencies, then detection capability is improved, but system performance deteriorates and privacy concerns arise

Engineering Contradiction:
Improvedetection capabilityVSAvoidsystem performance
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent extracts only the necessary metadata elements (transaction IDs, sequence numbers, commit timestamps) from the full log data, processing only these specific fields rather than comprehensive logging. This extraction approach maintains detection capability while reducing performance impact and privacy concerns.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The system performs partial logging by recording only essential metadata fields required for discrepancy detection, rather than implementing comprehensive logging of all data operations. This partial action approach achieves sufficient detection capability without the performance overhead of full logging.

Inventive Principle:
Principle #16Partial or excessive action

2Reliability

If data replication consistency is strictly enforced through comprehensive checking, then data reliability is improved, but replication speed deteriorates

Engineering Contradiction:
Improvedata consistencyVSAvoidreplication speed
Core Design Contradiction:
ReliabilityVSSpeed

Solution Approach 1:

The patent implements preliminary action by pre-processing and organizing metadata into sorted hashmaps before replication operations. This preliminary organization enables efficient O(1) lookup during replication consistency checking, maintaining both reliability and speed.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system creates simplified copies of data in the form of metadata records containing only essential identification fields (transaction ID, sequence number, timestamp). These lightweight copies enable fast consistency verification without the overhead of copying and comparing full data sets.

Inventive Principle:
Principle #26Copying

3Loss of information

If detailed logging of all data operations is implemented, then root cause analysis capability is improved, but memory consumption increases

Engineering Contradiction:
Improvediagnostic informationVSAvoidmemory usage
Core Design Contradiction:
Loss of informationVSQuantity of substance

Solution Approach 1:

The patent extracts only the essential diagnostic elements (transaction IDs, sequence numbers, commit timestamps, component identifiers) from complete operation logs. This extraction maintains root cause analysis capability while significantly reducing memory consumption by excluding redundant detailed operation data.

Inventive Principle:
Principle #2Taking out (Extraction)

4Measurement precision

If metadata tracking is implemented across all replication components, then discrepancy detection accuracy is improved, but system complexity increases

Engineering Contradiction:
Improvediscrepancy detection accuracyVSAvoidsystem complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent implements a universal metadata structure that serves multiple functions: tracking data flow, enabling discrepancy detection, providing diagnostic information, and supporting performance monitoring. This multi-functional metadata approach improves detection accuracy without proportionally increasing system complexity.

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

Solution Approach 2:

The system uses homogeneous metadata structures (sorted hashmaps with consistent key-value formats) across all replication components. This homogeneity simplifies the tracking system by providing uniform data structures that are easy to process and compare, reducing the complexity burden of comprehensive tracking.

Inventive Principle:
Principle #33Homogeneity

Data Source

PatentUS20240184801A1Data discrepancy detection in a sensitive data replication pipeline
Publication Date: 2024.06.06 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US20240184801A1 patent drawing
  • US20240184801A1 patent drawing
  • US20240184801A1 patent drawing

AI summary

An approach is provided for detecting a data discrepancy in a replication pipeline. During a live data replication process that includes moving logical records in the replication pipeline from a source database to a target database via component(s), a raw record is read from a log entry. A logical record is obtained by converting the raw record. The logical record is moved in the replication pipeline so that a next component receives the logical record. Responsive to obtaining or receiving the logical record, metadata is updated in sorted hashmaps. A data discrepancy is detected between the obtained logical record and the moved logical record by analyzing the updated metadata.