Incremental Causal Consistency Checking for Read-Write Memory Histories

Yi Huang,Hengfeng Wei
DOI: https://doi.org/10.1145/3545258.3545262
2022-01-01
Abstract:Causal consistency is one of the strongest consistency models that can be implemented to ensure availability under network partition in distributed systems. The problem of causal consistency checking asks whether a given history of some system is causally consistent. Recently Bouajjani et al. showed that for read-write memory histories in which writes assign unique values to each variable, this can be solved in polynomial time. The algorithm searches for bad patterns of causal consistency, which are defined using various relations derived from history. However, the high time complexity of the algorithm makes it not so practical. In this paper, we show how to improve this checking algorithm by incrementally computing the relations underlying the bad patterns. We also demonstrate its efficiency by conducting experiments on both random histories and those generated by MongoDB.
What problem does this paper attempt to address?