1. 11 Apr, 2018 1 commit
  2. 07 Mar, 2018 2 commits
    • Yossi Gottlieb's avatar
      Ignore RequestVote when leader is established. · 6cac5767
      Yossi Gottlieb authored
      This behavior is described in the original Raft paper and is required to
      prevent removed nodes from disrupting the cluster.
      
      This causes other problems though, as a split node may trigger election
      which is rejected but leaves it with a future term.  The generally
      accepted solution for this appears to be the use of PreVote RPC to avoid
      election that can never succeed.
      6cac5767
    • Yossi Gottlieb's avatar
      Remove duplicate raft_get_last_applied_entry(). · 5e3cde59
      Yossi Gottlieb authored
      This fails the fuzzer tests.
      5e3cde59
  3. 04 Mar, 2018 2 commits
    • Yossi Gottlieb's avatar
      Add a per-entry custom user data field. · 519d47ad
      Yossi Gottlieb authored
      This is useful to allow leaders to pass context between
      raft_recv_entry() and a subsequent execution of the entry (after it was
      committed) as an applylog callback.
      
      This allows an optimized use pattern when entries received locally on
      the leader can be used without going through an unnecessary
      deserialization.
      519d47ad
    • Yossi Gottlieb's avatar
      Add custom heap management hooks. · b4430b25
      Yossi Gottlieb authored
      b4430b25
  4. 09 Jan, 2018 2 commits
  5. 08 Jan, 2018 4 commits
  6. 29 Dec, 2017 2 commits
  7. 21 Nov, 2017 13 commits
  8. 20 Nov, 2017 4 commits
  9. 22 Jun, 2017 1 commit
  10. 21 Jun, 2017 2 commits
    • Willem Thiart's avatar
      Fixes #41 · 9651a97f
      Willem Thiart authored
      Second if statement was redundant.
      9651a97f
    • Willem Thiart's avatar
      Fixes #40 · 883d0d24
      Willem Thiart authored
      raft_send_requestvote and raft_send_appendentries now return proper
      error codes.
      883d0d24
  11. 20 Jun, 2017 1 commit
    • Willem Thiart's avatar
      Fixes #37 · 3e011ae2
      Willem Thiart authored
      Avoid deleting logs because of out-of-order/quick heartbeats.
      3e011ae2
  12. 30 May, 2017 1 commit
  13. 24 May, 2017 1 commit
    • Willem Thiart's avatar
      Fixes #35 · 9bdf41b5
      Willem Thiart authored
      Avoid for loop to increase performance when tallying votes for
      committing.
      9bdf41b5
  14. 09 May, 2017 1 commit
    • Willem Thiart's avatar
      Change: code now assumes callbacks are provided · c3443aac
      Willem Thiart authored
      Beforehand there were if statements to check if callbacks were provided
      by the user. This was only useful for making the test suites shorter.
      These if statements have been removed so that the core code is more
      concise.
      c3443aac
  15. 25 Oct, 2016 2 commits
  16. 20 Oct, 2016 1 commit