ktoso / akka-raft

A toy project implementing RAFT on top of Akka Cluster (not prod ready)
http://blog.project13.pl
Apache License 2.0
280 stars 42 forks source link

Candidate should check term in VoteCandidate messages #46

Open schuster opened 9 years ago

schuster commented 9 years ago

Candidates currently don't check that a VoteCandidate message comes from a server in the expected term. This could allow a candidate to be elected by votes from a previous term whose delivery was severely delayed.

colin-scott commented 9 years ago

In fact, I have a test case that appears to trigger that behavior.