A coordination-free, convergent, and safe replicated tree - Archive ouverte HAL Accéder directement au contenu
Rapport (Rapport De Recherche) Année : 2021

A coordination-free, convergent, and safe replicated tree

Un arbre r\'epliqu\'e, convergent et s\^ur sans coordination

Résumé

The tree is an essential data structure in many applications. In a distributed application, such as a distributed file system, the tree is replicated.To improve performance and availability, different clients should be able to update their replicas concurrently and without coordination. Such concurrent updates converge if the effects commute, but nonetheless, concurrent moves can lead to incorrect states and even data loss. Such a severe issue cannot be ignored; ultimately, only one of the conflicting moves may be allowed to take effect. However, as it is rare, a solution should be lightweight. Previous approaches would require preventative cross-replica coordination, or totally order move operations after-the-fact, requiring roll-back and compensation operations. In this paper, we present a novel replicated tree that supports coordination-free concurrent atomic moves, and provably maintains the tree invariant. Our analysis identifies cases where concurrent moves are inherently safe, and we devise a lightweight, coordination-free, rollback-free algorithm for the remaining cases, such that a maximal safe subset of moves takes effect. We present a detailed analysis of the concurrency issues with trees, justifying our replicated tree data structure. We provide mechanized proof that the data structure is convergent and maintains the tree invariant. Finally, we compare the response time and availability of our design against the literature.
L’arbre est une structure de données essentielle. Quand l’application est distribuée, par exemple dans un système de fichiers distribué, l’arbre est répliqué. Pour améliorer les performances et la disponibilité, les différents clients doivent pouvoir mettre à jour leurs répliques simultanément et sans coordination. Celles-ci convergent si les mises à jour commutent entre elles ; néanmoins, même dans ce cas, des opérations “move” concurrentes peuvent conduire à des états incorrects, et même à la perte de données. Au bout du compte, entre deux opérations “move” en conflit, seule l’une des deux peut être autorisée à prendre effet. Cependant, comme ce cas est rare, la solution doit être légère. Les approches précédentes nécessitaient une coordination préventive des répliques, ou des retours en arrière a posteriori. Dans cet article, nous présentons un nouvel arbre répliqué, qui met en œuvre une opération “move” atomique sans coordination, et dont nous prouvons qu’il maintient l’invariant d’arbre. Notre analyse identifie les cas où les “move” concurrents sont intrinsèquement sûrs, et proposons un algorithme léger, sans coordination et sans retour-arrière, pour les autres cas, de sorte qu’un sous-ensemble maximal et sûr de “move” prenne effet. Nous présentons une analyse détaillée des problèmes de cohérence dans les arbres. Nous fournissons une preuve mécanisée que la structure des données est convergente et maintient l’invariant d’arbre. Enfin, nous comparons le temps de réponse et la disponibilité de notre concept à la littérature.
Fichier principal
Vignette du fichier
RR-9395/RR-9395.pdf (835.04 Ko) Télécharger le fichier
RR-9395/RR-9395.blg (944 B) Télécharger le fichier
RR-9395/RR-9395.log (65.78 Ko) Télécharger le fichier
RR-9395/RR-9395.out (2.28 Ko) Télécharger le fichier
RR-9395/RR-9395.synctex.gz (248.01 Ko) Télécharger le fichier
RR-9395/figures/overhead.pdf (12.95 Ko) Télécharger le fichier
RR-9395/figures/response_time..pdf (15.05 Ko) Télécharger le fichier
RR-9395/figures/stabilization_time..pdf (12.85 Ko) Télécharger le fichier
RR-9395/logo-inria.png (275.12 Ko) Télécharger le fichier
RR-9395/pagei.png (26.87 Ko) Télécharger le fichier
RR-9395/rrpage1.png (47.58 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-03150817 , version 1 (24-02-2021)
hal-03150817 , version 2 (08-03-2021)
hal-03150817 , version 3 (19-01-2022)

Identifiants

  • HAL Id : hal-03150817 , version 1

Citer

Sreeja S Nair, Filipe Meirim, Mário Pereira, Carla Ferreira, Marc Shapiro. A coordination-free, convergent, and safe replicated tree. [Research Report] RR-9395, LIP6, Sorbonne Université, Inria de Paris; Universidade nova de Lisboa. 2021, pp.24. ⟨hal-03150817v1⟩
278 Consultations
176 Téléchargements

Partager

Gmail Facebook X LinkedIn More