sofastack / sofa-jraft

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

集群重启,节点在状态机回放未完成时当选leader #897

Closed LinHuiG closed 1 year ago

LinHuiG commented 2 years ago

Your question

整个集群重启,有节点状态机日志回放未完成便当选leader,请问有什么配置可以让节点把日志回放完成后再启动选举

Your scenes

Describe your use scenes (why need this feature)

Your advice

Describe the advice or solution you'd like

Environment

killme2008 commented 1 year ago

当选 leader 并不需要等待 commit 日志回放到 state machine 完成,不知道是什么需求要求这样?

killme2008 commented 1 year ago

没有进一步的反馈先关闭了。