IsoPredict: Dynamic Predictive Analysis for Detecting Unserializable Behaviors in Weakly Isolated Data Store Applications
Open Access
- 20 June 2024
- journal article
- abstracts
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 8 (PLDI) , 343-367
Abstract
Distributed data stores typically provide weak isolation levels, which are efficient but can lead to unserializable behaviors, which are hard for programmers to understand and often result in errors. This paper presents the first dynamic predictive analysis for data store applications under weak isolation levels, called IsoPredict . Given an observed serializable execution of a data store application, IsoPredict generates and solves SMT constraints to find an unserializable execution that is a feasible execution of the application. IsoPredict introduces novel techniques that handle divergent application behavior; solve mutually recursive sets of constraints; and balance coverage, precision, and performance. An evaluation on four transactional data store benchmarks shows that IsoPredict often predicts unserializable behaviors, 99 % of which are feasible.Keywords
All Related Versions
Funding Information
- NSF (CCF-2118745,CSR-2106117)
- Oracle America, Inc (OAC-2112606)
This publication has 38 references indexed in Scilit:
- Checking causal consistency of distributed databasesComputing, 2021
- Effective Partial Order Reduction in Model Checking Database Applications2016
- Herding CatsACM Transactions on Programming Languages and Systems, 2014
- Maximal sound predictive race detection with control flow abstraction | Proceedings of the 35th ACM SIGPLAN Conference on Programming Language Design and Implementation2014
- Predicting Serializability Violations: SMT-Based Search vs. DPOR-Based Search2012
- Generating Data Race Witnesses by an SMT-Based Analysis2011
- Oracle database replay2008
- Generalized isolation level definitions2002
- Causal memory: definitions, implementation, and programmingDistributed Computing, 1995
- A critique of ANSI SQL isolation levels1995