Lune

PLDI2025顶会

AWDIT: An Optimal Weak Database Isolation Tester

Lasse Møldrup, Andreas Pavlogiannis

摘要

Database isolation is a formal contract concerning the level of data consistency that a database provides to its clients. In order to achieve low latency, high throughput, and partition tolerance, modern databases forgo strong transaction isolation for weak isolation guarantees. However, several production databases have been found to suffer from isolation bugs , breaking their data-consistency contract. Black-box testing is a prominent technique for detecting isolation bugs, by checking whether histories of database transactions adhere to a prescribed isolation level. In order to test databases on realistic workloads of large size, isolation testers must be as efficient as possible, a requirement that has initiated a study of the complexity of isolation testing. Although testing strong isolation has been known to be NP-complete, weak isolation levels were recently shown to be testable in polynomial time, which has propelled the scalability of testing tools. However, existing testers have a large polynomial complexity, restricting testing to workloads of only moderate size, which is not typical of large-scale databases. How efficiently can we provably test weak database isolation? In this work, we develop AWDIT, a highly-efficient and provably optimal tester for weak database isolation . Given a history H of size n and k sessions, AWDIT tests whether H satisfies the most common weak isolation levels of Read Committed (RC), Read Atomic (RA), and Causal Consistency (CC) in time O ( n 3/2 ), O ( n 3/2 ), and O ( n · k ), respectively, improving significantly over the state of the art. Moreover, we prove that AWDIT is essentially optimal , in the sense that there is a lower bound of n 3/2 , based on the combinatorial BMM hypothesis, for any weak isolation level between RC and CC. Our experiments show that AWDIT is significantly faster than existing, highly optimized testers; e.g., for the ∼20﹪ largest histories, AWDIT obtains an average speedup of 245×, 193×, and 62× for RC, RA, and CC, respectively, over the best baseline.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • The Complexity of Dynamic Data Race Prediction 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Fast Atomicity Monitoring 引用了 The Complexity of Dynamic Data Race Prediction
  • Fast Atomicity Monitoring 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Fast Atomicity Monitoring 引用了 Efficient Decrease-and-Conquer Linearizability Monitoring
  • Efficient Decrease-and-Conquer Linearizability Monitoring 引用了 The Complexity of Dynamic Data Race Prediction
  • Efficient Decrease-and-Conquer Linearizability Monitoring 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Efficient Decrease-and-Conquer Linearizability Monitoring 引用了 The Complexity of Testing Message-Passing Concurrency
  • The Complexity of Testing Message-Passing Concurrency 引用了 Efficient Decrease-and-Conquer Linearizability Monitoring
  • The Complexity of Testing Message-Passing Concurrency 引用了 The Complexity of Dynamic Data Race Prediction
  • The Complexity of Testing Message-Passing Concurrency 引用了 Fast, sound, and effectively complete dynamic race prediction
  • Augur: Predicting View Serializability Violations in Relational Data Store Applications 引用了 Elle: Inferring Isolation Anomalies from Experimental Observations
  • Augur: Predicting View Serializability Violations in Relational Data Store Applications 引用了 Cobra: Making Transactional Key-Value Stores Verifiably Serializable
  • Efficient Black-box Checking of Snapshot Isolation in Databases 引用了 Elle: Inferring Isolation Anomalies from Experimental Observations
  • Efficient Black-box Checking of Snapshot Isolation in Databases 引用了 Cobra: Making Transactional Key-Value Stores Verifiably Serializable
  • Cobra: Making Transactional Key-Value Stores Verifiably Serializable 引用了 Elle: Inferring Isolation Anomalies from Experimental Observations
  • Fast Verification of Strong Database Isolation 引用了 Elle: Inferring Isolation Anomalies from Experimental Observations
  • Fast Verification of Strong Database Isolation 引用了 Efficient Black-box Checking of Snapshot Isolation in Databases
  • Fast Verification of Strong Database Isolation 引用了 Cobra: Making Transactional Key-Value Stores Verifiably Serializable
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. Efficient Decrease-and-Conquer Linearizability MonitoringLee Zheng Han, Umang MathurOOPSLA 2025 · 2 次引用
  2. The Complexity of Testing Message-Passing ConcurrencyZheng Shi, Lasse Møldrup, Umang Mathur, Andreas PavlogiannisPOPL 2026 · 2 次引用
  3. Fast Atomicity MonitoringHünkar Can Tunç, Yifan Dong, Andreas PavlogiannisPLDI 2026
  4. Augur: Predicting View Serializability Violations in Relational Data Store ApplicationsChujun Geng, Noah Charlton, Spyros Blanas, Michael D. Bond 等OOPSLA 2026
  5. Fast Verification of Strong Database IsolationZhiheng Cai, Si Liu, Hengfeng Wei, Yuxing Chen 等VLDB 2026

它引用的 Paper13

  1. Elle: Inferring Isolation Anomalies from Experimental ObservationsPeter Alvaro, Kyle KingsburyVLDB 2021 · 88 次引用
  2. Cobra: Making Transactional Key-Value Stores Verifiably SerializableCheng Tan, Changgeng Zhao, Shuai Mu, Michael WalfishOSDI 2020 · 61 次引用
  3. Fast, sound, and effectively complete dynamic race predictionAndreas PavlogiannisPOPL 2020 · 46 次引用
  4. The Complexity of Dynamic Data Race PredictionUmang Mathur, Andreas Pavlogiannis, Mahesh ViswanathanLICS 2020 · 27 次引用
  5. Efficient Black-box Checking of Snapshot Isolation in DatabasesKaile Huang, Si Liu, Zhenge Chen, Hengfeng Wei 等VLDB 2023 · 18 次引用

相关 Paper

  1. Plume: Efficient and Complete Black-Box Checking of Weak Isolation LevelsSi Liu, Long Gu, Hengfeng Wei, David A. BasinOOPSLA 2024 · 9 次引用
  2. Boosting End-to-End Database Isolation Checking via Mini-TransactionsHengfeng Wei, Jiang Xiao, Na Yang, Si Liu 等ICDE 2025 · 3 次引用
  3. On the Complexity of Checking Mixed Isolation Levels for SQL TransactionsAhmed Bouajjani, Constantin Enea, Enrique Román-CalvoCAV 2025 · 3 次引用
  4. IsoDiff: Debugging Anomalies Caused by Weak IsolationYifan Gan, Xueyuan Ren, Drew Ripberger, Spyros Blanas 等VLDB 2020
  5. DBStorm: Generating Various Effective Workloads for Testing Isolation LevelsKeqiang Li, Siyang Weng, Lyu Ni, Chengcheng Yang 等ISSTA 2024 · 5 次引用
黄昏的海面,两侧是细线勾勒的悬崖