Skip to main content
QUICK REVIEW

[Paper Review] Replication-Aware Linearizability

Constantin Enea, Süha Orhun Mutluergil|arXiv (Cornell University)|Mar 15, 2019
Distributed systems and fault toleranceComputer Science4 references3 citations
TL;DR

This paper introduces Replication-Aware Linearizability (RAL), a correctness criterion for Conflict-Free Replicated Data Types (CRDTs) that extends linearizability to account for asynchronous replication and conflict resolution. It provides a formal proof methodology to verify RAL in CRDTs, enabling modular reasoning about composition and ensuring eventual convergence under network partitions.

ABSTRACT

Geo-distributed systems often replicate data at multiple locations to achieve availability and performance despite network partitions. These systems must accept updates at any replica and propagate these updates asynchronously to every other replica. Conflict-Free Replicated Data Types (CRDTs) provide a principled approach to the problem of ensuring that replicas are eventually consistent despite the asynchronous delivery of updates. We address the problem of specifying and verifying CRDTs, introducing a new correctness criterion called Replication-Aware Linearizability. This criterion is inspired by linearizability, the de-facto correctness criterion for (shared-memory) concurrent data structures. We argue that this criterion is both simple to understand, and it fits most known implementations of CRDTs. We provide a proof methodology to show that a CRDT satisfies replication-aware linearizability which we apply on a wide range of implementations. Finally, we show that our criterion can be leveraged to reason modularly about the composition of CRDTs.

Motivation & Objective

  • To address the lack of a principled correctness criterion for CRDTs that accounts for replication and conflict resolution in geo-distributed systems.
  • To define a correctness criterion that is both intuitive and formally grounded, extending linearizability to replicated, eventually consistent data types.
  • To provide a proof methodology that enables modular verification of CRDT implementations with respect to the new criterion.
  • To demonstrate that the criterion supports compositional reasoning about CRDTs, enabling safe composition of multiple CRDTs in distributed applications.

Proposed method

  • Proposes Replication-Aware Linearizability (RAL) as a correctness criterion that generalizes linearizability to CRDTs by incorporating replica identifiers and operation timestamps.
  • Defines a refinement-based proof methodology using effectors and generators to verify that CRDT operations preserve the RAL property.
  • Introduces predicate P2 to check preconditions for operations, ensuring that only valid operations are applied in a way consistent with eventual convergence.
  • Uses a formal verification framework (Boogie) to prove that effectors commute and preserve refinement relations across replicas.
  • Applies the methodology to a range of CRDTs, including RGA, PN-counter, 2P-Set, and LWW-Register, demonstrating its generality.
  • Leverages metadata (replica ID, timestamps) to detect and deterministically resolve conflicts, ensuring convergence to a common state.

Experimental results

Research questions

  • RQ1How can linearizability be adapted to reason about CRDTs in the presence of asynchronous replication and conflict resolution?
  • RQ2What formal criterion ensures that CRDT implementations are correct and composable in distributed systems with network partitions?
  • RQ3Can a modular proof methodology be developed to verify CRDTs independently of their specific data types?
  • RQ4How does the proposed criterion support reasoning about the composition of multiple CRDTs in a distributed system?
  • RQ5What are the minimal conditions under which a CRDT implementation guarantees convergence and consistency across replicas?

Key findings

  • Replication-Aware Linearizability provides a sound and intuitive correctness criterion for CRDTs that extends linearizability to replicated, eventually consistent systems.
  • The proof methodology successfully verifies a wide range of CRDTs, including RGA, PN-counter, 2P-Set, and LWW-Register, demonstrating its broad applicability.
  • The criterion enables modular verification by ensuring that effectors and generators preserve refinement relations and commute under all operation sequences.
  • The use of replica identifiers and timestamps allows deterministic conflict resolution, ensuring that all replicas converge to the same state despite asynchronous updates.
  • The framework supports compositional reasoning: if individual CRDTs satisfy RAL, their composition also satisfies RAL under the same conditions.
  • The formal verification using Boogie confirms that all tested CRDTs meet the RAL criterion, validating the approach’s practicality and correctness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.