Lune

OOPSLA2021顶会

MonkeyDB: effectively testing correctness under weak isolation levels

Ranadeep Biswas, Diptanshu Kakwani, Jyothi Vedurada, Constantin Enea, Akash Lal

摘要

Modern applications, such as social networking systems and e-commerce platforms are centered around using large-scale storage systems for storing and retrieving data. In the presence of concurrent accesses, these storage systems trade off isolation for performance. The weaker the isolation level, the more behaviors a storage system is allowed to exhibit and it is up to the developer to ensure that their application can tolerate those behaviors. However, these weak behaviors only occur rarely in practice and outside the control of the application, making it difficult for developers to test the robustness of their code against weak isolation levels.

This paper presents MonkeyDB, a mock storage system for testing storage-backed applications. MonkeyDB supports a key-value interface as well as SQL queries under multiple isolation levels. It uses a logical specification of the isolation level to compute, on a read operation, the set of all possible return values. MonkeyDB then returns a value randomly from this set. We show that MonkeyDB provides good coverage of weak behaviors, which is complete in the limit. We test a variety of applications for assertions that fail only under weak isolation. MonkeyDB is able to break each of those assertions in a small number of attempts.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 13 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Hamband: RDMA replicated data types 引用了 Semantics, Specification, and Bounded Verification of Concurrent Libraries in Replicated Systems
  • Dynamic Partial Order Reduction for Checking Correctness against Transaction Isolation Levels 引用了 IsoDiff: Debugging Anomalies Caused by Weak Isolation
  • Detecting Isolation Bugs via Transaction Oracle Construction 引用了 IsoDiff: Debugging Anomalies Caused by Weak Isolation
  • Simple Testing Can Expose Most Critical Transaction Bugs: Understanding and Detecting Write-Specific Serializability Violations in Database Systems 引用了 Detecting Isolation Bugs via Transaction Oracle Construction
  • Efficient Black-box Checking of Snapshot Isolation in Databases 引用了 IsoDiff: Debugging Anomalies Caused by Weak Isolation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper13

  1. Detecting Isolation Bugs via Transaction Oracle ConstructionWensheng Dou, Ziyu Cui, Qianwang Dai, Jiansen Song 等ICSE 2023 · 21 次引用
  2. Efficient Black-box Checking of Snapshot Isolation in DatabasesKaile Huang, Si Liu, Zhenge Chen, Hengfeng Wei 等VLDB 2023 · 18 次引用
  3. Dynamic Partial Order Reduction for Checking Correctness against Transaction Isolation LevelsAhmed Bouajjani, Constantin Enea, Enrique Román-CalvoPLDI 2023 · 7 次引用
  4. Hamband: RDMA replicated data typesFarzin Houshmand, Javad Saberlatibari, Mohsen LesaniPLDI 2022 · 4 次引用
  5. Simple Testing Can Expose Most Critical Transaction Bugs: Understanding and Detecting Write-Specific Serializability Violations in Database SystemsZiyu Cui, Wensheng Dou, Yu Gao, Rui Yang 等VLDB 2025 · 4 次引用

它引用的 Paper2

  1. Semantics, Specification, and Bounded Verification of Concurrent Libraries in Replicated SystemsKartik Nagar, Prasita Mukherjee, Suresh JagannathanCAV 2020 · 4 次引用
  2. IsoDiff: Debugging Anomalies Caused by Weak IsolationYifan Gan, Xueyuan Ren, Drew Ripberger, Spyros Blanas 等VLDB 2020

相关 Paper

  1. On the Complexity of Checking Mixed Isolation Levels for SQL TransactionsAhmed Bouajjani, Constantin Enea, Enrique Román-CalvoCAV 2025 · 3 次引用
  2. AWDIT: An Optimal Weak Database Isolation TesterLasse Møldrup, Andreas PavlogiannisPLDI 2025 · 5 次引用
  3. IsoPredict: Dynamic Predictive Analysis for Detecting Unserializable Behaviors in Weakly Isolated Data Store ApplicationsChujun Geng, Spyros Blanas, Michael D. Bond, Yang WangPLDI 2024 · 3 次引用
  4. DBStorm: Generating Various Effective Workloads for Testing Isolation LevelsKeqiang Li, Siyang Weng, Lyu Ni, Chengcheng Yang 等ISSTA 2024 · 5 次引用
  5. Leopard: A Black-Box Approach for Efficiently Verifying Various Isolation LevelsKeqiang Li, Siyang Weng, Peiyuan Liu, Lyu Ni 等ICDE 2023 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖