In the Raft algorithm, the term is always increasing. Is there any good way to solve this problem and prevent the term from reaching the limit in the future? Because I use a term of type tinyint and I don't want to modify the type, there will be a round of elections in a minute, so the term will grow rapidly.
d.Log.Term(d.Log.Term() + 1)
d.Log.State(BeCandidate)
I want to modify term=0 after the follower receives the heartbeat, but this does not work.