Understanding Inconsistency in Azure Cosmos DB with TLA+

10/24/2022
by   A. Finn Hackett, et al.
0

Beyond implementation correctness of a distributed system, it is equally important to understand exactly what users should expect to see from that system. Even if the system itself works as designed, insufficient understanding of its user-visible semantics can cause bugs in its dependencies. By focusing a formal specification effort on precisely defining the expected user-facing behaviors of the Azure Cosmos DB service at Microsoft, we were able to write a formal specification of the database that was significantly smaller and conceptually simpler than any other specification of Cosmos DB, while representing a wider range of valid user-observable behaviors than existing more detailed specifications. Many of the additional behaviors we documented were previously poorly understood outside of the Cosmos DB development team, even informally, leading to data consistency errors in Microsoft products that depend on it. Using this model, we were able to raise two key issues in Cosmos DB's public-facing documentation, which have since been addressed. We were also able to offer a fundamental solution to a previous high-impact outage within another Azure service that depends on Cosmos DB.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/31/2019

Formal Verification of Dynamic and Stochastic Behaviors for Automotive Systems

Formal analysis of functional and non-functional requirements is crucial...
research
02/06/2023

Leveraging TLA+ Specifications to Improve the Reliability of the ZooKeeper Coordination Service

ZooKeeper is a coordination service, widely used as a backbone of variou...
research
03/27/2023

Implementation-First Approach of Developing Formal Semantics of a Simulation Language in VDM-SL

Formal specification is a basis for rigorous software implementation. VD...
research
06/26/2019

On the correctness of Egalitarian Paxos

This paper identifies a problem in both the TLA+ specification and the i...
research
06/03/2022

Understanding deep learning via decision boundary

This paper discovers that the neural network with lower decision boundar...
research
03/12/2023

QTrail-DB: A Query Processing Engine for Imperfect Databases with Evolving Qualities

Imperfect databases are very common in many applications due to various ...

Please sign up or login with your details

Forgot password? Click here to reset