arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1905.08406cs.LO
收藏

针对快照隔离检查健壮性

Checking Robustness Against Snapshot Isolation

Sidi Mohamed Beillahi, Ahmed Bouajjani, Constantin Enea

摘要:

对数据库的事务访问是一个重要的抽象,它允许程序员将操作(事务)块视为隔离执行。最强的一致性模型是{ \em serializability},它确保在顺序一致的内存上执行的事务的原子性抽象。由于确保可序列化性对可用性有很大的影响,现代数据库提供了较弱的一致性模型,其中最突出的是\emph{snapshot isolation}。一般来说,依赖于可序列化事务的程序的正确性在使用较弱的模型时可能会被破坏。然而,某些程序也可能对一致性松弛不敏感,即,即使当它们在弱一致数据库上执行并且没有附加的同步时,它们在可串行化下保持的所有属性也被保留。在本文中,我们解决了验证给定程序是否{ \em对快照隔离鲁棒}的问题,即,其所有行为都是可序列化的,即使它是在确保快照隔离的数据库上执行的。我们表明,这个验证问题是多项式时间减少到一个状态可达性问题的事务程序在一个顺序一致的共享内存。这种减少打开了大门,重用的经典验证技术推理弱一致的程序。特别是,我们表明,它可以用来推导出一个证明技术的基础上,利普顿的减少理论,允许证明程序的强大。

英文摘要:

Transactional access to databases is an important abstraction allowing programmers to consider blocks of actions (transactions) as executing in isolation. The strongest consistency model is {\em serializability}, which ensures the atomicity abstraction of transactions executing over a sequentially consistent memory. Since ensuring serializability carries a significant penalty on availability, modern databases provide weaker consistency models, one of the most prominent being \emph{snapshot isolation}. In general, the correctness of a program relying on serializable transactions may be broken when using weaker models. However, certain programs may also be insensitive to consistency relaxations, i.e., all their properties holding under serializability are preserved even when they are executed over a weak consistent database and without additional synchronization. In this paper, we address the issue of verifying if a given program is {\em robust against snapshot isolation}, i.e., all its behaviors are serializable even if it is executed over a database ensuring snapshot isolation. We show that this verification problem is polynomial time reducible to a state reachability problem in transactional programs over a sequentially consistent shared memory. This reduction opens the door to the reuse of the classic verification technology for reasoning about weakly-consistent programs. In particular, we show that it can be used to derive a proof technique based on Lipton's reduction theory that allows to prove programs robust.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑