自动验证复制感知的线性一致性
Automatically Verifying Replication-aware Linearizability
AI总结:
本文提出一种全自动验证技术,通过识别MRDT操作与合并函数的新代数性质并采用自底向上线性化归纳方法,验证复制感知线性一致性,适用于MRDTs和状态CRDTs,并在包括JSON MRDT在内的复杂实现上成功应用。
摘要:
数据复制对于在现代分布式应用中实现容错和均匀低延迟至关重要。复制数据类型(RDTs)已成为开发计数器、标志、集合、映射等基本数据结构复制实现的一种原则性方法。虽然RDTs的正确性通常使用强最终一致性概念来规定——该概念保证已收到相同更新集合的副本将收敛到相同状态——但一种更具表达力的规范,将收敛状态与在副本处收到的更新相关联,对RDT用户将更为有益。复制感知的线性一致性就是这样一种规范,它要求所有副本始终处于一种可以通过对在副本处收到的更新进行线性化而获得的状态。在这项工作中,我们开发了一种新颖的全自动技术,用于验证可合并复制数据类型(MRDTs)的复制感知线性一致性。我们为MRDT操作和合并函数识别了新颖的代数性质,这些性质足以证明实现的线性一致性,并且超越了标准的交换律、结合律和幂等性概念。我们还开发了一种称为自底向上线性化的新颖归纳技术,以自动验证所需的代数性质。我们的技术可用于验证MRDTs和基于状态的无冲突复制数据类型(CRDTs)。我们已成功将我们的方法应用于多个复杂的MRDT和CRDT实现,包括一种新颖的JSON MRDT。
英文摘要:
Data replication is crucial for enabling fault tolerance and uniform low latency in modern decentralized applications. Replicated Data Types (RDTs) have emerged as a principled approach for developing replicated implementations of basic data structures such as counter, flag, set, map, etc. While the correctness of RDTs is generally specified using the notion of strong eventual consistency--which guarantees that replicas that have received the same set of updates would converge to the same state--a more expressive specification which relates the converged state to updates received at a replica would be more beneficial to RDT users. Replication-aware linearizability is one such specification, which requires all replicas to always be in a state which can be obtained by linearizing the updates received at the replica. In this work, we develop a novel fully automated technique for verifying replication-aware linearizability for Mergeable Replicated Data Types (MRDTs). We identify novel algebraic properties for MRDT operations and the merge function which are sufficient for proving an implementation to be linearizable and which go beyond the standard notions of commutativity, associativity, and idempotence. We also develop a novel inductive technique called bottom-up linearization to automatically verify the required algebraic properties. Our technique can be used to verify both MRDTs and state-based CRDTs. We have successfully applied our approach to a number of complex MRDT and CRDT implementations including a novel JSON MRDT.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。