IsoDiff: Debugging Anomalies Caused by Weak Isolation
Yifan Gan, Xueyuan Ren, Drew Ripberger, Spyros Blanas, Yang Wang
Abstract
Weak isolation levels, such as Read Committed and Snapshot Isolation, are widely used by databases for their higher concurrency, but may introduce subtle correctness errors in applications that only experts can identify. This paper proposes IsoDi , a tool to help a developer debug the anomalies caused by weak isolation for an application. To address the challenge that the number of anomalies can be non-polynomial with respect to the number of types of transactions, IsoDi finds a representative subset of anomalies involving di erent transactions, operations, and problematic patterns. To reduce false positives, IsoDi proposes two novel methods (correlation detection and timing relationship check) to eliminate as many false positives as possible and further provides a mechanism to incorporate the developer's feedback to eliminate the remaining ones. The evaluation of IsoDi on TPC-C and seven real applications under Snapshot Isolation and Read Committed isolation shows that IsoDi can balance computation time and the coverage of anomalies; it can automatically eliminate a significant portion of false positives; and its feedback mechanism allows a developer to express the root cause of false positives, which can eliminate many false positives with only a small number of developer hints.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Dynamic Partial Order Reduction for Checking Correctness against Transaction Isolation Levels cites MonkeyDB: effectively testing correctness under weak isolation levels
- Detecting Isolation Bugs via Transaction Oracle Construction cites MonkeyDB: effectively testing correctness under weak isolation levels
- Plume: Efficient and Complete Black-Box Checking of Weak Isolation Levels cites Efficient Black-box Checking of Snapshot Isolation in Databases
- Efficient Black-box Checking of Snapshot Isolation in Databases cites MonkeyDB: effectively testing correctness under weak isolation levels
Cited by top-tier papers10
- Detecting Isolation Bugs via Transaction Oracle ConstructionWensheng Dou, Ziyu Cui, Qianwang Dai, Jiansen Song et al.ICSE 2023 · 21 citations
- MonkeyDB: effectively testing correctness under weak isolation levelsRanadeep Biswas, Diptanshu Kakwani, Jyothi Vedurada, Constantin Enea et al.OOPSLA 2021 · 18 citations
- Efficient Black-box Checking of Snapshot Isolation in DatabasesKaile Huang, Si Liu, Zhenge Chen, Hengfeng Wei et al.VLDB 2023 · 18 citations
- Plume: Efficient and Complete Black-Box Checking of Weak Isolation LevelsSi Liu, Long Gu, Hengfeng Wei, David A. BasinOOPSLA 2024 · 9 citations
- Dynamic Partial Order Reduction for Checking Correctness against Transaction Isolation LevelsAhmed Bouajjani, Constantin Enea, Enrique Román-CalvoPLDI 2023 · 7 citations
Related papers
- AWDIT: An Optimal Weak Database Isolation TesterLasse Møldrup, Andreas PavlogiannisPLDI 2025 · 5 citations
- Detecting Isolation Anomalies in Relational DBMSsRui Yang, Ziyu Cui, Wensheng Dou, Yu Gao et al.ISSTA 2025 · 3 citations
- DBStorm: Generating Various Effective Workloads for Testing Isolation LevelsKeqiang Li, Siyang Weng, Lyu Ni, Chengcheng Yang et al.ISSTA 2024 · 5 citations
- Fast Verification of Strong Database IsolationZhiheng Cai, Si Liu, Hengfeng Wei, Yuxing Chen et al.VLDB 2026
- Leopard: A Black-Box Approach for Efficiently Verifying Various Isolation LevelsKeqiang Li, Siyang Weng, Peiyuan Liu, Lyu Ni et al.ICDE 2023 · 3 citations
