arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2504.01477cs.DB
收藏

数据库系统的基于时间戳的在线事务隔离检查(扩展版)

Online Timestamp-based Transactional Isolation Checking of Database Systems (Extended Version)

Hexu Li, Hengfeng Wei, Hongrong Ouyang, Yuxing Chen, Na Yang, Ruohao Zhang, Anqun Pan

AI总结:

本文针对持续增长的历史记录难以离线检查的问题,提出了基于时间戳的增量式在线事务隔离检查器CHRONOS、AION和AION-SER,实现了每秒处理百万级事务且支持高吞吐量的在线SER与SI检查。

摘要:

可串行化(SER)和快照隔离(SI)是数据库系统中广泛使用的事务隔离级别。隔离检查问题询问数据库系统的给定执行历史是否满足指定的隔离级别。然而,现有的SER和SI检查器,无论是传统的黑盒检查器还是最近基于时间戳的白盒检查器,都在离线状态下运行,并需要整个历史记录可用以构建依赖图,这使它们不适用于持续且不断增长的历史。本文通过将基于时间戳的隔离检查方法扩展到在线环境来解决在线隔离检查问题。具体而言,我们设计了CHRONOS,一个高效的基于时间戳的离线SI检查器。CHRONOS是增量的,并且避免为整个历史构建开始有序的序列化图,使其非常适合在线场景。我们进一步将CHRONOS扩展为在线SI检查器AION,解决了在线环境特有的几个关键挑战。此外,我们开发了AION-SER用于在线SER检查。实验表明,CHRONOS能在几秒钟内处理多达100万笔事务的离线历史,大大优于现有的SI检查器。此外,AION和AION-SER维持了约每秒12K笔事务的吞吐量,证明了它们对在线隔离检查的实用性。

英文摘要:

Serializability (SER) and snapshot isolation (SI) are widely used transactional isolation levels in database systems. The isolation checking problem asks whether a given execution history of a database system satisfies a specified isolation level. However, existing SER and SI checkers, whether traditional black-box checkers or recent timestamp-based white-box ones, operate offline and require the entire history to be available to construct a dependency graph, making them unsuitable for continuous and ever-growing histories. This paper addresses online isolation checking by extending the timestamp-based isolation checking approach to online settings. Specifically, we design CHRONOS, an efficient timestamp-based offline SI checker. CHRONOS is incremental and avoids constructing a start-ordered serialization graph for the entire history, making it well-suited for online scenarios. We further extend CHRONOS into an online SI checker, AION, addressing several key challenges unique to online settings. Additionally, we develop AION-SER for online SER checking. Experiments highlight that CHRONOS processes offline histories with up to one million transactions in seconds, greatly outperforming existing SI checkers. Furthermore, AION and AION-SER sustain a throughput of approximately 12K transactions per second, demonstrating their practicality for online isolation checking.

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

↑