benbjohnson / thesecretlivesofdata

Understanding what your bits do when you're not looking.
MIT License
3.4k stars 322 forks source link

raft: on network partition, the term is not incremented on new leader election #17

Open vincentbernat opened 9 years ago

vincentbernat commented 9 years ago

Hi!

On the last example, when a partition occurs, the current leader was elected on term 2. The new leader should be elected on term 3. However, it seems to be elected on term 2.

naman commented 6 years ago

Yes, I have a similar doubt. How does the minority leader (B) give back the leader position? Is it because it has uncommitted logs (unable to distribute to the majority) or something else entirely. The vizualization says that (minority leader) B loses the leader position since the cluster's term leader has a higher term value (what does this mean?). I haven't read the paper yet, please forgive me if I am asking a very trivial thing.

voteit-top commented 2 years ago

visit raft.github.io, that demo will make you clear.