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 条
  • [31] Toward Greater Intelligence in Route Planning: A Graph-Aware Deep Learning Approach
    Zhuang, Zirui
    Wang, Jingyu
    Qi, Qi
    Sun, Haifeng
    Liao, Jianxin
    IEEE SYSTEMS JOURNAL, 2020, 14 (02): : 1658 - 1669
  • [32] Closed-loop reasoning with graph-aware dense interaction for visual dialog
    Liu, An-An
    Zhang, Guokai
    Xu, Ning
    Guo, Junbo
    Jin, Guoqing
    Li, Xuanya
    MULTIMEDIA SYSTEMS, 2022, 28 (05) : 1823 - 1832
  • [33] Scalable Graph-Aware Edge Representation Learning for Wireless IoT Intrusion Detection
    Jiang, Zhenyu
    Li, Jiliang
    Hu, Qinnan
    Meng, Weizhi
    Pedrycz, Witold
    Su, Zhou
    IEEE INTERNET OF THINGS JOURNAL, 2024, 11 (16): : 26955 - 26969
  • [34] MMKDGAT: Multi-modal Knowledge graph-aware Deep Graph Attention Network for remote sensing image recommendation
    Wang, Fei
    Zhu, Xianzhang
    Cheng, Xin
    Zhang, Yongjun
    Li, Yansheng
    EXPERT SYSTEMS WITH APPLICATIONS, 2024, 235
  • [35] Finding Bugs in Gremlin-Based Graph Database Systems via Randomized Differential Testing
    Zheng, Yingying
    Dou, Wensheng
    Wang, Yicheng
    Qin, Zheng
    Tang, Lei
    Gao, Yu
    Wang, Dong
    Wang, Wei
    Wei, Jun
    PROCEEDINGS OF THE 31ST ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2022, 2022, : 302 - 313
  • [36] GAIM: Graph-aware Feature Interactional Model for Spam Movie Review Detection
    Zhang, Lei
    Song, Xueqiang
    Zhao, Xiaoming
    Fang, Yuwei
    Li, Dong
    Wang, Haizhou
    2022 26TH INTERNATIONAL CONFERENCE ON PATTERN RECOGNITION (ICPR), 2022, : 621 - 628
  • [37] Closed-loop reasoning with graph-aware dense interaction for visual dialog
    An-An Liu
    Guokai Zhang
    Ning Xu
    Junbo Guo
    Guoqing Jin
    Xuanya Li
    Multimedia Systems, 2022, 28 : 1823 - 1832
  • [38] Mixed-Curvature Manifolds Interaction Learning for Knowledge Graph-aware Recommendation
    Wang, Jihu
    Shi, Yuliang
    Yu, Han
    Wang, Xinjun
    Yan, Zhongmin
    Kong, Fanyu
    PROCEEDINGS OF THE 46TH INTERNATIONAL ACM SIGIR CONFERENCE ON RESEARCH AND DEVELOPMENT IN INFORMATION RETRIEVAL, SIGIR 2023, 2023, : 372 - 382
  • [39] GRAPH DATABASE-SYSTEMS
    GRAVES, M
    BERGEMAN, ER
    LAWRENCE, CB
    IEEE ENGINEERING IN MEDICINE AND BIOLOGY MAGAZINE, 1995, 14 (06): : 737 - 745
  • [40] Mandari: Multi-Modal Temporal Knowledge Graph-aware Sub-graph Embedding for Next-POI Recommendation
    Liu, Xiaoqian
    Li, Xiuyun
    Cao, Yuan
    Zhang, Fan
    Jin, Xiongnan
    Chen, Jinpeng
    2023 IEEE INTERNATIONAL CONFERENCE ON MULTIMEDIA AND EXPO, ICME, 2023, : 1529 - 1534