arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.09032cs.PLcs.LO
收藏

弱transmittance一致性模型的鲁棒性检验

Checking Robustness Between Weak Transactional Consistency Models

Sidi Mohamed Beillahi, Ahmed Bouajjani, Constantin Enea

摘要:

对数据库的并发访问通常封装在事务中,以便能够与其他并发计算隔离并对故障具有弹性。现代数据库为事务提供了各种语义,对应于一致性和可用性之间的不同权衡。由于较弱的一致性模型提供更好的性能,因此一个重要的问题是调查给定程序所需的最弱一致性级别(以满足其规范)。作为处理这个问题的一种方式,我们调查的问题,检查是否一个给定的程序具有相同的一组行为时,更换一个较弱的一致性模型。这种被称为鲁棒性的特性通常意味着在削弱一致性时保留程序的任何规范。我们专注于一致性模型的鲁棒性问题,这是弱于标准的串行化,即因果一致性,前缀一致性,快照隔离。我们发现,检查这些模型之间的鲁棒性是多项式时间减少到一个状态可达性问题下的串行化。我们使用这种减少也得到一个务实的证明技术的基础上,利普顿的减少理论,允许证明程序的鲁棒性。我们已经将我们的技术应用于几个具有挑战性的应用程序,从分布式系统和数据库的文献。

英文摘要:

Concurrent accesses to databases are typically encapsulated in transactions in order to enable isolation from other concurrent computations and resilience to failures. Modern databases provide transactions with various semantics corresponding to different trade-offs between consistency and availability. Since a weaker consistency model provides better performance, an important issue is investigating the weakest level of consistency needed by a given program (to satisfy its specification). As a way of dealing with this issue, we investigate the problem of checking whether a given program has the same set of behaviors when replacing a consistency model with a weaker one. This property known as robustness generally implies that any specification of the program is preserved when weakening the consistency. We focus on the robustness problem for consistency models which are weaker than standard serializability, namely, causal consistency, prefix consistency, and snapshot isolation. We show that checking robustness between these models is polynomial time reducible to a state reachability problem under serializability. We use this reduction to also derive a pragmatic proof technique based on Lipton's reduction theory that allows to prove programs robust. We have applied our techniques to several challenging applications drawn from the literature of distributed systems and databases.

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

↑