baidu / braft

An industrial-grade C++ implementation of RAFT consensus algorithm based on brpc, widely used inside Baidu to build highly-available distributed systems.
Apache License 2.0
3.86k stars 865 forks source link

lock issue #408

Closed CkTD closed 1 month ago

CkTD commented 1 year ago

https://github.com/baidu/braft/blob/e32b78a1f4973534aaa047dc2ead9167ec091b56/src/braft/replicator.cpp#L712-L751

block timer 中,723行 这个分枝返回之前没有 unlock id,如果走到了似乎会把 replicator 卡死?

ergesun commented 1 month ago

目测这里 fix 了:https://github.com/baidu/braft/pull/430