LCL+: a Lock Chain Length-based Distributed Deadlock Detection and Resolution Service Built for OceanBase
The problem of deadlock detection and resolution in database systems has been studied for decades. Although it has long been a mature feature of classical centralized database systems for many years, its use in distributed database systems remains in its infancy. A simple and fully distributed deadlock detection and resolution algorithm was proposed by Don P. Mitchell and Michael J. Merritt ( M&M ), but its assumption that each process waits for only one resource at a time prevents it from being generally applicable. The distributed deadlock detection algorithm based on Lock Chain Length (LCL) surpasses the limitations of the M&M algorithm. However, it is less effective in quickly detecting deadlocks that encompass both distributed and local deadlocks. In this article, we introduce LCL + , an advanced and universally applicable algorithm specifically designed for the detection and resolution of resource deadlocks in distributed environments. This algorithm improves the efficiency of identifying distributed deadlocks by accelerating the detection of hybrid deadlocks. Our extensive experiments demonstrate that LCL + significantly outperforms its predecessor, LCL, in efficiency. In addition, it has been successfully implemented in the OceanBase distributed relational database system. Detailed analyses from multiple perspectives within OceanBase confirm that LCL + significantly improves the system’s scalability and ensures the provision of high-quality service.
Authors
- Xuwang Teng (ORCID: https://orcid.org/0009-0000-2754-0478)
- Daokun Hu (ORCID: https://orcid.org/0009-0002-5538-0517)
- Fusheng Han (ORCID: https://orcid.org/0009-0000-2900-0109)
- Quanqing Xu (ORCID: https://orcid.org/0000-0001-8989-9662)
- Zhenkun Yang (ORCID: https://orcid.org/0009-0009-9993-4244)
- Chen Qian (ORCID: https://orcid.org/0009-0002-7303-8950)
- Fanyu Kong (ORCID: https://orcid.org/0009-0002-8911-8533)
Institutions
- China Ocean Shipping (China) (CN)
- Ocean Energy (Norway) (NO)
Publication Details
- Journal
- ACM Transactions on Computer Systems
- Published
- 2025-10-03
- DOI
- https://doi.org/10.1145/3768621
- Primary Topic
- Distributed systems and fault tolerance
- Type
- article
- Field-Weighted Citation Impact
- 0.00