Transaction Log Management via Rogue Task Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Transaction log systems face issues with continuous growth due to long-running Unit-of-Work (UOW) processes or 'rogue' programs, leading to a log-full condition, which can result in system failures and data integrity issues when the log reaches its capacity.

Innovation Solution

A method and system for managing transaction logs by monitoring usage, generating a historical profile of log resource usage, and selecting appropriate actions when thresholds are reached, such as identifying the oldest active task and comparing its characteristics to determine if it has entered an invalid loop, and taking actions like issuing warnings or removing tasks to prevent log overflow.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If transaction log continuously records all recoverable changes, then data integrity and recovery capability are improved, but log size grows indefinitely causing log-full conditions and system failures

Engineering Contradiction:
Improvedata integrityVSAvoidlog size
Core Design Contradiction:
ReliabilityVSVolume of stationary object

Solution Approach 1:

The system performs preliminary actions by monitoring log growth trends and identifying potential rogue tasks before they cause log-full conditions. The profiler continuously analyzes log entry patterns and historical profiles to predict when a task might become problematic, allowing preventive intervention before the log reaches its capacity limit.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system implements feedback mechanisms through the profiler that continuously monitors log resource usage, compares it against historical profiles, and provides feedback to the log manager. This feedback loop enables the system to detect anomalies in real-time and trigger appropriate responses such as warnings or task termination based on the monitored characteristics.

Inventive Principle:
Principle #23Feedback

2Reliability

If the system monitors and manages log usage actively, then log overflow is prevented, but system complexity increases due to profiling and monitoring mechanisms

Engineering Contradiction:
Improvelog overflow preventionVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system performs self-service through automated profiling and monitoring mechanisms that operate without manual intervention. The profiler automatically collects and analyzes log usage data, builds historical profiles, and triggers appropriate responses based on predefined policies, eliminating the need for manual log management while reducing operational complexity.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system manages complexity by dynamically adjusting monitoring and management parameters based on actual log usage patterns. The profiler analyzes characteristics such as log entry rate, task duration, and resource consumption, and adapts its monitoring intensity and response thresholds accordingly, allowing the system to maintain effectiveness while reducing unnecessary complexity during normal operation.

Inventive Principle:
Principle #35Parameter changes

3Productivity

If long-running tasks are allowed to complete their work, then productivity is improved, but log size increases indefinitely due to continuous recording of their changes

Engineering Contradiction:
Improvetask completionVSAvoidlog size
Core Design Contradiction:
ProductivityVSVolume of stationary object

Solution Approach 1:

The system uses feedback from the profiler to monitor task characteristics in real-time and provide feedback to the log manager. When a task's log usage exceeds its historical profile or shows signs of becoming rogue, the system triggers appropriate responses such as warnings or termination, allowing legitimate long-running tasks to complete while preventing problematic tasks from consuming excessive log resources.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system dynamically adjusts log management parameters based on task characteristics and historical profiles. By analyzing parameters such as task duration, log entry rate, and resource consumption, the system adapts its monitoring and management behavior to accommodate legitimate long-running productive tasks while identifying and limiting rogue tasks that would cause log overflow.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS8020046B2Transaction log management
Publication Date: 2011.09.13 SAP SE
  • US8020046B2 patent drawing
  • US8020046B2 patent drawing
  • US8020046B2 patent drawing

AI summary

A transaction processing system comprising a transaction log, a log management policy, a profile and a log manager, and method for managing the transaction log are provided. The method comprises maintaining a transaction log of recoverable changes made by transaction processing tasks; storing a log management policy including at least one log threshold and a plurality of possible actions associated therewith; and generating a historical profile comprising a set of acceptable values for characteristics of the log resource usage of tasks. Such log resource usage characteristics may include time taken for a task to complete, CPU resource consumed, number of log records made, etc. From a comparison of the profile behaviour to the actual behaviour of a task which has been identified as holding up trimming of the log, the likelihood that the identified task has entered an invalid loop and represents a ‘bad’ transaction instance, rather than simply just taking a long time to complete, can be inferred. Thus the most appropriate action can be selected and taken.