Anomaly Pattern-guided Transaction Bug Testing in Relational Databases
Huicong Xu, Shuang Liu, Xianyu Zhu, Qiyu Zhuang, Wei Lu, Xiaoyong Du

TL;DR
This paper introduces APTrans, a novel anomaly pattern-guided testing approach for relational databases that effectively uncovers transaction bugs by generating targeted test cases and employing a two-phase detection process.
Contribution
It presents a new test case generation technique guided by anomaly patterns and a two-phase bug detection method for transaction testing in RDBMSs.
Findings
Successfully identified 13 previously unknown transaction bugs
11 bugs confirmed by database developers
Effective in testing MySQL, MariaDB, and OceanBase
Abstract
Concurrent transaction processing is a fundamental capability of Relational Database Management Systems (RDBMSs), widely utilized in applications requiring high levels of parallel user interaction, such as banking systems, e-commerce platforms, and telecommunications infrastructure. Isolation levels offer a configurable mechanism to manage the interaction between concurrent transactions, enabling varying degrees of consistency and performance trade-offs. These isolation guarantees are supported by all major RDBMSs. However, testing transaction behavior under different isolation levels remains a significant challenge due to two primary reasons. First, automatically generating test transactions that can effectively expose bugs in transaction handling logic is non-trivial, as such bugs are typically triggered under specific transactional constraints. Second, detecting logic anomalies in…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsDistributed systems and fault tolerance · Software System Performance and Reliability · Software Testing and Debugging Techniques
