arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.14067cs.DB
收藏

强数据库隔离的快速验证(扩展版)

Fast Verification of Strong Database Isolation (Extended Version)

Tsinghua University(清华大学);ETH Zurich(苏黎世联邦理工学院);Hunan University(湖南大学);Tencent Inc.(腾讯公司)

Zhiheng Cai, Si Liu, Hengfeng Wei, Yuxing Chen, Anqun Pan

AI总结:

针对强数据库隔离验证的挑战,本文提出VeriStrong快速验证器,基于超多边形图形式化方法捕捉事务确定与不确定依赖,定制SMT求解,显著优于现有工具且可扩展至大型工作负载,保持高检测精度。

摘要:

强隔离保证(如可串行化和快照隔离)对于维护现代数据库中的数据一致性和完整性至关重要。验证数据库是否遵守其声称的保证变得日益关键,因为这些保证构成了供应商与用户之间的契约。然而,这项任务具有挑战性,尤其是在黑盒环境中——仅能获取可观察的系统行为,且事务之间往往存在不确定的依赖关系。本文提出VeriStrong,一种用于强数据库隔离的快速验证器。其核心是一种名为超多边形图(hyper-polygraphs)的新型形式化方法,可紧凑地捕捉数据库执行中事务的确定和不确定依赖关系。借助这一形式化方法,我们开发了用于验证可串行化和快照隔离的可靠且完备的编码。为实现高效性,VeriStrong针对数据库工作负载的特性定制了SMT求解,与之前的通用方法形成对比。我们在多种基准上的广泛评估表明,VeriStrong不仅在现有验证器支持的工作负载上显著优于最先进的验证器,还能扩展到它们无法处理的大型通用工作负载,同时在检测隔离异常时保持高精度。

英文摘要:

Strong isolation guarantees, such as serializability and snapshot isolation, are essential for maintaining data consistency and integrity in modern databases. Verifying whether a database upholds its claimed guarantees is increasingly critical, as these guarantees form a contract between the vendor and its users. However, this task is challenging, particularly in black-box settings, where only observable system behavior is available and often involves uncertain dependencies between transactions. In this paper, we present VeriStrong, a fast verifier for strong database isolation. At its core is a novel formalism called hyper-polygraphs, which compactly captures both certain and uncertain transactional dependencies in database executions. Leveraging this formalism, we develop sound and complete encodings for verifying both serializability and snapshot isolation. To achieve high efficiency, VeriStrong tailors SMT solving to the characteristics of database workloads, in contrast to prior general-purpose approaches. Our extensive evaluation across diverse benchmarks shows that VeriStrong not only significantly outperforms state-of-the-art verifiers on the workloads they support, but also scales to large, general workloads beyond their reach, while maintaining high accuracy in detecting isolation anomalies.

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

↑