Closed ghost closed 5 years ago
上图中为啥会有votedfor 0.0.0.0:0:0 这个 PeerId?
上图中为啥会有votedfor 0.0.0.0:0:0 这个 PeerId?
0.0.0.0:0:0这个是节点在提升term时会有一个step_down过程,重置投票信息。 你这里candidate一直没选主成功,可能是因为log的问题,但提供的日志有限,还不能确认。 建议把raft_step_down_when_vote_timedout设为true,可以解决极端case下vote反复失败无法选主的问题