AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
Article Link
Collect
Submit Manuscript
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Regular Paper

Checking Causal Consistency of MongoDB

State Key Laboratory for Novel Software Technology, Nanjing University, Nanjing 210023, China
Software Institute, Nanjing University, Nanjing 210093, China
Tencent Distributed SQL Team of Technology and Engineering Group of Tencent, Tencent Inc., Shenzhen 518054, China

A preliminary version of the paper was published in the Proceedings of Internetware 2020.*Corresponding Author (Heng-Feng Wei and Hai-Xiang Li have contributed significantly to the theoretical and experimental parts of the work, respectively.)

Show Author Information

Abstract

MongoDB is one of the first commercial distributed databases that support causal consistency. Its implementation of causal consistency combines several research ideas for achieving scalability, fault tolerance, and security. Given its inherent complexity, a natural question arises: "Has MongoDB correctly implemented causal consistency as it claimed?" To address this concern, the Jepsen team has conducted black-box testing of MongoDB. However, this Jepsen testing has several drawbacks in terms of specification, test case generation, implementation of causal consistency checking algorithms, and testing scenarios, which undermine the credibility of its reports. In this work, we propose a more thorough design of Jepsen testing of causal consistency of MongoDB. Specifically, we fully implement the causal consistency checking algorithms proposed by Bouajjani et al. and test MongoDB against three well-known variants of causal consistency, namely CC, CCv, and CM, under various scenarios including node failures, data movement, and network partitions. In addition, we develop formal specifications of causal consistency and their checking algorithms in TLA+, and verify them using the TLC model checker. We also explain how TLA+ specification can be related to Jepsen testing.

Electronic Supplementary Material

Download File(s)
jcst-37-1-128-Highlights.pdf (810.3 KB)

References

【1】
【1】
 
 
Journal of Computer Science and Technology
Pages 128-146

{{item.num}}

Comments on this article

Go to comment

< Back to all reports

Review Status: {{reviewData.commendedNum}} Commended , {{reviewData.revisionRequiredNum}} Revision Required , {{reviewData.notCommendedNum}} Not Commended Under Peer Review

Review Comment

Close
Close
Cite this article:
Ouyang H-R, Wei H-F, Li H-X, et al. Checking Causal Consistency of MongoDB. Journal of Computer Science and Technology, 2022, 37(1): 128-146. https://doi.org/10.1007/s11390-021-1662-8

1038

Views

2

Crossref

0

Web of Science

1

Scopus

0

CSCD

Received: 01 June 2021
Accepted: 20 December 2021
Published: 31 January 2022
©Institute of Computing Technology, Chinese Academy of Sciences 2022