Stephen: Verifying Sequencer-Aided Coordination Systems with Cross-View Prophecy
Jinkun Geng, Muhammad Haseeb, Daniel Qian, Joseph Tassarotti, Shuai Mu, Anirudh Sivaraman
Abstract
Many distributed systems achieve high performance by relying on dedicated sequencers to order requests, leaving replicas to commit them in that order. Despite more than a decade of such sequencer-aided coordination (SAC) systems, from Corfu and NOPaxos to LazyLog and SwitchBFT, their correctness has been argued only with pen-and-paper proofs or bounded model checking at the protocol level. In this paper, we formally verify implementations of SAC protocols. The sequencer seems to make this easy: it decides the order of all requests, so the proof can place each request's linearization point at the sequencer using a well-known technique, prophecy variables. Yet a linearization point placed at the sequencer is not durable, because the sequencer orders a request before any replica commits it. Crashes and other rare events may trigger a view change that discards the request, nullifying the earlier decision and the proof that rests on it. Our framework, Stephen, extends prophecy variables to handle view changes, and we make three contributions. (1) We develop cross-view prophecy peek, which lets the proof follow a request across view changes until it is either committed or permanently discarded. (2) Our verification uncovered bugs in existing SAC implementations, including one that can lose committed requests. We fix them and prove the fixes correct. (3) We apply Stephen to NOPaxos, Corfu and LazyLog. We build verified implementations with machine-checked proofs of linearizability. They perform within 17% of their open-source, unverified counterparts. The verified implementations and proofs will be open-sourced.
Create a lesson
Related papers
Mine Locally, Verify Globally: Exact Recovery, Compilation, and Distortion of Mined Temporal Rules
Shared title terminology · Nikolaos Kekatos, Priyanka Sinha, Stylianos Basagiannis et al.
A Runtime System for Mitigating Crossbar Port Contention on SM-Partitioned GPUs
Shared title terminology · Ziwen Wang, Qi Luo, Kunlin Li et al.
Similarity-Aware Client-Side Reordering for Server-Side Storage Compression in Distributed File Systems
Shared title terminology · Yuanhong Huang, Zicong Chen, Yili Ma et al.
CheckCo: Checkpoint-Coordinated Load Balancing for Skewed Event Streams at Scale
Shared title terminology · Muhammad Anis Uddin Nasir, Reza Sadraei
Investigating the Impact of CI-Source Sensitivity in Carbon-Aware Resource Management Systems
Shared title terminology · Gonçalo Ferreira, Jaime Iglesias Blanco, María Castrillo et al.
Top-Level Operational Equilibrium: When is the response of a distributed system predictable from its own telemetry?
Shared title terminology · Víctor Casamayor Pujol, Nefeli-Marina Rouska, Boris Sedlak