Lune

ISSTA2025Top-tier venue

Detecting Isolation Anomalies in Relational DBMSs

Rui Yang, Ziyu Cui, Wensheng Dou, Yu Gao, Jiansen Song, Xudong Xie, Jun Wei

2025Year
3Citations
4Top-tier citations

Abstract

Relational Database Management Systems (DBMSs) utilize transactions to ensure data consistency and integrity, while providing multiple isolation levels to strike a balance between consistency and performance. However, isolation anomalies in relational DBMSs can undermine their claimed isolation levels, and lead to severe consequences, e.g., incorrect query results and database states. Existing isolation checkers can only work on simple ๐‘˜๐‘’๐‘ฆ-๐‘ฃ๐‘Ž๐‘™๐‘ข๐‘’-like data models and the associated ๐‘Ÿ๐‘’๐‘Ž๐‘‘ (๐‘˜๐‘’๐‘ฆ) and ๐‘ค๐‘Ÿ๐‘–๐‘ก๐‘’ (๐‘˜๐‘’๐‘ฆ, ๐‘ฃ๐‘Ž๐‘™๐‘ข๐‘’) operations. Therefore, they cannot be directly applied to relational DBMSs that support relational data models and complex SQL operations.

In this paper, we propose a novel black-box Isolation checker for Relational DBMSs, IsoRel, which can support relational data models and complex SQL operations. To infer dependencies among transactions in relational DBMSs, we first design an isolation-agnostic SQL statement instrumentation approach to record the data rows accessed by each SQL statement by utilizing two auxiliary columns in each database table. We then utilize the recorded data rows of each SQL statement to construct a transaction dependency graph for relational transactions, and identify isolation anomalies based on anomaly patterns. We evaluate IsoRel on five widely-used relational DBMSs, i.e., MySQL, PostgreSQL, MariaDB, CockroachDB, and TiDB, and all their supported isolation levels. Our evaluation reveals a total of 48 unique isolation anomalies that violate the isolation levels defined by Adya.

CCS Concepts: โ€ข Software and its engineering โ†’ Software testing and debugging.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 697296e5-0217-4654-98c7-4df99241b065

Cited by top-tier papers4

Ask how each one uses it

Builds on25

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines