Testing Graph Database Systems via Graph-Aware Metamorphic Relations

被引:2
|
作者
Zhuang, Zeyang [1 ]
Li, Penghui [1 ]
Ma, Pingchuan [2 ]
Meng, Wei [1 ]
Wang, Shuai [2 ]
机构
[1] Chinese Univ Hong Kong, Hong Kong, Peoples R China
[2] Hong Kong Univ Sci & Technol, Hong Kong, Peoples R China
来源
PROCEEDINGS OF THE VLDB ENDOWMENT | 2023年 / 17卷 / 04期
关键词
D O I
10.14778/3636218.3636236
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Graph database systems (GDBs) have supported many important real-world applications such as social networks, logistics, and path planning. Meanwhile, logic bugs are also prevalent in GDBs, leading to incorrect results and severe consequences. However, the logic bugs largely cannot be revealed by prior solutions which are unaware of the graph native structures of the graph data. In this paper, we propose Gamera (Graph-aware metamorphic relations), a novel metamorphic testing approach to uncover unknown logic bugs in GDBs. We design three classes of novel graph-aware Metamorphic Relations (MRs) based on the graph native structures. Gamera would generate a set of queries according to the graph-aware MRs to test diverse and complex GDB operations, and check whether the GDB query results conform to the chosen MRs. We thoroughly evaluated the effectiveness of Gamera on seven widely-used GDBs such as Neo4j and OrientDB. Gamera was highly effective in detecting logic bugs in GDBs. In total, it detected 39 logic bugs, of which 15 bugs have been confirmed, and three bugs have been fixed. Our experiments also demonstrated that Gamera significantly outperformed prior solutions including Grand, GD-smith and GDBMeter. Gamera has been well-recognized by GDB developers and we open-source our prototype implementation to contribute to the community.
引用
收藏
页码:836 / 848
页数:13
相关论文
共 50 条
  • [41] Predicting metamorphic relations for testing scientific software: a machine learning approach using graph kernels
    Kanewala, Upulee
    Bieman, James M.
    Ben-Hur, Asa
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2016, 26 (03): : 245 - 269
  • [42] Cross-space topological contrastive learning for knowledge graph-aware issue recommendation
    Zhang, Leihong
    Shi, Yuliang
    Qi, Kaiyuan
    Wu, Dong
    Wang, Xinjun
    Yan, Zhongmin
    Chen, Zhiyong
    KNOWLEDGE AND INFORMATION SYSTEMS, 2025, : 4623 - 4650
  • [43] Differential Optimization Testing of Gremlin-Based Graph Database Systems
    Zheng, Yingying
    Dou, Wensheng
    Tang, Lei
    Cui, Ziyu
    Song, Jiansen
    Cheng, Ziyue
    Wang, Wei
    Wei, Jun
    Zhong, Hua
    Huang, Tao
    2024 IEEE CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION, ICST 2024, 2024, : 25 - 36
  • [44] Probabilistic Power Flow of Distribution System Based on a Graph-Aware Deep Learning Network
    Wu, Huayi
    Wang, Minghao
    Xu, Zhao
    Jia, Youwei
    2021 IEEE IAS INDUSTRIAL AND COMMERCIAL POWER SYSTEM ASIA (IEEE I&CPS ASIA 2021), 2021, : 105 - 109
  • [45] Testing Graph Searching Based Path Planning Algorithms by Metamorphic Testing
    Zhang, Jiantao
    Zheng, Zheng
    Yin, Beibei
    Qiu, Kun
    Liu, Yang
    2019 IEEE 24TH PACIFIC RIM INTERNATIONAL SYMPOSIUM ON DEPENDABLE COMPUTING (PRDC 2019), 2019, : 158 - 167
  • [46] D2D-Based Cellular-Connected UAV Swarm Control Optimization via Graph-Aware DRL
    Su, Yang
    Zhou, Hui
    Deng, Yansha
    2022 IEEE GLOBAL COMMUNICATIONS CONFERENCE (GLOBECOM 2022), 2022, : 1326 - 1331
  • [47] McHa: a multistage clustering-based hierarchical attention model for knowledge graph-aware recommendation
    Jihu Wang
    Yuliang Shi
    Dong Li
    Kun Zhang
    Zhiyong Chen
    Hui Li
    World Wide Web, 2022, 25 : 1103 - 1127
  • [48] Attention-interactive horizontal-vertical graph-aware network for medical spine segmentation
    Tian, Yuyu
    Lv, Yalong
    Cai, Xiaoyi
    ENGINEERING APPLICATIONS OF ARTIFICIAL INTELLIGENCE, 2025, 143
  • [49] Reconfiguring multicast sessions in elastic optical networks adaptively with graph-aware deep reinforcement learning
    Tian, Xiaojian
    Li, Baojia
    Gu, Rentao
    Zhu, Zuqing
    JOURNAL OF OPTICAL COMMUNICATIONS AND NETWORKING, 2021, 13 (11) : 253 - 265
  • [50] Graph-aware multi-feature interacting network for explainable rumor detection on social network
    Yang, Chang
    Yu, Xia
    Wu, Jiayi
    Zhang, Bozhen
    Yang, Haibo
    EXPERT SYSTEMS WITH APPLICATIONS, 2024, 249