利用SQL摘要增强SAP HANA数据库工作负载重放中失败的根本原因分析
On Enhancing Root Cause Analysis with SQL Summaries for Failures in Database Workload Replays at SAP HANA
AI总结:
针对SAP HANA数据库工作负载重放中的失败分析问题,提出利用LLM提取失败SQL摘要作为附加特征以增强机器学习分类,将F1-Macro分数提升4.77%,有效应对未知问题并提升评估效果。
摘要:
捕获数据库工作负载并针对新版本数据库重放该工作负载,是回归测试的有效方法。然而,由数据隐私限制、时间依赖性或多线程环境中的非确定性等诸多因素引起的误报错误,会对测试效果产生负面影响。因此,我们采用基于机器学习的框架,自动化分析重放期间发现的失败的根本原因。然而,处理训练数据中未见的未知新问题是机器学习方法在学习模型泛化性方面的一般挑战。我们描述了如何继续应对这一挑战以提供更稳健的长期解决方案。根据我们的经验,由于不同根本原因之间存在特征重叠,仅用新失败样本进行重训练是不够的。因此,我们利用大型语言模型(LLM)分析失败的SQL语句,并提取简洁的失败摘要作为附加特征来增强分类过程。实验表明,我们的数据的F1-Macro分数提高了4.77%。我们认为该方法有助于为最终用户提供额外信息,使其更深入地了解所发现的问题,并改进对重放结果的评估。
英文摘要:
Capturing the workload of a database and replaying this workload for a new version of the database can be an effective approach for regression testing. However, false positive errors caused by many factors such as data privacy limitations, time dependency or non-determinism in multi-threaded environment can negatively impact the effectiveness. Therefore, we employ a machine learning based framework to automate the root cause analysis of failures found during replays. However, handling unseen novel issues not found in the training data is one general challenge of machine learning approaches with respect to generalizability of the learned model. We describe how we continue to address this challenge for more robust long-term solutions. From our experience, retraining with new failures is inadequate due to features overlapping across distinct root causes. Hence, we leverage a large language model (LLM) to analyze failed SQL statements and extract concise failure summaries as an additional feature to enhance the classification process. Our experiments show the F1-Macro score improved by 4.77% for our data. We consider our approach beneficial for providing end users with additional information to gain more insights into the found issues and to improve the assessment of the replay results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。