[Question] About term behaviors

41 views
Skip to first unread message

yihao yang

unread,
Mar 20, 2018, 3:14:29 PM3/20/18
to raft-dev
Hi, guys.

I am thinking if it is possible that:
1. after becoming a candidate, only increase the CurrentTerm once and always use this term to RequestVote until getting a larger Term from other replicas.
2. do not serialize the CurrentTerm to disk until voting to someone. (which means candidate do not serialize new CurrentTerm to disk.)

Anyone knows the side effect of doing this? (The paper said every time an election timeout will lead the CurrentTerm to increase and serialize it to disk every time the CurrentTerm changes.)

Thanks,
Yihao

jordan.h...@gmail.com

unread,
Mar 20, 2018, 4:42:48 PM3/20/18
to raft...@googlegroups.com
The problem is that nodes can only grant their vote once per term, so if two nodes became candidates for the same term and a split vote occurred, without incrementing the term again you’d basically end up with a permanent split vote and nobody would ever be elected leader.
--
You received this message because you are subscribed to the Google Groups "raft-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages