arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.06284cs.DBcs.DCcs.LO
收藏

VerIso:数据库事务的可验证隔离保证

VerIso: Verifiable Isolation Guarantees for Database Transactions

Shabnam Ghasemirad, Si Liu, Christoph Sprenger, Luca Multazzu, David Basin

AI总结:

本文提出在 Isabelle/HOL 中构建的验证框架 VerIso,可形式化验证数据库事务的隔离保证,并通过验证严格两阶段锁协议及发现 TAPIR 协议违反原子可见性的反例展示其有效性。

摘要:

隔离性缺陷,尤其是源于设计层面的缺陷,几十年来在精心设计并经过广泛测试的生产数据库中屡屡被发现。与此同时,人们开发了各种用于建模数据库事务并推理其隔离保证的框架。然而,目前缺少的是一个数学上严格且系统化的、具备工具支持的框架,用于对所有可能的系统行为正式验证广泛的此类保证。我们提出了第一个这样的框架 VerIso,它是在定理证明器 Isabelle/HOL 中开发的。为了展示其在验证中的应用,我们对严格两阶段锁并发控制协议进行建模,并验证它提供了严格可串行化的隔离保证。此外,我们展示了 VerIso 如何在协议设计过程中帮助识别隔离性缺陷。我们从证明 TAPIR 协议所声称的严格可串行化的失败尝试中,推导出了该协议的新反例。特别是,我们证明了它违反了一个弱得多的隔离级别,即原子可见性。

英文摘要:

Isolation bugs, stemming especially from design-level defects, have been repeatedly found in carefully designed and extensively tested production databases over decades. In parallel, various frameworks for modeling database transactions and reasoning about their isolation guarantees have been developed. What is missing however is a mathematically rigorous and systematic framework with tool support for formally verifying a wide range of such guarantees for all possible system behaviors. We present the first such framework, VerIso, developed within the theorem prover Isabelle/HOL. To showcase its use in verification, we model the strict two-phase locking concurrency control protocol and verify that it provides strict serializability isolation guarantee. Moreover, we show how VerIso helps identify isolation bugs during protocol design. We derive new counterexamples for the TAPIR protocol from failed attempts to prove its claimed strict serializability. In particular, we show that it violates a much weaker isolation level, namely, atomic visibility.

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

↑