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 条
  • [1] KLGCN: Knowledge graph-aware Light Graph Convolutional Network for recommender systems
    Wang, Fei
    Li, Yansheng
    Zhang, Yongjun
    Wei, Dong
    EXPERT SYSTEMS WITH APPLICATIONS, 2022, 195
  • [2] To see further: Knowledge graph-aware deep graph convolutional network for recommender systems
    Wang, Fei
    Zheng, Zhi
    Zhang, Yongjun
    Li, Yansheng
    Yang, Kun
    Zhu, Chenming
    INFORMATION SCIENCES, 2023, 647
  • [3] Active Sampling for Graph-Aware Classification
    Berberidis, Dimitris
    Giannakis, Georgios B.
    2017 IEEE GLOBAL CONFERENCE ON SIGNAL AND INFORMATION PROCESSING (GLOBALSIP 2017), 2017, : 648 - 652
  • [4] Multi-network User Identification via Graph-Aware Embedding
    Yang, Yang
    Zhan, De-Chuan
    Wu, Yi-Feng
    Jiang, Yuan
    ADVANCES IN KNOWLEDGE DISCOVERY AND DATA MINING, PAKDD 2018, PT II, 2018, 10938 : 209 - 221
  • [5] Graph-aware tensor factorization convolutional network for knowledge graph completion
    Jin, Yuzhu
    Yang, Liu
    INTERNATIONAL JOURNAL OF MACHINE LEARNING AND CYBERNETICS, 2024, 15 (05) : 1755 - 1766
  • [6] Graph-aware tensor factorization convolutional network for knowledge graph completion
    Yuzhu Jin
    Liu Yang
    International Journal of Machine Learning and Cybernetics, 2024, 15 : 1755 - 1766
  • [7] GRAPH-AWARE MODELING OF BRAIN CONNECTIVITY NETWORKS
    Kim, Yura
    Kessler, Daniel
    Levina, Elizaveta
    ANNALS OF APPLIED STATISTICS, 2023, 17 (03): : 2095 - 2117
  • [8] Graph-aware Chained Trip Purpose Inference
    Lyu, Suxing
    Kusakabe, Takahiko
    2021 IEEE INTELLIGENT TRANSPORTATION SYSTEMS CONFERENCE (ITSC), 2021, : 3691 - 3697
  • [9] Portfolio Selection via Graph-Aware Gaussian Processes With Generalized Gaussian Likelihood
    Li N.
    Xia Z.
    Li Y.
    Kuruoglu E.E.
    Jiang Y.
    Xia S.-T.
    IEEE Transactions on Artificial Intelligence, 2024, 5 (02): : 505 - 515
  • [10] Graphine: A Dataset for Graph-aware Terminology Definition Generation
    Liu, Zequn
    Wang, Shukai
    Gu, Yiyang
    Zhang, Ruiyi
    Zhang, Ming
    Wang, Sheng
    2021 CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING (EMNLP 2021), 2021, : 3453 - 3463