A Framework for Flexible Transaction Management in Multidatabase Systems

Aidong Zhang, Omran Bukhres, Ahmed K. ElmagarmidPurdue 1993

Abstract

Global transaction management and the preservation of local autonomy present conflicts to the design of multidatabase transaction management systems. A flexible transaction model for the specification of global transactions has been proposed to enhance global transaction management while preserving local autonomy. This paper presents a theory of flexible transaction management that is applicable in those situations where local database systems maintain only serializability and recoverability. A fundamental characterization of the model and of the properties of flexible transactions is first offered. The meaning of relaxed atomicity and isolation of flexible transactions is precisely defined. We then investigate the principles of flexible transaction management that are necessary for ensuring these properties. A class of flexible transactions, which can be executed in the presence of failures, is constructed, and a new correctness criterion is proposed. The results demonstrate that the flexible transaction model enhances substantially the scope of global transaction management beyond that offered by the traditional global transaction model.

Introduction

In multidatabase systems (MDBS), coordinating global transactions across autonomous local databases is a significant challenge. Traditional transaction models rely on the ACID properties and protocols like Two-Phase Commit (2PC). However, local autonomy often precludes the use of 2PC, as local systems may not support a "prepared" state or may unilaterally abort subtransactions. This paper introduces a formal theory for "flexible transactions," which allow for alternative execution paths and relaxed atomicity to maintain global consistency without compromising local control.

The Flexible Transaction Model

The core of the proposed framework is the formalization of global transactions as a set of alternative sub-tasks with specified priorities, represented as ranked partial orders. This flexibility allows the system to attempt different paths to success—for instance, if a reservation at one hotel fails, the system can automatically attempt a reservation at another.

Subtransaction Taxonomy

To manage these complex interactions, subtransactions are classified into three categories:

  1. Compensatable: Tasks that can be undone by a corresponding compensating transaction (e.g., canceling a flight booking).
  2. Retriable: Tasks guaranteed to succeed eventually if repeatedly executed (e.g., updating a local record).
  3. Pivot: Critical tasks that are neither compensatable nor retriable. A successful pivot often marks the point of no return for the global transaction.

Execution and Control Flow

The execution of a flexible transaction is governed by dependencies between its constituent subtransactions. These are formally represented using Execution Dependency Graphs (EDG).

Figure 1: An illustration of a flexible transaction structure showing execution dependencies and alternative paths between sub-tasks t1 through t6.

As shown in Figure 1, the model allows for complex branching and joining of tasks based on the success or failure of preceding steps. This structure ensures that the Global Transaction Manager (GTM) can navigate through failures by selecting valid alternative execution paths.

Correctness Criteria: Semi-Atomicity and Isolation

The paper relaxes the traditional "all-or-nothing" atomicity in favor of semi-atomicity. A flexible transaction is semi-atomic if it either reaches a successful state (one of its valid execution paths completes) or it is effectively undone through compensation, leaving the global state consistent.

Furthermore, the authors propose Compensating Serializability as a new correctness criterion. This allows for improved performance by letting transactions observe partial results of others, provided that specific commit dependencies are maintained to prevent permanent data inconsistencies.

The Pivot Strategy for Reliability

A key insight of the framework is the "Pivot Strategy." To ensure a transaction can always be either completed or undone, it should ideally contain only one pivot subtransaction. The recommended execution sequence is:

  1. Execute all compensatable subtransactions.
  2. Execute the pivot subtransaction.
  3. Execute all retriable subtransactions.

If a failure occurs before the pivot, the compensatable tasks are undone. If the pivot succeeds, the remaining retriable tasks are guaranteed to eventually complete, ensuring global success.

Conclusion

This theoretical framework significantly expands the capabilities of global transaction management. By formalizing flexible transactions and introducing compensating serializability, the authors provide a path toward reliable multidatabase systems that do not require the restrictive 2PC protocol. While it places a semantic burden on developers to correctly categorize subtransactions, the model offers a robust solution for integrating autonomous, heterogeneous database systems.

Summary updated

BibTeX
@inproceedings{zhang1993framework,
  author = {Aidong Zhang and Omran Bukhres and Ahmed K. Elmagarmid},
  title = {{A Framework for Flexible Transaction Management in Multidatabase Systems}},
  booktitle = {Purdue},
  year = {1993},
}
Figure