Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

All nodes should transition to Follower if term > currentTerm #52

Open
colin-scott opened this issue Aug 1, 2015 · 1 comment
Open
Milestone

Comments

@colin-scott
Copy link
Contributor

From the raft paper:

• If RPC request or response contains term T > currentTerm:
set currentTerm = T, convert to follower (§5.1)

This is not implemented in all of the akka-raft states for all messages. It does seem to be implemented for AppendEntries (Follower, Leader, Candidate) but there are still three remaining issues:

  • It is not implemented for other message types.
  • Upon receiving AppendEntries from a higher term in Candidate state, the actor does convert to Follower state, but it does not update its Term
  • Upen receiving AppendEntries from a higher term in Leader state, the actor does convert to Follower state, but it does not update its Term
@colin-scott
Copy link
Contributor Author

This issue is distinct from #46. #46 is the opposite condition:

if term < currentTerm: 
  ignore

@ktoso ktoso modified the milestone: 1.0 Aug 9, 2015
@colin-scott colin-scott mentioned this issue Aug 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants