Lune

ISSTA2023Top-tier venue

GDsmith: Detecting Bugs in Cypher Graph Database Engines

Ziyue Hua, Wei Lin, Luyao Ren, Zongyang Li, Lu Zhang, Wenpin Jiao, Tao Xie

Abstract

Graph database engines stand out in the era of big data for their efficiency of modeling and processing linked data. To assure high quality of graph database engines, it is highly critical to conduct automatic test generation for graph database engines, e.g., random test generation, the most commonly adopted approach in practice. However, random test generation faces the challenge of generating complex inputs (i.e., property graphs and queries) for producing non-empty query results; generating such type of inputs is important especially for detecting wrong-result bugs. To address this challenge, in this paper, we propose GDsmith, the first approach for testing Cypher graph database engines. GDsmith ensures that each randomly generated query satisfies the semantic requirements. To increase the probability of producing complex queries that return non-empty results, GDsmith includes two new techniques: graph-guided generation of complex pattern combinations and data-guided generation of complex conditions. Our evaluation results demonstrate that GDsmith is effective and efficient for producing complex queries that return non-empty results for bug detection, and substantially outperforms the baselines. GDsmith successfully detects 28 bugs on the released versions of three highly popular open-source graph database engines and receives positive feedback from their 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.

17 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

  • SQUIRREL: Testing Database Management Systems with Language Validity and Coverage Feedback cites Testing Database Engines via Pivoted Query Synthesis
  • 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
  • Testing Graph Database Systems via Equivalent Query Rewriting cites Testing Database Engines via Pivoted Query Synthesis
  • Finding bugs in database systems via query partitioning cites SQUIRREL: Testing Database Management Systems with Language Validity and Coverage Feedback
  • 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 Testing Database Engines via Pivoted Query Synthesis
  • Testing Database Systems via Differential Query Execution cites SQUIRREL: Testing Database Management Systems with Language Validity and Coverage Feedback
  • 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 Finding bugs in Gremlin-based graph database systems via Randomized differential testing
  • Testing Database Systems via Differential Query Execution cites Testing Database Engines via Pivoted Query Synthesis
  • Detecting optimization bugs in database engines via non-optimizing reference engine construction cites Testing Database Engines via Pivoted Query Synthesis
  • 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 Finding bugs in Gremlin-based graph database systems via Randomized differential testing
  • Detecting Isolation Bugs via Transaction Oracle Construction cites SQUIRREL: Testing Database Management Systems with Language Validity and Coverage Feedback
  • 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 Finding bugs in Gremlin-based graph database systems via Randomized differential testing
  • Detecting Isolation Bugs via Transaction Oracle Construction cites Testing Database Engines via Pivoted Query Synthesis
  • Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database Construction cites SQUIRREL: Testing Database Management Systems with Language Validity and Coverage Feedback
  • 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 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 Testing Database Engines via Pivoted Query Synthesis
  • 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 Testing Database Engines via Pivoted Query Synthesis
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers17

  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 on5

  1. Testing Database Engines via Pivoted Query SynthesisManuel Rigger, Zhendong SuOSDI 2020 · 150 citations
  2. Finding bugs in database systems via query partitioningManuel Rigger, Zhendong SuOOPSLA 2020 · 116 citations
  3. Detecting optimization bugs in database engines via non-optimizing reference engine constructionManuel Rigger, Zhendong SuFSE 2020 · 104 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. SQUIRREL: Testing Database Management Systems with Language Validity and Coverage FeedbackRui Zhong, Yongheng Chen, Hong Hu, Hangfan Zhang et al.CCS 2020 · 5 citations

Related papers

  1. Testing Graph Databases with Synthesized QueriesZijing Yin, Si Liu, David A. BasinSIGMOD 2026 · 2 citations
  2. Dinkel: State-Aware and Granular Framework for Validating Graph DatabasesCeline Wüst, Zu-Ming Jiang, Zhendong SuVLDB 2026
  3. Understanding Query Optimization Bugs in Graph Database SystemsYuyu Chen, Zhongxing YuASPLOS 2026 · 1 citation
  4. CypherSmith: Transforming Text-to-Cypher Generation for LLMs with Synthetic DataZeyu Zhang, Kexuan Sun, Zheng Tang, Jens-S. Vöckler et al.ACL 2026
  5. 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
Dusk over the sea between two cliffs drawn in fine vertical lines