Randomized Testing of Distributed Systems with Probabilistic Guarantees

被引:15
|
作者
Ozkan, Burcu Kulahcioglu [1 ]
Majumdar, Rupak [1 ]
Niksic, Filip [1 ]
Befrouei, Mitra Tabaei [2 ]
Weissenbacher, Georg [2 ]
机构
[1] Max Planck Inst Software Syst MPI SWS, Paul Ehrlich Str 26, D-67663 Rheinland Pfalz, Germany
[2] Vienna Univ Technol, Vienna, Austria
基金
奥地利科学基金会; 欧洲研究理事会;
关键词
distributed systems; random testing; hitting families; partially ordered sets; online chain partitioning;
D O I
10.1145/3276530
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Several recently proposed randomized testing tools for concurrent and distributed systems come with theoretical guarantees on their success. The key to these guarantees is a notion of bug depthDthe minimum length of a sequence of events sufficient to expose the bugDand a characterization of d-hitting families of schedulesDa set of schedules guaranteed to cover every bug of given depth d. Previous results show that in certain cases the size of a d-hitting family can be significantly smaller than the total number of possible schedules. However, these results either assume shared-memory multithreading, or that the underlying partial ordering of events is known statically and has special structure. These assumptions are not met by distributed message-passing applications. In this paper, we present a randomized scheduling algorithm for testing distributed systems. In contrast to previous approaches, our algorithm works for arbitrary partially ordered sets of events revealed online as the program is being executed. We show that for partial orders of width at most w and size at most n (both statically unknown), our algorithm is guaranteed to sample from at most w(2)n(d-1) schedules, for every fixed bug depth d. Thus, our algorithm discovers a bug of depth d with probability at least 1/(w(2)n(d-1)). As a special case, our algorithm recovers a previous randomized testing algorithm for multithreaded programs. Our algorithm is simple to implement, but the correctness arguments depend on difficult combinatorial results about online dimension and online chain partitioning of partially ordered sets. We have implemented our algorithm in a randomized testing tool for distributed message-passing programs. We show that our algorithm can find bugs in distributed systems such as Zookeeper and Cassandra, and empirically outperforms naive random exploration while providing theoretical guarantees.
引用
收藏
页数:28
相关论文
共 50 条
  • [31] Testing of symbolic-probabilistic systems
    López, N
    Núñez, M
    Rodríguez, I
    [J]. FORMAL APPROACHES TO SOFTWARE TESTING, 2005, 3395 : 49 - 63
  • [32] Architectures for testing distributed systems
    Ulrich, A
    König, H
    [J]. TESTING OF COMMUNICATING SYSTEMS: METHODS AND APPLICATIONS, 1999, 21 : 93 - 108
  • [33] A framework for testing distributed systems
    Hughes, D
    Greenwood, P
    Coulson, G
    [J]. FOURTH INTERNATIONAL CONFERENCE ON PEER-TO-PEER COMPUTING, PROCEEDINGS, 2004, : 262 - 263
  • [34] On the Expressive Power of Schedulers in Distributed Probabilistic Systems
    Giro, Sergio
    D'Argenio, P. R.
    [J]. ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2009, 253 (03) : 45 - 71
  • [35] Using schedulers to test probabilistic distributed systems
    Hierons, Robert M.
    Nunez, Manuel
    [J]. FORMAL ASPECTS OF COMPUTING, 2012, 24 (4-6) : 679 - 699
  • [36] Probabilistic reasoning in distributed diagnosis for qualitative systems
    Su, R
    Wonham, WM
    [J]. PROCEEDINGS OF THE 41ST IEEE CONFERENCE ON DECISION AND CONTROL, VOLS 1-4, 2002, : 429 - 434
  • [37] PROBABILISTIC CLOCK SYNCHRONIZATION IN LARGE DISTRIBUTED SYSTEMS
    OLSON, A
    SHIN, KG
    [J]. IEEE TRANSACTIONS ON COMPUTERS, 1994, 43 (09) : 1106 - 1112
  • [38] On Delivery Guarantees in Distributed Content-Based Publish/Subscribe Systems
    Salehi, Pooya
    Zhang, Kaiwen
    Jacobsen, Hans-Arno
    [J]. PROCEEDINGS OF THE 2020 21ST INTERNATIONAL MIDDLEWARE CONFERENCE (MIDDLEWARE '20), 2020, : 61 - 73
  • [39] A majority voting classifier with probabilistic guarantees
    Manganini, Giorgio
    Falsone, Alessandro
    Prandini, Maria
    [J]. 2015 IEEE CONFERENCE ON CONTROL AND APPLICATIONS (CCA 2015), 2015, : 1084 - 1089
  • [40] Testing Self-Adaptive Software With Probabilistic Guarantees on Performance Metrics: Extended and Comparative Results
    Mandrioli, Claudio
    Maggio, Martina
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (09) : 3554 - 3572