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

扩展的序列安全网:多版本并发控制的精细化序列性准则

Extended Serial Safety Net: A Refined Serializability Criterion for Multiversion Concurrency Control

NEC Solution Innovators, Ltd.(NEC解决方案创新有限公司);NEC Corporation(日本电气株式会社)

Atsushi Kitazawa, Chihaya Ito, Yuta Yoshida, Takamitsu Shioi

AI总结:

ESSN通过放宽排除条件提升多版本并发控制的序列性准则,采用基于序列图的判断标准并优化提交时间检查以提高效率。

摘要:

一系列并发控制(CC)协议通过单一的序列化点(开始或提交)来论证正确性,这一假设与快照隔离(SI)不兼容,因为在SI中会出现读写反依赖。序列安全网(SSN)提供了一个轻量级的提交时间测试,但其保守且本质上锚定在提交时间作为唯一的点。我们提出了ESSN,这是SSN的系统性推广,放宽了排除条件以允许更多的事务安全提交,我们证明这保持了多版本序列性(MVSR)并严格涵盖了SSN。ESSN提出了一种基于多版本序列图(MVSG)的标准,并引入了一个已知的总顺序(KTO;例如按开始顺序或提交顺序)来推断图的序列性。通过基于不变量语义的单一提交时间检查,ESSN的排除条件保持了沿每个项目版本链的单调性,并消除了链遍历。该协议基于直接序列图(DSG),提交时间的工作量与读写次数成线性关系,与SSN的每版本足迹相匹配。我们还通过定义一个长事务(通过严格区间包含短事务)明确混合工作负载,并在可重复的工作负载上评估ESSN。在使用开始-快照读的提交顺序KTO下,与SSN相比,长事务中止率可减少高达约0.25绝对(约50%相对)。

英文摘要:

A long line of concurrency-control (CC) protocols argues correctness via a single serialization point (begin or commit), an assumption that is incompatible with snapshot isolation (SI), where read-write anti-dependencies arise. Serial Safety Net (SSN) offers a lightweight commit-time test but is conservative and effectively anchored on commit time as the sole point. We present ESSN, a principled generalization of SSN that relaxes the exclusion condition to allow more transactions to commit safely, and we prove that this preserves multiversion serializability (MVSR) and that it strictly subsumes SSN. ESSN states an MVSG (Multiversion Serialization Graph)-based criterion and introduces a known total order over transactions (KTO; e.g., begin-ordered or commit-ordered) for reasoning about the graph's serializability. With a single commit-time check under invariant-based semantics, ESSN's exclusion condition preserves monotonicity along per-item version chains, and eliminates chain traversal. The protocol is Direct Serialization Graph (DSG)-based with commit-time work linear in the number of reads and writes, matching SSN's per-version footprint. We also make mixed workloads explicit by defining a Long transaction via strict interval containment of Short transactions, and we evaluate ESSN on reproducible workloads. Under a commit-ordered KTO, using begin-snapshot reads reduces the long-transaction abort rate by up to approximately 0.25 absolute (about 50% relative) compared with SSN.

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

↑