Litcius/Paper detail

Mozi: Discovering DBMS Bugs via Configuration-Based Equivalent Transformation

Jie Liang, Zhiyong Wu, Jingzhou Fu, Mingzhe Wang, C. P. Sun, Yu Jiang

202418 citationsDOI

Abstract

Testing database management systems (DBMSs) is a complex task. Traditional approaches, such as metamorphic testing, need a precise comprehension of the SQL specification to create diverse inputs with equivalent semantics. The vagueness and intricacy of the SQL specification make it challenging to accurately model query semantics, thereby posing difficulties in testing the correctness and performance of DBMSs. To address this, we propose Mozi, a framework that finds DBMS bugs via configuration-based equivalent transformation. The key idea behind Mozi is to compare the results of equivalent DBMSs with different configurations, rather than between semantically equivalent queries. The framework involves analyzing the query plan, changing configurations to transform the DBMS to an equivalent one, and re-executing the query to compare the results using various test oracles. For example, detecting differences in query results indicates correctness bugs, while observing faster execution times on the optimization-closed DBMS suggests performance bugs.

Topics & Concepts

Computer scienceCorrectnessProgramming languageSQLSemantics (computer science)DatabaseQuery languageTransformation (genetics)Task (project management)GeneManagementEconomicsChemistryBiochemistrySoftware Testing and Debugging TechniquesSoftware System Performance and ReliabilitySoftware Engineering Research