sofastack / sofa-jraft

A production-grade java implementation of RAFT consensus algorithm.
https://www.sofastack.tech/projects/sofa-jraft/
Apache License 2.0
3.57k stars 1.14k forks source link

fix: don't block heartbeat response when fsm is busy #969

Closed killme2008 closed 1 year ago

killme2008 commented 1 year ago

Motivation:

Don't block processing heartbeat requests when FSM is busy.

Modification:

When FSM is busy, then don't update the lastCommitIndex at that time. It's fine because the heartbeat requests and append entries requests will keep attaching the latest commit index.

Result:

Fixes #845 #830

LinHuiG commented 1 year ago

这个修复会在下一个稳定版本1.3.14发布吗,1.3.14有计划什么时候发布吗