使用框架抽象的Apache Spark高效模糊测试
Efficient Fuzz Testing for Apache Spark Using Framework Abstraction
摘要:
新兴的数据密集型应用程序越来越依赖于数据密集型可扩展计算(DISC)系统,如Apache Spark,以处理大数据。尽管它们很受欢迎,但DISC应用程序很难测试。近年来,模糊测试取得了显著的成功;然而,将这种传统模糊测试直接应用于大数据分析并非易事,因为:(1)DISC系统的长延迟禁止了模糊测试的适用性,以及(2)常规分支覆盖不太可能从DISC框架实现中识别应用逻辑。我们设计了一种新的模糊测试工具BigFuzz,它可以自动为Apache Spark程序的输入生成具体的数据。我们的方法的关键本质是,我们抽象的可执行规范的DISC框架的可执行的行为,我们设计的模式感知突变的基础上,在DISC应用程序中常见的错误类型。我们的实验表明,与随机模糊相比,BigFuzz能够将模糊时间加快1477倍,将应用程序代码覆盖率提高271%,并在检测应用程序错误方面实现157%的提高。BigFuzz的演示视频可在https://www.youtube.com/watch?上获得v=YvYQISILQHs&feature= youtu.be.
英文摘要:
The emerging data-intensive applications are increasingly dependent on data-intensive scalable computing (DISC) systems, such as Apache Spark, to process large data. Despite their popularity, DISC applications are hard to test. In recent years, fuzz testing has been remarkably successful; however, it is nontrivial to apply such traditional fuzzing to big data analytics directly because: (1) the long latency of DISC systems prohibits the applicability of fuzzing, and (2) conventional branch coverage is unlikely to identify application logic from the DISC framework implementation. We devise a novel fuzz testing tool called BigFuzz that automatically generates concrete data for an input Apache Spark program. The key essence of our approach is that we abstract the dataflow behavior of the DISC framework with executable specifications and we design schema-aware mutations based on common error types in DISC applications. Our experiments show that compared to random fuzzing, BigFuzz is able to speed up the fuzzing time by 1477X, improves application code coverage by 271%, and achieves 157% improvement in detecting application errors. The demonstration video of BigFuzz is available at https://www.youtube.com/watch?v=YvYQISILQHs&feature=youtu.be.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。