使用突变测试DBMS性能
Testing DBMS Performance with Mutations
摘要:
由于数据库系统是现代数据密集型应用程序的关键组件,因此确保它们正确运行非常重要。为此,开发人员对这些系统进行了广泛的测试,以消除对功能产生负面影响的错误。然而,除了功能性bug之外,还有另一类重要的bug:性能bug。这些错误会对数据库系统的响应时间产生负面影响,因此会影响系统的整体性能。尽管它们对最终用户体验有影响,但性能错误受到的关注远远少于功能错误。在本文中,我们提出了AMOEBA,一个系统,自动检测数据库系统中的性能缺陷。AMOEBA背后的核心思想是构造语义上彼此等价的查询对,然后在同一数据库系统上比较它们的响应时间。如果查询在运行时性能上表现出显著的差异,那么根本原因可能是系统中的性能缺陷。我们提出了一套新的结构和谓词突变规则,用于构建可能发现性能缺陷的查询对。我们引入反馈机制,以提高工具的功效和计算效率。我们在两个广泛使用的DBMS上评估AMOEBA,即PostgreSQL和CockroachDB。AMOEBA已经发现了20个以前未知的性能错误,其中开发人员已经确认了14个并修复了4个。
英文摘要:
Because database systems are the critical component of modern data-intensive applications, it is important to ensure that they operate correctly. To this end, developers extensively test these systems to eliminate bugs that negatively affect functionality. In addition to functional bugs, however, there is another important class of bugs: performance bugs. These bugs negatively affect the response time of a database system and can therefore affect the overall performance of the system. Despite their impact on end-user experience, performance bugs have received considerably less attention than functional bugs. In this paper, we present AMOEBA, a system for automatically detecting performance bugs in database systems. The core idea behind AMOEBA is to construct query pairs that are semantically equivalent to each other and then compare their response time on the same database system. If the queries exhibit a significant difference in their runtime performance, then the root cause is likely a performance bug in the system. We propose a novel set of structure and predicate mutation rules for constructing query pairs that are likely to uncover performance bugs. We introduce feedback mechanisms for improving the efficacy and computational efficiency of the tool. We evaluate AMOEBA on two widely-used DBMSs, namely PostgreSQL and CockroachDB. AMOEBA has discovered 20 previously-unknown performance bugs, among which developers have already confirmed 14 and fixed 4.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。