Litcius/Paper detail

A Highly-Available Move Operation for Replicated Trees

Martin Kleppmann, Dominic P. Mulligan, Victor B. F. Gomes, Alastair R. Beresford

2021IEEE Transactions on Parallel and Distributed Systems22 citationsDOIOpen Access PDF

Abstract

Replicated tree data structures are a fundamental building block of distributed filesystems, such as Google Drive and Dropbox, and collaborative applications with a JSON or XML data model. These systems need to support a <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">move</i> operation that allows a subtree to be moved to a new location within the tree. However, such a move operation is difficult to implement correctly if different replicas can concurrently perform arbitrary move operations, and we demonstrate bugs in Google Drive and Dropbox that arise with concurrent moves. In this article we present a CRDT algorithm that handles arbitrary concurrent modifications on trees, while ensuring that the tree structure remains valid (in particular, no cycles are introduced), and guaranteeing that all replicas converge towards the same consistent state. Our algorithm requires no synchronous coordination between replicas, making it highly available in the face of network partitions. We formally prove the correctness of our algorithm using the Isabelle/HOL proof assistant, and evaluate the performance of our formally verified implementation in a geo-replicated setting.

Topics & Concepts

Computer scienceCorrectnessTree (set theory)Block (permutation group theory)JSONHOLTheoretical computer scienceDistributed computingState (computer science)Data structureProgramming languageMathematical analysisMathematicsGeometryDistributed systems and fault toleranceAdvanced Data Storage TechnologiesDistributed and Parallel Computing Systems