![](bg6.png)
Pessimistic consistency control for distributed
databases (Bernstein et al., 1987) is based on the prin-
ciple of “locks” in order to avoid concurrent transac-
tions to access to the same object in an inadequate
mode. The use of “locks” minimizes the number of
aborted transactions, but degrades the performance of
the system, because the complexity introduced by the
management of the locks.
On the other hand, the traditional approach for op-
timistic consistency control was presented in (Kung
and Robinson, 1981), and its main advantage consists
on the reduction of the blocking time of the transac-
tions, using “versions” (or “timestamps”) as the basis
for its implementation. The main disadvantage of op-
timistic consistency protocols consists of the increase
in the abortion rate.
The presented approach uses a optimistic consis-
tency control, with lazy replication, and has been im-
plemented in a real environment (COPLA).
7 CONCLUSIONS
Lazy update protocols have not been widely exploited
due to its excessive abortion rate on scenarios with
high probability of access conflicts. Nevertheless,
such protocols can provide important improvements
in the performance of a distributed system, when the
abortion rate can be kept low, and the locality of the
accesses is appreciable.
We have presented an statistical study of the abor-
tion rate (as disadvantage of lazy protocols), in or-
der to provide an expression for the probability for an
accessed object to be out of date (P A
outd
(o
i
)), and
cause a further abortion of the accessing transaction.
An statistical analysis has been performed in this
paper, in order to provide an expression for the prob-
ability for a requested access to obtain a stale value of
the required object.
The application of the expression has been also dis-
cussed, in order to determine the convenience, using
a general algorithm, to update along the execution of
a transaction the objects predicted to be stale. This
discussion has provided a set of conditions, in base
to a number of parameters, where these generic algo-
rithms can improve the abortion rate of a lazy update
protocol.
Consequently, the improvement has also studied, in
base to the established decrement of the update-time
of the accessed objects, giving as conclusion that such
reductions may considerably improve the probability
for an object to be updated, thus reducing dramati-
cally the abortion rate of lazy update protocols.
Thus, this work theoretically validates the imple-
mentation of not-so-lazy update protocols based on
statistical prediction of stale accesses to reduce the
abortion rate. These protocols conform possible im-
plementations of the mentioned generic algorithm, as
a real improved update algorithm.
REFERENCES
Agrawal, D., Alonso, G., El Abbadi, A., and Stanoi,
I. (1997). Exploiting atomic broadcast in repli-
cated databases. Lecture Notes in Computer Science,
1300:496–503.
Bagrodia, R. L., Chandy, K. M., and Misra, J. (1987).
A message-based approach to discrete-event simula-
tion. IEEE Transactions on Software Engineering,
SE-13(6).
Bernstein, P. A., Hadzilacos, V., and Goodman, N. (1987).
Concurrency Control and Recovery in Database Sys-
tems. Addison Wesley, Reading, MA, EE.UU.
Breitbart, Y. and Korth, H. F. (1997). Replication and con-
sistency: being lazy helps sometimes. In Proceed-
ings of the sixteenth ACM SIGACT-SIGMOD-SIGART
symposium on Principles of Database Systems, pages
173–184. ACM Press.
Chandy, K. M. and Misra, J. (1979). Distributed simulation:
A case study in design and verification of distributed
programs. IEEE Transactions on Software Engineer-
ing, SE-5(5):440–452.
Gray, J., Helland, P., O’Neil, P., and Shasha, D. (1996).
The dangers of replication and a solution. In Proc.
of the 1996 ACM SIGMOD International Conference
on Management of Data, pages 173–182, Canada.
Holliday, J., Agrawal, D., and Abbadi, A. E. (1999).
Database replication: If you must be lazy, be consis-
tent. In Proceedings of 18
th
Symposium on Reliable
Distributed Systems SRDS’99, pages 304–305. IEEE
Computer Society Press.
Instituto Tecnol
´
ogico de Inform
´
atica (2002). GlobData Web
Site. Accessible in URL: http://globdata.iti.es.
Ir
´
un-Briz, L. (2003). Implementable Models for
Replicated and Fault-Tolerant Geographically Dis-
tributed Databases. Consistency Management for
GlobData. PhD thesis, Departamento de Sis-
temas Inform
´
aticos y Computaci
´
on, Universidad
Polit
´
ecnica de Valencia, Valencia, Spain. Available
at http://www.iti.upv.es/˜lirun.
Kung, H. T. and Robinson, J. T. (1981). On optimistic meth-
ods for concurrency control. ACM Transactions on
Database Systems, 6(2):213–226.
Mu
˜
noz, F., Ir
´
un, L., Gald
´
amez, P., Bernab
´
eu, J., Bataller, J.,
and Ba
˜
nuls, M.-C. (2002). Globdata: A platform for
supporting multiple consistency modes. Information
Systems and Databases (ISDB’02), pages 244–249.
Rodrigues, L., Miranda, H., Almeida, R., Martins, J., and
Vicente, P. (2002). The globdata fault-tolerant repli-
cated distributed object database. In Proceedings of
the First Eurasian Conference on Advances in In-
formation and Communication Technology, Teheran,
Iran.
THE ABORTION RATE OF LAZY REPLICATION PROTOCOLS FOR DISTRIBUTED DATABASES
135