Lune

ISSTA2023Top-tier venue

Testing Graph Database Engines via Query Partitioning

Matteo Kamm, Manuel Rigger, Chengyu Zhang, Zhendong Su

Abstract

Graph Database Management Systems (GDBMSs) store data as graphs and allow the efficient querying of nodes and their relationships. Logic bugs are bugs that cause a GDBMS to return an incorrect result for a given query (e.g., by returning incorrect nodes or relationships). The impact of such bugs can be severe, as they often go unnoticed. The core insight of this paper is that Query Partitioning, a test oracle that has been proposed to test Relational Database Systems, is applicable to testing GDBMSs as well. The core idea of Query Partitioning is that, given a query, multiple queries are derived whose results can be combined to reconstruct the given query's result. Any discrepancy in the result indicates a logic bug. We have implemented this approach as a practical tool named GDB-Meter and evaluated GDBMeter on three popular GDBMSs and found a total of 40 unique, previously unknown bugs. We consider 14 of them to be logic bugs, the others being error or crash bugs. Overall, 27 of the bugs have been fixed, and 35 confirmed. We compared our approach to the state-of-the-art approach to testing GDBMS, which relies on differential testing; we found that it results in a high number of false alarms, while Query Partitioning reported actual logic bugs without any false alarms. Furthermore, despite the previous efforts in testing Neo4j and JanusGraph, we found 18 additional bugs. The developers appreciate our work and plan to integrate GDBMeter into their testing process. We expect that this simple, yet effective approach and the practical tool will be used to test other GDBMSs.

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.

21 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

  • Testing Graph Database Systems via Equivalent Query Rewriting cites Finding bugs in database systems via query partitioning
  • Testing Graph Database Systems via Equivalent Query Rewriting cites Testing Database Systems via Differential Query Execution
  • Testing Graph Database Systems via Equivalent Query Rewriting cites Finding bugs in Gremlin-based graph database systems via Randomized differential testing
  • 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
  • Testing Database Systems via Differential Query Execution cites Finding bugs in database systems via query partitioning
  • Testing Database Systems via Differential Query Execution cites Detecting Isolation Bugs via Transaction Oracle Construction
  • Detecting Isolation Bugs via Transaction Oracle Construction cites Testing Database Systems via Differential Query Execution
  • Testing Database Systems via Differential Query Execution cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
  • Testing Database Systems via Differential Query Execution cites Finding bugs in Gremlin-based graph database systems via Randomized differential testing
  • Detecting optimization bugs in database engines via non-optimizing reference engine construction cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
  • Testing Graph Database Systems via Graph-Aware Metamorphic Relations cites Finding bugs in database systems via query partitioning
  • Testing Graph Database Systems via Graph-Aware Metamorphic Relations cites Detecting optimization bugs in database engines via non-optimizing reference engine construction
  • Testing Graph Database Systems via Graph-Aware Metamorphic Relations cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
  • Testing Graph Database Systems via Graph-Aware Metamorphic Relations cites Finding bugs in Gremlin-based graph database systems via Randomized differential testing
  • Detecting Isolation Bugs via Transaction Oracle Construction cites Finding bugs in database systems via query partitioning
  • Detecting Isolation Bugs via Transaction Oracle Construction cites Detecting optimization bugs in database engines via non-optimizing reference engine construction
  • Detecting Isolation Bugs via Transaction Oracle Construction cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
  • Detecting Isolation Bugs via Transaction Oracle Construction cites Finding bugs in Gremlin-based graph database systems via Randomized differential testing
  • Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database Construction cites Finding bugs in database systems via query partitioning
  • Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database Construction cites Testing Database Systems via Differential Query Execution
  • Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database Construction cites Detecting optimization bugs in database engines via non-optimizing reference engine construction
  • Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database Construction cites Detecting Isolation Bugs via Transaction Oracle Construction
  • Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database Construction cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
  • Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database Construction cites Finding bugs in Gremlin-based graph database systems via Randomized differential testing
  • Data-Oriented Differential Testing of Object-Relational Mapping Systems cites Finding bugs in database systems via query partitioning
  • Data-Oriented Differential Testing of Object-Relational Mapping Systems cites Detecting optimization bugs in database engines via non-optimizing reference engine construction
  • Data-Oriented Differential Testing of Object-Relational Mapping Systems cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
  • Finding bugs in Gremlin-based graph database systems via Randomized differential testing cites Finding bugs in database systems via query partitioning
  • Finding bugs in Gremlin-based graph database systems via Randomized differential testing cites Detecting optimization bugs in database engines via non-optimizing reference engine construction
  • Finding bugs in Gremlin-based graph database systems via Randomized differential testing 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 papers21

  1. Testing Database Systems via Differential Query ExecutionJiansen Song, Wensheng Dou, Ziyu Cui, Qianwang Dai et al.ICSE 2023 · 26 citations
  2. Testing Graph Database Systems via Graph-Aware Metamorphic RelationsZeyang Zhuang, Penghui Li, Pingchuan Ma, Wei Meng et al.VLDB 2024 · 23 citations
  3. Detecting Isolation Bugs via Transaction Oracle ConstructionWensheng Dou, Ziyu Cui, Qianwang Dai, Jiansen Song et al.ICSE 2023 · 21 citations
  4. Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database ConstructionJiansen Song, Wensheng Dou, Yu Gao, Ziyu Cui et al.VLDB 2024 · 13 citations
  5. Testing Graph Database Systems via Equivalent Query RewritingQiuyang Mang, Aoyang Fang, Boxi Yu, Hanfei Chen et al.ICSE 2024 · 12 citations

Builds on6

  1. Finding bugs in database systems via query partitioningManuel Rigger, Zhendong SuOOPSLA 2020 · 116 citations
  2. Detecting optimization bugs in database engines via non-optimizing reference engine constructionManuel Rigger, Zhendong SuFSE 2020 · 104 citations
  3. APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database SystemsJinho Jung, Hong Hu, Joy Arulraj, Taesoo Kim et al.VLDB 2020 · 77 citations
  4. Finding bugs in Gremlin-based graph database systems via Randomized differential testingYingying Zheng, Wensheng Dou, Yicheng Wang, Zheng Qin et al.ISSTA 2022 · 36 citations
  5. Data-Oriented Differential Testing of Object-Relational Mapping SystemsThodoris Sotiropoulos, Stefanos Chaliasos, Vaggelis Atlidakis, Dimitris Mitropoulos et al.ICSE 2021 · 21 citations

Related papers

  1. Detecting Logic Bugs in Graph Database Management Systems via Injective and Surjective Graph Query TransformationYuancheng Jiang, Jiahao Liu, Jinsheng Ba, Roland H. C. Yap et al.ICSE 2024 · 14 citations
  2. Testing Graph Databases with Synthesized QueriesZijing Yin, Si Liu, David A. BasinSIGMOD 2026 · 2 citations
  3. Finding Logic Bugs in Graph-processing Systems via Graph-cuttingQiuyang Mang, Jinsheng Ba, Pinjia He, Manuel RiggerSIGMOD 2025 · 4 citations
  4. Understanding Query Optimization Bugs in Graph Database SystemsYuyu Chen, Zhongxing YuASPLOS 2026 · 1 citation
  5. Testing Gremlin-Based Graph Database Systems via Query DisassemblingYingying Zheng, Wensheng Dou, Lei Tang, Ziyu Cui et al.ISSTA 2024 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines