1. 07 Aug, 2018 1 commit
  2. 20 Jun, 2018 1 commit
  3. 08 Jan, 2018 1 commit
  4. 21 Nov, 2017 3 commits
    • Li Wei's avatar
      DAOS-333 server: Handle storage access errors · 76d56d0c
      Li Wei authored
      
      
      User storage callbacks may return negative errors smaller than
      RAFT_ERR_LAST. These will be returned all the way to the API methods,
      which report the errors back to users, so that appropriate handlings may
      be performed.
      Signed-off-by: default avatarLi Wei <wei.g.li@intel.com>
      76d56d0c
    • Li Wei's avatar
      DAOS-279 server: Zero timeout_elapsed for leaders · 51e049fd
      Li Wei authored
      
      
      If raft_become_candidate() assigns a negative value e (i.e.,
      -election_timeout < e < 0) to timeout_elapsed, and if this replica
      successfully becomes the leader, then this leader won't send heartbeats
      for request_timeout - e milliseconds. This may be longer than
      election_timeout and cause an unnecessary leadership change.
      
      This patch zeroes timeout_elapsed in raft_become_leader(), randomizes
      election timeouts in [election_timeout, 2 * election_timeout), and fixes
      raft_recv_appendentries() to avoid zeroing timeout_elapsed if the AE
      request has an older term.
      Signed-off-by: default avatarLi Wei <wei.g.li@intel.com>
      51e049fd
    • Li Wei's avatar
      DAOS-333 server: Persist term and vote atomically · 854a06d2
      Li Wei authored
      
      
      Remind users' persist_term implementations to persist currentTerm and
      nil votedFor atomically.
      Signed-off-by: default avatarLi Wei <wei.g.li@intel.com>
      854a06d2
  5. 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
  6. 11 Jun, 2016 1 commit
  7. 13 May, 2016 2 commits
  8. 16 Mar, 2016 1 commit
  9. 25 Jan, 2016 1 commit
  10. 20 Dec, 2015 1 commit
  11. 19 Dec, 2015 3 commits
  12. 18 Nov, 2015 2 commits
  13. 13 Nov, 2015 1 commit
  14. 26 Sep, 2015 1 commit
  15. 22 Aug, 2015 1 commit
  16. 14 Aug, 2015 1 commit
  17. 07 Aug, 2015 1 commit
  18. 29 Jul, 2015 1 commit
  19. 01 May, 2015 1 commit
  20. 02 Feb, 2015 1 commit
  21. 28 May, 2014 1 commit
  22. 16 Jan, 2014 1 commit