Duplicate-sensitivity Guided Transformation Synthesis for DBMS Correctness Bug Detection
Yushan Zhang, Peisen Yao, Rongxin Wu, Charles Zhang

TL;DR
This paper presents an automated method for generating query transformations that detect correctness bugs in DBMSs by ensuring duplicate sensitivity, leading to the discovery of new bugs in popular systems.
Contribution
It introduces a duplicate-sensitivity guided transformation synthesis approach that automates the creation of equivalent query pairs for testing DBMS correctness.
Findings
Detected 30 new bugs in MySQL, TiDB, and CynosDB
Automated transformation synthesis reduces manual effort
Effective in uncovering correctness bugs in production DBMSs
Abstract
Database Management System (DBMS) plays a core role in modern software from mobile apps to online banking. It is critical that DBMS should provide correct data to all applications. When the DBMS returns incorrect data, a correctness bug is triggered. Current production-level DBMSs still suffer from insufficient testing due to the limited hand-written test cases. Recently several works proposed to automatically generate many test cases with query transformation, a process of generating an equivalent query pair and testing a DBMS by checking whether the system returns the same result set for both queries. However, all of them still heavily rely on manual work to provide a transformation which largely confines their exploration of the valid input query space. This paper introduces duplicate-sensitivity guided transformation synthesis which automatically finds new transformations by first…
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
TopicsSoftware Testing and Debugging Techniques · Software System Performance and Reliability · Cloud Computing and Resource Management
