Finding bugs in Gremlin-based graph database systems via Randomized differential testing
Yingying Zheng, Wensheng Dou, Yicheng Wang, Zheng Qin, Lei Tang, Yu Gao, Dong Wang, Wei Wang, Jun Wei
Abstract
Graph database systems (GDBs) allow efficiently storing and retrieving graph data, and have become the critical component in many applications, e.g., knowledge graphs, social networks, and fraud detection. It is important to ensure that GDBs operate correctly. Logic bugs can occur and make GDBs return an incorrect result for a given query. These bugs are critical and can easily go unnoticed by developers when the graph and queries become complicated. Despite the importance of GDBs, logic bugs in GDBs have received less attention than those in relational database systems. In this paper, we present Grand, an approach for automatically finding logic bugs in GDBs that adopt Gremlin as their query language. The core idea of Grand is to construct semantically equivalent databases for multiple GDBs, and then compare the results of a Gremlin query on these databases. If the return results of a query on multiple GDBs are different, the likely cause is a logic bug in these GDBs. To effectively test GDBs, we propose a model-based query generation approach to generate valid Gremlin queries that can potentially return non-empty results, and a data mapping approach to unify the format of query results for different GDBs. We evaluate Grand on six widely-used GDBs, e.g., Neo4j and HugeGraph. In CAS is the abbreviation of Chinese Academy of Sciences. ISCAS is the abbreviation of Institute of Software, Chinese Academy of Sciences.
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.
25 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Detecting Transactional Bugs in Database Engines via Graph-Based Oracle Construction cites Finding bugs in database systems via query partitioning
- Detecting Transactional Bugs in Database Engines via Graph-Based Oracle Construction cites Detecting optimization bugs in database engines via non-optimizing reference engine construction
- Detecting Transactional Bugs in Database Engines via Graph-Based Oracle Construction cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
- Detecting Transactional Bugs in Database Engines via Graph-Based Oracle Construction cites Testing Database Engines via Pivoted Query Synthesis
- GDsmith: Detecting Bugs in Cypher Graph Database Engines cites Finding bugs in database systems via query partitioning
- GDsmith: Detecting Bugs in Cypher Graph Database Engines cites Detecting optimization bugs in database engines via non-optimizing reference engine construction
- GDsmith: Detecting Bugs in Cypher Graph Database Engines cites Testing Database Engines via Pivoted Query Synthesis
- 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
- Testing Database Systems via Differential Query Execution cites GDsmith: Detecting Bugs in Cypher Graph Database Engines
- Testing Database Systems via Differential Query Execution cites Finding bugs in database systems via query partitioning
- 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 Testing Database Engines via Pivoted Query Synthesis
- Testing Database Systems via Differential Query Execution cites Testing Graph Database Engines via Query Partitioning
- 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
- Testing Graph Database Systems via Graph-Aware Metamorphic Relations cites GDsmith: Detecting Bugs in Cypher Graph Database Engines
- 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 Testing Graph Database Engines via Query Partitioning
- Metamorphic testing of Datalog engines cites Finding bugs in database systems via query partitioning
- Metamorphic testing of Datalog engines cites Detecting optimization bugs in database engines via non-optimizing reference engine construction
- Metamorphic testing of Datalog engines cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
- Metamorphic testing of Datalog engines 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
Cited by top-tier papers25
- Testing Graph Database Engines via Query PartitioningMatteo Kamm, Manuel Rigger, Chengyu Zhang, Zhendong SuISSTA 2023 · 29 citations
- Detecting Transactional Bugs in Database Engines via Graph-Based Oracle ConstructionZu-Ming Jiang, Si Liu, Manuel Rigger, Zhendong SuOSDI 2023 · 28 citations
- Testing Database Systems via Differential Query ExecutionJiansen Song, Wensheng Dou, Ziyu Cui, Qianwang Dai et al.ICSE 2023 · 26 citations
- GDsmith: Detecting Bugs in Cypher Graph Database EnginesZiyue Hua, Wei Lin, Luyao Ren, Zongyang Li et al.ISSTA 2023 · 24 citations
- Testing Graph Database Systems via Graph-Aware Metamorphic RelationsZeyang Zhuang, Penghui Li, Pingchuan Ma, Wei Meng et al.VLDB 2024 · 23 citations
Builds on5
- Testing Database Engines via Pivoted Query SynthesisManuel Rigger, Zhendong SuOSDI 2020 · 150 citations
- Finding bugs in database systems via query partitioningManuel Rigger, Zhendong SuOOPSLA 2020 · 116 citations
- Detecting optimization bugs in database engines via non-optimizing reference engine constructionManuel Rigger, Zhendong SuFSE 2020 · 104 citations
- APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database SystemsJinho Jung, Hong Hu, Joy Arulraj, Taesoo Kim et al.VLDB 2020 · 77 citations
- Metamorphic testing of Datalog enginesMuhammad Numair Mansur, Maria Christakis, Valentin WüstholzFSE 2021 · 25 citations
Related papers
- Testing Gremlin-Based Graph Database Systems via Query DisassemblingYingying Zheng, Wensheng Dou, Lei Tang, Ziyu Cui et al.ISSTA 2024 · 6 citations
- Testing Graph Databases with Synthesized QueriesZijing Yin, Si Liu, David A. BasinSIGMOD 2026 · 2 citations
- 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
- Finding Logic Bugs in Graph-processing Systems via Graph-cuttingQiuyang Mang, Jinsheng Ba, Pinjia He, Manuel RiggerSIGMOD 2025 · 4 citations
- Testing Graph Database Systems via Equivalent Query RewritingQiuyang Mang, Aoyang Fang, Boxi Yu, Hanfei Chen et al.ICSE 2024 · 12 citations
