计算机科学 ›› 2026, Vol. 53 ›› Issue (11A): 250900170-783.doi: 10.11896/jsjkx.250900170

• 大数据&数据科学 • 上一篇    下一篇

DBD:面向大数据系统的死锁分类与分布调查

禹振, 向程冠, 左欣   

  1. 贵州师范学院数学与大数据学院 贵阳 550018
  • 出版日期:2026-11-16 发布日期:2026-11-16
  • 通讯作者: 禹振(yuzhen_3301@aliyun.com)
  • 基金资助:
    贵州省教育厅青年项目(黔教合KY字[2021]248);贵州省科技厅项目(黔科合人才KJZY[2025]044)

DBD:Investigation on Classification and Distribution for Deadlocks in Big Data Systems

YU Zhen, XIANG Chengguan, ZUO Xin   

  1. School of Mathematics and Big Data,Guizhou Education University,Guiyang 550018,China
  • Published:2026-11-16 Online:2026-11-16
  • About author:YU Zhen,born in 1986,Ph.D,associate professor.His main research interests include program analysis,concurrency bug detection,avoidance and repair.
  • Supported by:
    This work was supported by the Youth Program of the Education Foundation of Guizhou Province(QianJiaoHeKYZi[2021]248) and Guizhou Provincial Science and Technology Program(QianKeHeRenCaiKJZY[2025]044).

摘要: 大数据系统通常高度并发并行运行,因此容易发生死锁等并发缺陷。现有研究关注这些死锁的触发条件和修复措施,但并没有调查它们的类型分类与类型分布。文中从6个具有代表性的大数据系统中搜集了102个标记为“死锁”的缺陷,随机选取其中34个进行深入分析,根据一般死锁的定义理解它们的发生过程并识别它们的滋生范围与构成要素,在此基础上给出面向大数据系统的6类细化死锁的定义,即本地资源死锁、本地通信死锁、本地混合死锁、分布式资源死锁、分布式通信死锁和分布式混合死锁,并列出每类细化死锁的典型实例。在剔除4个不符合死锁定义的缺陷后,统计剩余30个死锁缺陷在6类细化死锁上的分布和占比,结果为本地资源死锁16/53.34%、本地通信死锁6/20.00%、本地混合死锁6/20.00%、分布式资源死锁0/0.00%、分布式通信死锁1/3.33%和分布式混合死锁1/3.33%,也即本地死锁与分布式死锁的数量/占比分别为28/93.34%和2/6.66%。根据这30个死锁缺陷及其发生描述和分类结果构建公开数据库DBD,以促进对大数据系统中死锁缺陷的理解、测试、检测和修复研究。

关键词: 本地死锁, 分布式死锁, 本地并发缺陷, 分布式并发缺陷, 缺陷调查, 缺陷理解, 分布式系统, 大数据系统

Abstract: Big data systems often run in high concurrency and parallelism,making them susceptible to concurrency bugs such as deadlocks.Existing researches have focused on triggering conditions and repair strategies for these deadlocks but have not investigated their type classification and distribution.This paper collects 102 defects labeled as “deadlock” or “dead lock” from six representative big data systems and randomly selects 34 of them for in-depth analysis.Based on the general definition of deadlocks,it tries to understand their occurrence processes and identifies their breeding scopes and constituent elements.On this basis,it proposes six refined deadlock types specific to big data systems,namely local resource deadlock,local communication deadlock,local hybrid deadlock,distributed resource deadlock,distributed communication deadlock and distributed hybrid deadlock,along with typical examples for each type.After excluding four bugs that did not meet the deadlock definition,it analyzes the distribution and proportion of the remaining 30 deadlock bugs over the six refined deadlock types.The results are as follows:local resource deadlock 16/53.34%,local communication deadlock 6/20.00%,local hybrid deadlock 6/20.00%,distributed resource deadlock 0/0.00%,distributed communication deadlock 1/3.33% and distributed hybrid deadlock 1/3.33%.Overall,local deadlocks and distributed deadlocks respectively account for 28/93.34% and 2/6.66%.Based on these 30 deadlock bugs,their detailed descriptions about how they happen and their classification results,a public database called DBD namely "Deadlocks in Big Data systems" has been constructed to promote understanding,testing,detecting and repairing deadlock bugs in big data systems.

Key words: Local deadlocks, Distributed deadlocks, Local concurrency bugs, Distributed concurrency bugs, Bug investigation, Bug comprehension, Distributed systems, Big data systems

中图分类号: 

  • TP311
[1] SARASWAT J K,CHOUDHARI S.Integrating big data andcloud computing into the existing system and performance impact:a case study in manufacturing[J].Technological Forecasting and Social Change,2025,210:123883.
[2] CHEN Y,MA F,ZHOU Y,et al.Chronos:finding timeout bugs in practical distributed systems by deep-priority fuzzing with transient delay[C]//2024 IEEE Symposium on Security and Privacy.IEEE Computer Society,2024:1939-1955.
[3] GULCAN E B,NETO J,OZKAN B K.Generalized concurrency testing tool for distributed systems[C]//33rd ACM SIGSOFT International Symposium on Software Testing and Analysis.ACM,2024:1861-1865.
[4] WU H,PAN J,HUANG P.Efficient exposure of partial failure bugs in distributed systems with inferred abstract states[C]//21st USENIX Symposium on Networked Systems Design and Implementation.USENIX,2024:1267-1283.
[5] LI J,ZHANG Y,LU S,et al.Performance bug analysis and detection for distributed storage and computing systems[J].ACM Transactions on Storage,2023,19(3):1-33.
[6] QIAN S,FAN W,TAN L,et al.Vicious cycles in distributedsoftware systems[C]//38th International Conference on Automated Software Engineering.IEEE,2023:91-103.
[7] LU J,LI F,LIU C,et al.CloudRaid:detecting distributed concurrency bugs via log mining and enhancement[J].IEEE Transactions on Software Engineering,2020,48(2):662-677.
[8] HE J,DAI T,GU X,et al.HangFix:automatically fixing software hang bugs for production cloud systems[C]//11th ACM Symposium on Cloud Computing.ACM,2020:344-357.
[9] LU J,CHEN L,LI L,et al.Understanding node change bugs for distributed systems[C]//26th International Conference on Software Analysis,Evolution and Reengineering.IEEE,2019:399-410.
[10] LI G,LIU H,CHEN X,et al.DFix:automatically fixing timing bugs in distributed systems[C]//40th ACM SIGPLAN Conference on Programming Language Design and Implementation.ACM,2019:994-1009.
[11] LU J,LIU C,LI L,et al.CrashTuner:detecting crash-recovery bugs in cloud systems via meta-info analysis[C]//27th ACM Symposium on Operating Systems Principles.ACM,2019:114-130.
[12] LI J,CHEN Y,LIU H,et al.PCatch:automatically detecting performance cascading bugs in cloud systems[C]//13th European Conference on Computer Systems.ACM,2018:1-14.
[13] LIU H,WANG X,LI G,et al.FCatch:automatically detecting time-of-fault bugs in cloud systems[J].ACM SIGPLAN Notices,2018,53(2):419-431.
[14] LIU H,LI G,LUKMAN J F,et al.DCatch:automatically detecting distributed concurrency bugs in cloud systems[J].ACM SIGARCH Computer Architecture News,2017,45(1):677-691.
[15] SUMINTO R O,LAKSONO A,SATRIA A D,et al.Towards pre-deployment detection of performance failures in cloud distributed systems[C]//7th USENIX Workshop on Hot Topics in Cloud Computing.USENIX,2015:1-7.
[16] CHEN H,DOU W,JIANG Y,et al.Understanding exception-related bugs in large-scale cloud systems[C]//34th International Conference on Automated Software Engineering.IEEE,2019:339-351.
[17] GAO Y,DOU W,QIN F,et al.An empirical study on crash recovery bugs in large-scale distributed systems[C]//26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering.ACM,2018:539-550.
[18] ASADOLLAH A S,SUNDMARK D,ELDH S,et al.Concurrency bugs in open source software:a case study[J].Journal of Internet Services and Applications,2017,8:1-15.
[19] LEESATAPORNWONGSA T,LUKMAN J F,LU S,et al.TaxDC:a taxonomy of non-deterministic concurrency bugs in datacenter distributed systems[C]//21st ACM International Conference on Architectural Support for Programming Languages and Operating Systems.ACM,2016:517-530.
[20] GUNAWI H S,HAO M,LEESATAPORNWONGSA T,et al.What bugs live in the cloud? a study of 3000+ issues in cloud systems[C]//5th ACM Symposium on Cloud Computing.ACM,2014:1-14.
[21] YUAN D,LUO Y,ZHUANG X,et al.Simple testing can prevent most critical failures:an analysis of production failures in distributed data-intensive systems[C]//11th USENIX Symposium on Operating Systems Design and Implementation.USENIX,2014:249-265.
[22] SU X H,YU Z,WANG T T,et al.A survey on exposing,detecting and avoiding concurrency bugs[J].Chinese Journal of Computers,2015,38(11):2215-2233.
[23] LU S,PARK S,SEO E,et al.Learning from mistakes:a comprehensive study on real world concurrency bug characteristicsd[C]//13th International Conference on Architectural Support for Programming Languages and Operating Systems.ACM,2008:329-339.
[24] LI G,LU S,MUSUVATHI M,et al.Efficient and scalablethread-safety violation detection:finding thousands of concurrency bugs during testing[C]//27th ACM Symposium on Operating Systems Principles.ACM,2019:162-180.
[25] CHEN Y,WANG S,LU S,et al.Applying transactional memory for concurrency-bug failure recovery in production runs[J].IEEE Transactions on Parallel and Distributed Systems,2018,30(5):990-1006.
[26] DENG D D,JIN G L,KRUIJF M,et al.Fixing,preventing and recovering from concurrency bugs[J].Science China Information Science,2015,58(5):1-18.
[27] Cassandra[EB/OL].(2009-01-01)[2025-06-01].https://cas-sandra.apache.org/.
[28] Flume[EB/OL].(2009-01-01)[2025-06-01].https://flume.apache.org/.
[29] HBase[EB/OL].(2007-01-01)[2025-06-01].https://hbase.apache.org/.
[30] HDFS[EB/OL].(2014-10-09)[2025-06-01].https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HdfsDesign.html.
[31] Hadoop MapReduce[EB/OL].(2006-01-01)[2025-06-01].ht-tps://hadoop.apache.org/.
[32] ZooKeeper[EB/OL].(2010-01-01)[2025-06-01].https://zookeeper.apache.org/.
[33] Apache JIRA[EB/OL].(2009-01-01)[2025-06-01].https://issues.apache.org/jira/issues/?jql=.
[34] Threads.shutdown[EB/OL].(2007-01-01)[2025-06-01].ht-tps://hbase.apache.org/devapidocs/src-html/org/apache/hadoop/hbase/util/Threads.html#line-93.
[35] ZooKeeper Recipes and Solutions[EB/OL].(2022-05-06)[2025-06-01].https://zookeeper.apache.org/doc/r3.1.2/recipes.html.
[36] Distributed Locks with Redis[EB/OL].(2009-01-01)[2025-06-01].https://redis.io/docs/latest/develop/clients/patterns/distributed-locks/.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!