Jiawang li

Results 3 comments of Jiawang li

in my situation, this is caused by the `**rw_timeout**` is too small. the problem disappeared when i set the value `grabber.setOption("rw_timeout", "1000000");` or bigger .

在小的分区中,会一直发送选举,term也会一直增加。当分区恢复后由于出现很大的term会进行新的选举,但是由于lastLogTerm和lastLogIndex的限制,一开始很大的节点无法当选leader,只会让其他节点更新term,在随机时间后开始新的选举直到出现符合条件的leader当选。最后进开始一致性检查,同步小分区内的日志。