scispace - formally typeset
Search or ask a question
Journal Article•DOI•

Ensuring relaxed atomicity for flexible transactions in multidatabase systems

24 May 1994-Sigmod Record (ACMPUB27New York, NY, USA)-
TL;DR: Global transaction management requires cooperation from local sites to ensure the consistent and reliable execution of global transactions in a distributed database system.
Abstract: Global transaction management requires cooperation from local sites to ensure the consistent and reliable execution of global transactions in a distributed database system. In a heterogeneous distr...

Summary (3 min read)

1 Introduction

  • A flurry of research activity has been devoted to the problems of enhancing transaction management by using extended transaction models.
  • In particular, some flexible transaction models proposed for the MDBS environment, such as Flex Transactions [8] and S-transaction [22] , increase the failure resiliency of global transactions by allowing alternative subtransactions to be executed when a local database fails or a subtransaction aborts.
  • Transaction to adhere to a weaker form of atomicity, which the authors term semi-atomicity, while still maintaining its correct execution in the multidatabase.
  • The following example is illustrative: Ift 2 fails, ta may replace t2.
  • Most of this work has assumed the availability of visible prepare-to-commit states in local database systems.

1.1 Proposed Research

  • The authors present an approach which preserves semi-atomicity in an MDBS environment in which the local database systems are requ.ired only to ensure serializability and recoverability [4] .
  • Each partial order provides one alternative for the successful execution of the flexible transaction.
  • This methodology differs from previous approaches in that no specific application semantics are involved.
  • Therefore, a theoretical basis for flexible transaction management can be built.
  • As the compensation and retry approaches [15) are unified and employed as flexible transaction failure recovery techniques, local prepare-to-commit states are no longer required.

1.3 Structure of the Paper

  • Section 2 introduces the fundamental flexible transaction model and Section 3 defines the property of semi-atomicity.
  • In Section 4, the authors define those flexible transac tions that can be executed in the error-prone MDBS environment without requiring local prepare-tocommit states.
  • In Section 5, the authors present the flexible transaction recovery protocol and demonstrate its effectiveness in preserving the semi-atomicity of flexible transactions.
  • Concluding remarks are offered in Section 6.

4.1 Commit Dependencies

  • Flexible transaction may cause its commitment to result in a deadlock situation, in which each subtransaction has to wait for another subtransa.ction to commit before its commitment.
  • In addition, the possession of two or more pivot subtransactions in a -<-partial order may render it difficult to determine a commit order among them which ensures that the -<-partial order can move either forward to the commitment of its sub transactions or backward to the removal of any partial effects of the committed subtransactions.

4.2 Well-formed Flexible Transactions

  • By the critical point determination rules, t2 is the critical point for all three partial orders, because there is altemative if the pivot 8ubtransaetion i3 fails.
  • Thus, ta. is, t6, t7 are abnormal subtransactions and among them, ls. ts. and t6 are the blocking points.
  • Thus, in a well-formed flexible transaction t for any -<-partial order (Tit -<) which contains an abnormal subtransaction t, there is at least one alternative -<-partial order (Tj, -<) which shares a prefix with (TiI-<) such that the aborting of t will lead the execution of T from (Tit -<) to (Tj,-<) without resulting in any database inconsistency.

Observation 1 If a flexible transaction is well-formed. it has at least one -<-partial order such

  • That it has no abnormal subtransaction and no other -<-partial order has lower priority than it.
  • The only blocking point t4 constitutes a switching set.
  • In Example 3, the flexible transaction 7 has one -<-partial order 1'3 that contains no abnormalsubtransaction.
  • Since the blocking point t3 constitutes the switching set and the blocking points t s and ta also constitute the switching set, T is also well-formed.

S is commit dependency preserving and F-recoverable, then the semi-atomicity of T is preservable.

  • Without loss of generality, the authors assume that each -<-partial order of T contains at least one pivot subtransaction.
  • Then, at least one pivot subtransaction of (7i, -<) has committed.
  • Since T is well-formed, by Definition 3, the execution of (Ti, -<) can be changed to another -<-partial order (Tj, -<) without resulting in any database inconsistency.
  • Because abnormal subtransactions are permitted, the concept of a well-formed flexible transaction greatly extends the scope of global transactions that can be specified in the MDBS environment beyond that of the basic global transaction model proposed in [15}.

5 The Flexible Transaction Commit Protocol

  • As each subtransaction begins to execute, the type of the sub transaction is sent to the local database server with the begin command.
  • The operations belonging to the sub transaction are submitted to an individual local data.
  • The completion of each submitted operation, as well as the begin and commit operations, are individually acknowledged by the local database server to the GTM.

5.2 The Commit Protocol

  • When all subtransactions in the currently executing -<-partial order of the flexible transaction enter the committed state, the flexible transaction commits.
  • All its subtransactions which are not in the committed -<-partial order should be in either inactive, aborted, or committed-reversed states.
  • Otherwise, there is no committed -<-partial order, the flexible transaction aborts.
  • All its subtransactions should be in either inactive, aborted, or committed-reversed state.

Did you find this useful? Give us your feedback

Content maybe subject to copyright    Report

Purdue University Purdue University
Purdue e-Pubs Purdue e-Pubs
Department of Computer Science Technical
Reports
Department of Computer Science
1993
Ensuring Relaxed Atomicity for Flexible Transactions in Ensuring Relaxed Atomicity for Flexible Transactions in
Multidatabase Systems Multidatabase Systems
Aidong Zhang
Marian H. Nodine
Omran Bukhres
Report Number:
93-069
Zhang, Aidong; Nodine, Marian H.; and Bukhres, Omran, "Ensuring Relaxed Atomicity for Flexible
Transactions in Multidatabase Systems" (1993).
Department of Computer Science Technical Reports.
Paper 1082.
https://docs.lib.purdue.edu/cstech/1082
This document has been made available through Purdue e-Pubs, a service of the Purdue University Libraries.
Please contact epubs@purdue.edu for additional information.

ENSURING RELAXED ATOMICITY
FOR
FLEXIBLE TRANSACfIONS IN
MULTIDATABASE SYSTEMS
Aidong Zhang
Marian H. Nodine
Omran Bukhres
CSD-TR-93-069
November 1993

Ensuring
Relaxed
Atomicity
for
Flexible
Transactions
in
Multidatabase
Systems
Aidong Zhang·
Marian H. Nodine*
Omran
Bukhres*
-Department
of
Computer
Sciences
Purdue
University
West Lafayette,
IN
47907 USA
{azbang, bukhres}@cs.purdue.edu
"'Department of
Computer
Sciences
Brown University
Providence,
RI
02912 USA
mhn@cs.brown.edu
Abstract
Global tra.nsaction management
and
the
preservation
of
local autonomy are conflicting re-
quirements
in
the design
of
multidatabase
transaction management systems. A flexible trans-
action model for
the
specification
of
global transactions makes it possible to construct robust
global transactions while still preserving local autonomy.
This
paper
presents an approach
that
preserves semi-atomicity. a weaker form of atomicity applicable to flexible transactions
which
span several local database systems
that
maintain serializability and recoverability.
We
first
offer
a fundamental characterization of the flexible transaction model and then precisely define
semi-atomicity
for
flexible transactions.
We
then investigate the principles underlying the ap-
proach to
ROOble
tra.nsaction management which ensures this property. Finally,
we
construct a
class offlexible transactions
which
can
be
executed
in
the presence offailures using our proposed
commit protocol. The results demonstrate
that
the flexible transaction model substantially en-
hances the scope ofglobal transaction management beyond
that
offered
by
the traditional global
transaction model.
1
Introduction
A
multidatabase
system
(MDBS) is a collection of
autonomous
local
databases
(LDBSs)
that
can
be
accessed as a single unit.
There
are
two types
of
transactions
in a
multidatabase.
A local
transaction,
which accesses a local
database
only,
is
submitted
directly to a local
database
system.
A global
transaction,
in
contrast,
may
access several local
databases.
Such a global
transaction
is
submitted
to a global
transaction
manager
(GTM)
superimposed
upon
a
set
of
local
autonomous
1

database
systems, where
it
is parsed
into
a series
of
global
subtransactions
to
be
submitted
to
the
local
database
systems.
While atomicity
in
traditional
distributed
databases
can
be
ensured using well-known proto-
cols [4],
multidatabase
systems cannot use these protocols directly because
of
the
stronger
autonomy
requirements
of
the
component local.
databases
[3,
21}.
Of
particular
concern
is
the
fact
that
multi-
databases
cannot
assume
that
all
participating
local
databases
support
a visible prepare-to-commit
state
for global
subtransactions,
in which
they
have
not
yet been
committed
but
are
guaranteed
the
ability
to
commit.
In
such situations, a local
database
system
that
participates
in a multi-
database
environment
may
unilaterally
abort
a global subtransa.ction
without
agreement from
the
global. level
(termed
a
local
unilateral abort). As a result,
it
becomes difficult
to
ensure
that
a single
logical. commit action
of
the
subtransactions
of
a global
transaction
will
be
consistently carried
out
at
multiple local sites.
In
addition, even when local
database
systems do provide such
support,
the
potential
blocking
and
long delays caused by prepare-to-commit
states
would severely degrade
local execution autonomy.
A flurry
of
research activity has been devoted to
the
problems
of
enhancing
transaction
man-
agement by using extended
transaction
models.
l
In
particular, some flexible
transaction
models
proposed for
the
MDBS
environment, such as Flex Transactions
[8]
and S-transaction
[22],
increase
the
failure resiliency
of
global transactions by allowing alternative
subtransactions
to
be
executed
when a local
database
fails
or
a
subtransaction
aborts.
This
flexibility allows a global.
transaction
to adhere
to
a weaker form
of
atomicity, which we
term
semi-atomicity, while still maintaining
its correct execution in
the
multidatabase.
Semi-atomicity allows a global
transaction
to
commit
even
if
some
subtransactions
abort,
provided
that
their
alternative
subtransactions
commit.
The
following example is illustrative:
Example
1 Consider the following
global
transaction. A user
of
an Automatic Teller Machine
(ATM)
wishes to withdraw $50 from his savings account al in bank b
l
and to obtain the money in
cash from the
ATM.
If
the
ATM
fails
to
disburse the cash, he will instead transfer the $50 to his
checking account
a2
in bank b
2
. With Flex Transactions, this is represented
by
the
follOWing
set
of
subtransactions:
tl:
Withdraw $50 from savings account
al
in bank b
l
.
t2: Disburse $50 from the
ATM.
ta: Transfer $50 to checking account
a2
in bank 6
2
.
In this
global
transaction, either
{tl'
t
2
}
or
{h,
t
a
}
is acceptable, with
{tl'
t2} prefern;d.
Ift
2
fails,
ta may replace
t2.
The entire
global
transaction thus may not have to
be
aborted, even
if
t
2
fails,
but
if
both
t
2
and fa fail, then
it
must abort. 0
1 Many such modelB have
appeared
in
[6,
7].
2

Since
the
flexible transaction model was proposed, much research has been devoted
to
its ap-
plication [13, 2, 1, 12].
Most
of
this work has assumed
the
availability
of
visible prepare-to-commit
states
in local
database
systems.
In
such a scenario,
the
preservation
of
the
semi-atomicity of
flexible transactions is relatively straightforward.
1.1
Proposed
Research
In
this
paper,
we offer a precise definition
of
the
fundamental model
and
of
the
semi-atomicity
property
of
flexible transactions.
We
present
an
approach which preserves semi-atomicity in an
MDBS environment
in which
the
local
database
systems
are
requ.ired only
to
ensure serializability
and
recoverability
[4].
In
the
proposed formulation, a flexible
transaction
is defined as a set
of
subtransactions
upon
which a set
of
partial orders is specified. Each partial
order
provides one
alternative for
the
successful execution of
the
flexible transaction. This methodology differs from
previous approaches in
that
no
specific application semantics
are
involved. Therefore, a theoret-
ical basis for flexible
transaction
management can
be
built. We
then
classify
the
set
of flexible
transactions
that
can
be
executed in an error-prone MDBS environment. As
the
compensation
and
retry
approaches
[15)
are
unified and employed as flexible
transaction
failure recovery techniques,
local prepare-to-commit
states
are
no longer required.
We
demonstrate
that
the
flexible transaction
model substantially enhances
the
scope
of
global transaction management beyond
that
offered by
the
traditional
global transaction model.
1.2
Related
Research
In
order
to
handle local unila.teral
aborts,
approaches using forward recovery (redo
and
retry)
and
backward recovery (compensation) have been proposed in
the
literature. These approaches seek to
ensure
the
semantic atomicity
[9]
of
global transactions in MDBSs. When a subtransa.ction of a
global
transaction
aborts,
the
GTM
may
either re-execute
it
until commitment
or
undo
the
effects
of
the
committed
subtransactions
of
the
global transaction.
The
strategies characterizing these
approaches can
be
classified by
the
relative timing
of
the commitment
of
subtransactions in
the
local
databases
with respect
to
the
global transaction
commit/abort
decision [16]. [23,5] enforce a
global decision on
the
subtransactions by redoing or retrying
them
as necessary. [19,14,18] commit
subtransactions locally before a global decision is
made
and
rely
on
compensation when a global
transaction is aborted. [15,
17]
combine these two approaches.
With
the
forward approach, all
subtransa.ctions
must
be redoable or retriable, while
the
backward approach requires
that
all sub-
transactions
must
be
compensatable.
With
the
combined approach, only one subtransaction
of
each
global
transaction
can be neither retriable
nor
compensatable,
and
the
rest of its subtransactions
must
be
either retriable
or
compensatable. Consequently,
the
ability
to
specify global transactions
becomes severely limited when
the
traditional global transaction model is employed in MDBSs.
3

Citations
More filters
Proceedings Article•DOI•
29 Mar 2005
TL;DR: A transactional approach is presented to ensure the failure atomicity of CS required by partners and a set of rules are used to validate the composite service with regards to designers' transactional requirements.
Abstract: Web services are a key technology for automating inter-organizational interactions. Enterprises can externalise parts of their business processes using them. Then they can dynamically combine existing services to offer value added composite services (CS). One remaining problem is how to ensure a correct composition and a reliable execution of a CS with regards to partners' transactional requirements. In this paper, we present a transactional approach to ensure the failure atomicity of CS required by partners. Partners specify their CS and the requested failure atomicity. Then, we use a set of rules to validate the composite service with regards to designers' transactional requirements.

32 citations

Book Chapter•DOI•
TL;DR: The overall architecture looks like when using a computer cluster and publish/subscribe components as the basic infrastructure to drive the enactment of processes, including load balancing, process navigation, failure handling, and process monitoring is supported with minimal intervention of a centralized coordinator.
Abstract: Processes have increasingly become an important design principle for complex intra- and inter-organizational e-services. In particular, processes allow to provide value-added services by seamlessly combining existing e-services into a coherent whole, even across corporate boundaries. Process management approaches support the definition and the execution of predefined processes as distributed applications. They ensure that execution guarantees are observed even in the presence of failures and concurrency. The implementation of a process management execution environment is a challenging task in several aspects. First, the processes to be executed are not necessarily static and follow a predefined pattern but must be generated dynamically (e.g., choosing the best offer in a pre-sales interaction). Second, deferring the execution of some application services in case of overload or unavailability is often not acceptable and must be avoided by exploiting replicated services or even by automatically adding such services, and by monitoring and balancing the load. Third, in order to avoid a bottleneck at the process coordinator level, a centralized implementation must be avoided as much as possible. Hence, a framework is needed which supports both the modularization of the process coordinator's functionality and the flexibility needed for dynamically generating and adopting processes. In this paper we show how publish/subscribe techniques can be used for the implementation of process management. We show how the overall architecture looks like when using a computer cluster and publish/subscribe components as the basic infrastructure to drive the enactment of processes. In particular we describe how load balancing, process navigation, failure handling, and process monitoring is supported with minimal intervention of a centralized coordinator.

31 citations

Book Chapter•DOI•
03 Jul 2000
TL;DR: This paper analyses the characteristics of Web-multidatabase transactions and associated transaction management issues and proposes a relaxation of the ACID test, based on semantic atomicity, local consistency, and durability, for resilient transactions, i.e., the SACReD properties.
Abstract: This paper analyses the characteristics of Web-multidatabase transactions and associated transaction management issues. Current Web-database transaction management solutions are reviewed. Conclusions drawn are that these are currently too restrictive. Flexibility is required through nested flexible transaction strategies, with compensation, and contingency or alternative subtransactions. Furthermore, the classical ACID test of transaction correctness is over-restrictive and unrealistic in the Web context. A relaxation of the ACID test is proposed, based on semantic atomicity, local consistency, and durability, for resilient transactions, i.e., the SACReD properties. These conclusions motivate the authors ongoing research and development of a prototype CORBA-compliant middleware Web-multidatabase transaction manager based upon a hybrid configuration of open and closed nested flexible transactions.

26 citations

Nelson H. F. Beebe1•
01 Jan 2005
TL;DR: A chronology of key events and developments in the development ofadversary-based pedagogical practices over the past century.
Abstract: s [41, 42]. academia [1932, 1926, 2267, 2275]. academic [1908, 2441]. acceleration [1869]. Access [2370, 13, 38, 1530, 1620, 1555, 2106, 1643, 1410, 602, 1672, 1033, 531, 601, 803, 1532, 1531, 949, 2204, 1455, 657, 598, 1263, 1086, 749, 409, 1969, 319, 2119, 450, 872, 1808, 171, 1559, 238, 821, 812, 1209, 1198, 694, 126, 1357, 883, 2139]. accesses [406]. Accessing [1295, 127, 515]. Accommodating [626]. account [1889]. accounting [679]. accrued [2385]. Accurate [276, 855]. achieve [858]. Achievements [1238, 619, 627]. ACID [1688]. ACM [38, 2139, 2216, 14, 2106, 2290, 2291, 42, 2239, 2445, 13, 2472, 2475, 2476, 2477, 2479, 2480, 1580, 1099, 2478, 2130, 2474, 1946, 1697, 2213, 2029, 2143, 2319, 2397, 2262]. ACM-SIGFIDET [38, 14]. Acquisition [288]. Across [1645, 2393, 1936]. ACT [1322]. ACT-NET [1322]. ACTA [586]. action [761]. Actions [1329]. activation [851]. Active [1322, 1239, 970, 833, 1471, 272, 1574, 1407, 1071, 1321, 1236, 1174, 420, 1171, 546, 1914, 1178, 1470, 766, 1098, 521, 1228, 1444, 1126, 1065]. Activities [136, 984, 216, 156, 1965, 587, 67, 748, 820]. activity [1311, 196]. Actual [211]. Ad [1394, 2001, 2056, 3]. ad-hoc [2001]. Ada [249, 458]. ADAM [1897]. adapt [2406]. Adaptable [1807]. adaptation [2113, 2328, 1209]. Adapting [1121, 254]. Adaptive [1730, 1675, 1002, 1642, 1024, 1826, 1112, 1737, 304, 1282, 307, 1809, 567]. ADBIS’2001 [1931]. ADBMS [1321, 1322]. adding [463]. Addison [2043, 66]. Addison-Wesley [66]. Address [1148, 749, 1147, 642]. Addressing [1199]. ADEPT [1588]. Administering [221, 1303]. Administration [1478, 53]. Ado [1317]. ADO.NET [2236]. ADS [1071]. Advanced [1881, 952, 740, 1765, 2405, 1062, 678, 924, 1177]. Advancements [2105]. Advances [1227, 1931]. advantage [1163]. adventure [2310]. adversarial [2337]. Affiliation [2402]. after [1121]. again [1875]. against [471, 1939]. Agenda [1040]. Agent [1386, 1607, 2047, 1588, 1919, 1198, 2065]. Agent-Based [1386, 1607, 1588, 1198].

18 citations

DOI•
01 Feb 1998
TL;DR: This paper shows how exible mechanisms for failure handling are incorporated into the OPERA process support system using a combination of programming language concepts and transaction processing techniques to allow the construction of fault tolerant work ow processes in a transparent and exible way while ensuring reusability of work ow components.
Abstract: Exceptions are one of the most pervasive problems in process support systems In instal lations expected to handle a large number of processes having exceptions is bound to be a normal occurrence Any programming tool intended for large complex applications has to face this problem However current process support systems despite their orientation towards complex distributed and heterogeneous applications provide almost no support for exception handling This paper shows how exible mechanisms for failure handling are incorporated into the OPERA process support system using a combination of programming language concepts and transaction processing techniques The resulting mechanisms allow the construction of fault tolerant work ow processes in a transparent and exible way while ensuring reusability of work ow components

14 citations

References
More filters
Journal Article•DOI•
TL;DR: This paper investigates how the semantic knowledge of an application can be used in a distributed database to process transactions efficiently and to avoid some of the delays associated with failures.
Abstract: This paper investigates how the semantic knowledge of an application can be used in a distributed database to process transactions efficiently and to avoid some of the delays associated with failures. The main idea is to allow nonserializable schedules which preserve consistency and which are acceptable to the system users. To produce such schedules, the transaction processing mechanism receives semantic information from the users in the form of transaction semantic types, a division of transactions into steps, compatibility sets, and countersteps. Using these notions, we propose a mechanism which allows users to exploit their semantic knowledge in an organized fashion. The strengths and weaknesses of this approach are discussed.

537 citations

Journal Article•DOI•
TL;DR: The history of database system research in the US is one of exceptional productivity and startling economic impact Barely twenty years old as a basic science research field, database research conducted with Federal support in the nation's universities and in its industrial research laboratories has fueled an information services industry estimated at $10 billion per year in the USA alone.
Abstract: The history of database system research in the US is one of exceptional productivity and startling economic impact Barely twenty years old as a basic science research field, database research conducted with Federal support in the nation's universities and in its industrial research laboratories has fueled an information services industry estimated at $10 billion per year in the US alone This industry has grown at an average rate of 20 percent per year since 1965 and is continuing to expand at this rate Achievements in database research underpin fundamental advances in communications systems, transportation and logistics, financial management, knowledge-based systems, accessibility to scientific literature, and a host of other civilian and defense applications They also serve as the foundation for considerable progress in basic science in various fields ranging from computing to biology

197 citations

Proceedings Article•DOI•
01 Mar 1992
TL;DR: A transaction model for multidatabase system (MDBS) applications in which global subtransactions may be either compensatable or retriable is presented and a commit protocol and a concurrency control scheme that ensures that all generated schedules are correct are presented.
Abstract: A transaction model for multidatabase system (MDBS) applications in which global subtransactions may be either compensatable or retriable is presented. In this model compensation and retrying are used for recovery purposes. However, since such executions may no longer consist of atomic transactions, a correctness criterion that ensures that transactions see consistent database states is necessary. A commit protocol and a concurrency control scheme that ensures that all generated schedules are correct are also presented. The commit protocol eliminates the problem of blocking, which is characteristics of the standard 2PC protocol. The concurrency control protocol can be used in any MDBS environment irrespective of the concurrency control protocol followed by the local DBMSs in order to ensure serializability. >

167 citations

Proceedings Article•DOI•
01 May 1990
TL;DR: A fault tolerant transaction management algorithm and recovery procedures that retain global database consistency are designed and shown that their algorithms ensure freedom from global deadlocks of any kind.
Abstract: A model of a multidatabase system is defined in which each local DBMS uses the two-phase locking protocol Locks are released by a global transaction only after the transaction commits or aborts at each local site. Failures may occur during the processing of transactions. We design a fault tolerant transaction management algorithm and recovery procedures that retain global database consistency. We also show that our algorithms ensure freedom from global deadlocks of any kind.

144 citations

Proceedings Article•DOI•
01 Apr 1991
TL;DR: A family of practical protocols is devised that ensure semantic atomicity is guaranteed as the effects of a transaction that is finally aborted are undone semantically by a compensating transaction, and reduces to serializability when no global transactions are aborted.
Abstract: A major disadvantage of the two-phase commit (2PC) protocol is the potential unbounded delay that transactions may have to endure if certain failures occur. By combining a novel use of compensating transactions along with an optimistic assumption, we propose a revised 2PC protocol that overcomes these difficulties. In the revised protocol, locks are released when a site votes to commit a transaction, thereby solving the indefinite blocking problem of 2PC. Semantic, rather than standard, atomicity is guaranteed as the effects of a transaction that is finally aborted are undone semantically by a compensating transaction. Relaxing standard atomicity interacts in a subtle way with correctness and concurrency control issues. Accordingly, a correctness criterion is proposed that is most appropriate when atomicity is given up for semantic atomicity. The correctness criterion reduces to serializability when no global transactions are aborted, and excludes unacceptable executions when global transactions do fail. We devise a family of practical protocols that ensure this correctness notion. These protocols restrict only global transactions, and do not incur extra messages other than the standard 2PC messages. The results are of particular importance for multidatabase systems.

125 citations