arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.23054cs.SEcs.DB
收藏

分布式数据库持续集成中实用的故障三重框架

A Practical Framework for Flaky Failure Triage in Distributed Database Continuous Integration

Northwest A&F University(西北农林科技大学);PingCAP;Nankai University(南开大学);East China Normal University(华东师范大学)

Jun-Peng Zhu, Qizhi Wang, Yulong Zhai, Yishen Sun, Sen Chen, Kai Xu, Peng Cai, Hongming Zhang, Heng Long, Liu Tang, Qi Liu

AI总结:

本文提出SCOUT框架,通过严格因果特征和后验软修正,提升分布式数据库CI中故障三重效率与可靠性,实验验证其在生产环境中的有效性。

摘要:

在分布式数据库持续集成中,故障三重对于保持效率和可靠性至关重要。在观察到故障后,操作员必须快速决定是否自动重新运行作业作为可能的故障性或升级为可能的持续性故障,通常在仅CPU的毫秒预算下。现有方法在部署时仍存在困难,因为它们可能依赖于故障后的艺术制品,产生在 telemetry 和工作负载变化下的校准不佳的分数,或从有限重新运行策略生成的标签中学习。为了解决这些挑战,我们提出了SCOUT,一个实用的、状态感知的因果在线不确定性校准三重框架。SCOUT仅使用严格因果特征,包括故障前的 telemetry 和严格的历史数据,在不前瞻的情况下做出在线决策。具体来说,SCOUT结合了轻量级的状态感知评分和可选的稀疏元数据融合,并应用后验校准以支持在时间和跨域变化下的固定阈值决策,并引入后验软修正以减少由有限重新运行预算引起的标签偏差。我们对包含3,680个标记的故障运行的基准进行了评估,包括462个故障阳性,以及62个 telemetry / context 特征。此外,我们研究了SCOUT在TiDB v7/v8和大型GitHub Actions元数据仅跟踪上的可行性。实验结果证明了其有效性和实用性。我们部署了SCOUT到生产环境中,实现了CPU上的端到端P95延迟为1.17毫秒。

英文摘要:

Flaky failure triage is crucial for keeping distributed database continuous integration (CI) efficient and reliable. After a failure is observed, operators must quickly decide whether to auto-rerun the job as likely flaky or escalate it as likely persistent, often under CPU-only millisecond budgets. Existing approaches remain difficult to deploy in this setting because they may rely on post-failure artifacts, produce poorly calibrated scores under telemetry and workload shifts, or learn from labels generated by finite rerun policies. To address these challenges, we present SCOUT, a practical state-aware causal online uncertainty-calibrated triage framework for distributed database CI. SCOUT uses only strict-causal features, including pre-failure telemetry and strictly historical data, to make online decisions without lookahead. Specifically, SCOUT combines lightweight state-aware scoring with optional sparse metadata fusion, applies post-hoc calibration to support fixed-threshold decisions across temporal and cross-domain shifts, and introduces a posterior-soft correction to reduce label bias induced by finite rerun budgets. We evaluated SCOUT on a benchmark of 3,680 labeled failed runs, including 462 flaky positives, and 62 telemetry/context features. Further, we studied the feasibility of SCOUT on TiDB v7/v8 and a large GitHub Actions metadata-only trace. The experimental results demonstrated its effectiveness and usefulness. We deployed SCOUT in the production environment, achieving an end-to-end P95 latency of 1.17 ms on CPU.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑