Passer à la navigation principale Passer à la recherche Passer au contenu principal

On verifying causal consistency

  • Laboratoire de Probabilités et Modèles Aléatoires
  • ENAC-IIC-GEL

Résultats de recherche: Le chapitre dans un livre, un rapport, une anthologie ou une collectionContribution à une conférenceRevue par des pairs

Résumé

Causal consistency is one of the most adopted consistency criteria for distributed implementations of data structures. It ensures that operations are executed at all sites according to their causal precedence. We address the issue of verifying automatically whether the executions of an implementation of a data structure are causally consistent. We consider two problems: (1) checking whether one single execution is causally consistent, which is relevant for developing testing and bug finding algorithms, and (2) verifying whether all the executions of an implementation are causally consistent. We show that the first problem is NP-complete. This holds even for the read-write memory abstraction, which is a building block of many modern distributed systems. Indeed, such systems often store data in key-value stores, which are instances of the readwrite memory abstraction. Moreover, we prove that, surprisingly, the second problem is undecidable, and again this holds even for the read-write memory abstraction. However, we show that for the read-write memory abstraction, these negative results can be circumvented if the implementations are data independent, i.e., their behaviors do not depend on the data values that are written or read at each moment, which is a realistic assumption. We prove that for data independent implementations, the problem of checking the correctness of a single execution w.r.t. the read-write memory abstraction is polynomial time. Furthermore, we show that for such implementations the set of non-causally consistent executions can be represented by means of a finite number of register automata. Using these machines as observers (in parallel with the implementation) allows to reduce polynomially the problem of checking causal consistency to a state reachability problem. This reduction holds regardless of the class of programs used for the implementation, of the number of read-write variables, and of the used data domain. It allows leveraging existing techniques for assertion/reachability checking to causal consistency verification. Moreover, for a significant class of implementations, we derive from this reduction the decidability of verifying causal consistency w.r.t. the read-write memory abstraction.

langue originaleAnglais
titrePOPL 2017 - Proceedings of the 44th ACM SIGPLAN Symposium on Principles of Programming Languages
rédacteurs en chefAndrew D. Gordon, Giuseppe Castagna
EditeurAssociation for Computing Machinery
Pages626-638
Nombre de pages13
ISBN (Electronique)9781450346603
Les DOIs
étatPublié - 1 janv. 2017
Modification externeOui
Evénement44th ACM SIGPLAN Symposium on Principles of Programming Languages, POPL 2017 - Paris, France
Durée: 15 janv. 201721 janv. 2017

Série de publications

NomConference Record of the Annual ACM Symposium on Principles of Programming Languages
ISSN (imprimé)0730-8566

Une conférence

Une conférence44th ACM SIGPLAN Symposium on Principles of Programming Languages, POPL 2017
Pays/TerritoireFrance
La villeParis
période15/01/1721/01/17

Empreinte digitale

Examiner les sujets de recherche de « On verifying causal consistency ». Ensemble, ils forment une empreinte digitale unique.

Contient cette citation