arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2003.10554cs.DBcs.DC
收藏

Elle:从实验观察推断隔离异常

Elle: Inferring Isolation Anomalies from Experimental Observations

Kyle Kingsbury, Peter Alvaro

摘要:

关心数据的用户将数据存储在数据库中,这(至少在原则上)保证了某种形式的事务隔离。然而,经验表明[Kleppmann 2019,Kingsbury and Patella 2019 a],许多数据库并不提供他们声称的隔离保证。随着最近新的分布式数据库的激增,对检查器的需求已经增长,该检查器可以通过生成客户端工作负载和注入故障来产生见证违反所述保证的异常。一个理想的检查器应该是健全的(没有误报),高效的(历史长度和并发性的多项式),有效的(在真实的数据库中发现违规行为),通用的(分析许多交易模式)和信息丰富的(用可理解的反例证明异常的存在)。遗憾的是,我们没有意识到满足这些目标的跳棋。我们提出了Elle:一种新的检查器,它推断出客户端观察到的事务之间的Adya风格的依赖图。它通过在生成历史时仔细选择数据库对象和操作来做到这一点,以确保数据库读取的结果揭示有关其版本历史的信息。Elle可以检测Adya等人的形式主义中的每一个异常[Adya et al. 2000](除了谓词),区分它们,并对每一个提供简洁的解释。本文作出了以下贡献:我们介绍了Elle,证明其合理性,衡量其效率对目前的最先进的,并通过四个真正的数据库的案例研究,其有效性的证据。

英文摘要:

Users who care about their data store it in databases, which (at least in principle) guarantee some form of transactional isolation. However, experience shows [Kleppmann 2019, Kingsbury and Patella 2019a] that many databases do not provide the isolation guarantees they claim. With the recent proliferation of new distributed databases, demand has grown for checkers that can, by generating client workloads and injecting faults, produce anomalies that witness a violation of a stated guarantee. An ideal checker would be sound (no false positives), efficient (polynomial in history length and concurrency), effective (finding violations in real databases), general (analyzing many patterns of transactions), and informative (justifying the presence of an anomaly with understandable counterexamples). Sadly, we are aware of no checkers that satisfy these goals. We present Elle: a novel checker which infers an Adya-style dependency graph between client-observed transactions. It does so by carefully selecting database objects and operations when generating histories, so as to ensure that the results of database reads reveal information about their version history. Elle can detect every anomaly in Adya et al's formalism [Adya et al. 2000] (except for predicates), discriminate between them, and provide concise explanations of each. This paper makes the following contributions: we present Elle, demonstrate its soundness, measure its efficiency against the current state of the art, and give evidence of its effectiveness via a case study of four real databases.

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

↑