事务性因果一致性的鲁棒性
Robustness Against Transactional Causal Consistency
AI总结:
本文研究因果一致性变体间关系,证明无写写竞争的程序行为一致,并将鲁棒性检查多项式归约为状态可达性问题,为并发程序验证工具用于因果一致性数据库铺路。
摘要:
分布式存储系统和数据库被各种类型的应用广泛使用。对这些存储系统的事务性访问是一种重要的抽象,它允许应用程序员将操作块(即事务)视为原子执行。出于性能原因,现代数据库实现的一致性模型弱于标准可串行化模型,后者对应于在顺序一致性内存上执行的事务的原子性抽象。例如,因果一致性就是实践中广泛使用的一种此类模型。在本文中,我们研究了因果一致性的几种变体之间特定于应用的关系,并解决了自动验证给定事务程序是否对因果一致性具有鲁棒性的问题,即其在任意因果一致性数据库上执行时的所有行为是否都是可串行化的。我们证明了没有写-写竞争的程序在所有这几种变体下具有相同的行为集合,并且我们证明了检查鲁棒性可以在多项式时间内归约到在顺序一致性共享内存上的事务程序中的状态可达性问题。后一个结果的一个令人惊讶的推论是,允许不可比较行为集合的因果一致性变体允许可比较的鲁棒程序集合。这种归约也为利用现有的并发程序验证方法和工具(假设顺序一致性)来推理在因果一致性数据库上运行的程序打开了大门。此外,它使得当在不同站点执行的程序是有限状态时,检查鲁棒性的问题可判定。
英文摘要:
Distributed storage systems and databases are widely used by various types of applications. Transactional access to these storage systems is an important abstraction allowing application programmers to consider blocks of actions (i.e., transactions) as executing atomically. For performance reasons, the consistency models implemented by modern databases are weaker than the standard serializability model, which corresponds to the atomicity abstraction of transactions executing over a sequentially consistent memory. Causal consistency for instance is one such model that is widely used in practice. In this paper, we investigate application-specific relationships between several variations of causal consistency and we address the issue of verifying automatically if a given transactional program is robust against causal consistency, i.e., all its behaviors when executed over an arbitrary causally consistent database are serializable. We show that programs without write-write races have the same set of behaviors under all these variations, and we show that checking robustness is polynomial time reducible to a state reachability problem in transactional programs over a sequentially consistent shared memory. A surprising corollary of the latter result is that causal consistency variations which admit incomparable sets of behaviors admit comparable sets of robust programs. This reduction also opens the door to leveraging existing methods and tools for the verification of concurrent programs (assuming sequential consistency) for reasoning about programs running over causally consistent databases. Furthermore, it allows to establish that the problem of checking robustness is decidable when the programs executed at different sites are finite-state.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。