针对事务隔离级别正确性检查的动态偏序归约
Dynamic Partial Order Reduction for Checking Correctness against Transaction Isolation Levels
AI总结:
本文提出基于动态偏序归约的无状态模型检查算法,用于验证事务应用在多种弱隔离级别下的正确性,证明算法完备、可靠且最优,并以多项式内存运行。
摘要:
现代应用(如社交网络系统和电子商务平台)的核心是使用大规模数据库来存储和检索数据。对数据库的访问通常被封装在事务中,使得对共享数据的计算能够与其他并发计算相隔离,并能抵御故障。现代数据库以隔离性换取性能。隔离级别越弱,数据库被允许展现的行为就越多,而开发人员需要确保其应用能够容忍这些行为。在本文中,我们提出了用于研究此类应用正确性的无状态模型检查算法,这些算法依赖于动态偏序归约。这些算法适用于多种广泛使用的弱隔离级别,包括 Read Committed、Causal Consistency、Snapshot Isolation 和 Serializability。我们证明了这些算法是完备的、可靠的且最优的,并且在所有情况下都以多项式内存消耗运行。我们报告了这些算法在 Java Pathfinder 环境中的实现,并将其应用于来自分布式系统和数据库文献中的多个具有挑战性的应用。
英文摘要:
Modern applications, such as social networking systems and e-commerce platforms are centered around using large-scale databases for storing and retrieving data. Accesses to the database are typically enclosed in transactions that allow computations on shared data to be isolated from other concurrent computations and resilient to failures. Modern databases trade isolation for performance. The weaker the isolation level is, the more behaviors a database is allowed to exhibit and it is up to the developer to ensure that their application can tolerate those behaviors. In this work, we propose stateless model checking algorithms for studying correctness of such applications that rely on dynamic partial order reduction. These algorithms work for a number of widely-used weak isolation levels, including Read Committed, Causal Consistency, Snapshot Isolation, and Serializability. We show that they are complete, sound and optimal, and run with polynomial memory consumption in all cases. We report on an implementation of these algorithms in the context of Java Pathfinder applied to a number of challenging applications drawn from the literature of distributed systems and databases.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。