We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RaftActor
RequestVote(lastLogIndex < log.lastLogIndex, lastLogTerm > log.lastLogTerm, ...)
From the Raft thesis (https://github.com/ongardie/dissertation) section 3.6.1 (Election Restriction), RaftActor should accept RequestVote(lastLogIndex < log.lastLogIndex, lastLogTerm > log.lastLogTerm).
RequestVote(lastLogIndex < log.lastLogIndex, lastLogTerm > log.lastLogTerm)
The following is expected:
* RequestVote.lastLogTerm < log.lastLogTerm: deny * RequestVote.lastLogTerm > log.lastLogTerm: * RequestVote.lastLogIndex > log.lastLogIndex: accept * RequestVote.lastLogIndex = log.lastLogIndex: accept * RequestVote.lastLogIndex < log.lastLogIndex: accept * RequestVote.lastLogTerm = log.lastLogTerm: * RequestVote.lastLogIndex > log.lastLogIndex: accept * RequestVote.lastLogIndex = log.lastLogIndex: accept * RequestVote.lastLogIndex < log.lastLogIndex: deny
The current implementations are the following:
akka-entity-replication/src/main/scala/lerna/akka/entityreplication/raft/Leader.scala
Lines 47 to 51 in c87ff6b
akka-entity-replication/src/main/scala/lerna/akka/entityreplication/raft/Candidate.scala
Lines 60 to 64 in c87ff6b
akka-entity-replication/src/main/scala/lerna/akka/entityreplication/raft/Follower.scala
Lines 48 to 50 in c87ff6b
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
From the Raft thesis (https://github.com/ongardie/dissertation) section 3.6.1 (Election Restriction),
RaftActor
should acceptRequestVote(lastLogIndex < log.lastLogIndex, lastLogTerm > log.lastLogTerm)
.The following is expected:
The current implementations are the following:
akka-entity-replication/src/main/scala/lerna/akka/entityreplication/raft/Leader.scala
Lines 47 to 51 in c87ff6b
akka-entity-replication/src/main/scala/lerna/akka/entityreplication/raft/Candidate.scala
Lines 60 to 64 in c87ff6b
akka-entity-replication/src/main/scala/lerna/akka/entityreplication/raft/Follower.scala
Lines 48 to 50 in c87ff6b
The text was updated successfully, but these errors were encountered: