A Method of Test Case Set Generation in the Commutativity Test of Reduce Functions

Xiangyu Mu,Lei Liu,Peng Zhang,Jingyao Li,Hui Li
DOI: https://doi.org/10.1016/j.scico.2023.103006
IF: 1.039
2024-01-01
Science of Computer Programming
Abstract:MapReduce framework has become one of the more popular big data processing frameworks. In the MapReduce framework, the test of the commutativity problem of the reduce function may take a lot of time and space. The aim of this study is to reduce the size of the test case set required to detect the commutativity problem of the reduce function when the initial test cases are available. With the initial test case as input, this method will determine the pattern of the function according to the information when the function is running, and select the corresponding test case according to the characteristics of each pattern to generate the subsequent test case set. Experiments on 170 reduce functions can verify that the test case set generated by our method is effective when testing the commutativity of reduce functions. And compared with the existing test case generation strategy, our method can have a smaller test case set to achieve the same accuracy. When detecting the commutativity of reduce functions, the test case set generation strategy we proposed can detect the commutativity of functions with a smaller test scale, and has a high recall.
What problem does this paper attempt to address?