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

Perfomance issue: should overwrite log entries, even if AppendEntries is empty #80

Open colin-scott opened 8 years ago

colin-scott commented 8 years ago

I think this conditional should not be there:

https://github.com/ktoso/akka-raft/blob/master/src/main/scala/pl/project13/scala/akka/raft/Follower.scala#L118

[a newly elected leader should be able to tell other nodes to delete all contents of their logs]