Lune

ICSE2021Top-tier venue

Data-Oriented Differential Testing of Object-Relational Mapping Systems

Thodoris Sotiropoulos, Stefanos Chaliasos, Vaggelis Atlidakis, Dimitris Mitropoulos, Diomidis Spinellis

Abstract

We introduce, what is to the best of our knowledge, the first approach for systematically testing Object-Relational Mapping (ORM) systems. Our approach leverages differential testing to establish a test oracle for ORM-specific bugs. Specifically, we first generate random relational database schemas, set up the respective databases, and then, we query these databases using the APIs of the ORM systems under test. To tackle the challenge that ORMs lack a common input language, we generate queries written in an abstract query language. These abstract queries are translated into concrete, executable ORM queries, which are ultimately used to differentially test the correctness of target implementations. The effectiveness of our method heavily relies on the data inserted to the underlying databases. Therefore, we employ a solver-based approach for producing targeted database records with respect to the constraints of the generated queries. We implement our approach as a tool, called CYNTHIA, which found 28 bugs in five popular ORM systems. The vast majority of these bugs are confirmed (25 / 28), more than half were fixed (20 / 28), and three were marked as release blockers by the corresponding developers.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Inconsistencies in TeX-Produced Documents cites Finding XPath Bugs in XML Document Processors via Differential Testing
  • Finding XPath Bugs in XML Document Processors via Differential Testing cites Finding bugs in database systems via query partitioning
  • Finding XPath Bugs in XML Document Processors via Differential Testing cites Detecting optimization bugs in database engines via non-optimizing reference engine construction
  • Finding XPath Bugs in XML Document Processors via Differential Testing cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
  • Finding XPath Bugs in XML Document Processors via Differential Testing cites Testing Database Engines via Pivoted Query Synthesis
  • Finding XPath Bugs in XML Document Processors via Differential Testing cites Testing Graph Database Engines via Query Partitioning
  • Finding bugs in database systems via query partitioning cites Detecting optimization bugs in database engines via non-optimizing reference engine construction
  • Finding bugs in database systems via query partitioning cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
  • Finding bugs in database systems via query partitioning cites Testing Database Engines via Pivoted Query Synthesis
  • Detecting optimization bugs in database engines via non-optimizing reference engine construction cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
  • Detecting optimization bugs in database engines via non-optimizing reference engine construction cites Testing Database Engines via Pivoted Query Synthesis
  • Perfce: Performance Debugging on Databases with Chaos Engineering-Enhanced Causality Analysis cites Testing Database Engines via Pivoted Query Synthesis
  • Testing Graph Database Engines via Query Partitioning cites Finding bugs in database systems via query partitioning
  • Testing Graph Database Engines via Query Partitioning cites Detecting optimization bugs in database engines via non-optimizing reference engine construction
  • Testing Graph Database Engines via Query Partitioning cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Testing Graph Database Engines via Query PartitioningMatteo Kamm, Manuel Rigger, Chengyu Zhang, Zhendong SuISSTA 2023 · 29 citations
  2. Perfce: Performance Debugging on Databases with Chaos Engineering-Enhanced Causality AnalysisZhenlan Ji, Pingchuan Ma, Shuai WangASE 2023 · 9 citations
  3. Finding XPath Bugs in XML Document Processors via Differential TestingShuxin Li, Manuel RiggerICSE 2024 · 4 citations
  4. Inconsistencies in TeX-Produced DocumentsJovyn Tan, Manuel RiggerISSTA 2024

Builds on6

  1. Testing Database Engines via Pivoted Query SynthesisManuel Rigger, Zhendong SuOSDI 2020 · 150 citations
  2. NEZHA: Efficient Domain-Independent Differential TestingTheofilos Petsios, Adrian Tang, Salvatore J. Stolfo, Angelos D. Keromytis et al.S&P 2017 · 132 citations
  3. Finding bugs in database systems via query partitioningManuel Rigger, Zhendong SuOOPSLA 2020 · 116 citations
  4. Detecting optimization bugs in database engines via non-optimizing reference engine constructionManuel Rigger, Zhendong SuFSE 2020 · 104 citations
  5. APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database SystemsJinho Jung, Hong Hu, Joy Arulraj, Taesoo Kim et al.VLDB 2020 · 77 citations

Related papers

  1. Pinolo: Detecting Logical Bugs in Database Management Systems with Approximate Query SynthesisZongyin Hao, Quanfeng Huang, Chengpeng Wang, Jianfeng Wang et al.USENIX ATC 2023 · 26 citations
  2. Detecting Schema-Related Logic Bugs in Relational DBMSs via Equivalent Database ConstructionJiansen Song, Wensheng Dou, Yingying Zheng, Yu Gao et al.VLDB 2025 · 6 citations
  3. Mozi: Discovering DBMS Bugs via Configuration-Based Equivalent TransformationJie Liang, Zhiyong Wu, Jingzhou Fu, Mingzhe Wang et al.ICSE 2024 · 18 citations
  4. Detecting Logical Bugs of DBMS with Coverage-based GuidanceYu Liang, Song Liu, Hong HuUSENIX Security 2022
  5. Verification of ORM-based Controllers by Summary InferenceGeetam Chawla, Navneet Aman, Raghavan Komondoor, Ashish Bokil et al.ICSE 2022 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines