eBay / NuRaft

C++ implementation of Raft core logic as a replication library
Apache License 2.0
996 stars 236 forks source link

deadblock #445

Closed xmokay closed 1 year ago

xmokay commented 1 year ago
  1. use raft_params::return_method_type::blocking;
  2. start three node
  3. leader start new thread to append_entries.
  4. kill two follower
  5. wait leader become follower
  6. start a follower node result: follower can't join the cluster, and sometime old leader crash.
xmokay commented 1 year ago

The problem has been resolved. It was caused by the fact that I was destroying the write thread in the become_follower callback function.