Commit History

Autor SHA1 Mensaxe Data
  Jing Yang d63a5f1dcd Minor refactor: election_time returns an Instant. %!s(int64=5) %!d(string=hai) anos
  Jing Yang eed4e569f4 Reset the step counter when append entries succeeded. %!s(int64=5) %!d(string=hai) anos
  Jing Yang cb7e82a666 Fix a race condition when killing the election timer. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 599f453c6e Set leader_id when elected. %!s(int64=5) %!d(string=hai) anos
  Jing Yang d7d18284fa Add the figure-8, unreliable test, and a serious bug fix. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 93d36abc85 Add persister to lib, and tests. %!s(int64=5) %!d(string=hai) anos
  Jing Yang fa74454870 Implement persister. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 62a468ee3b Add the basic agreement tests, fixed bugs. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 6c6afbcde0 Fix step size overflow. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 144224d107 Fix shutdown procedure. %!s(int64=5) %!d(string=hai) anos
  Jing Yang ac213f6d53 Reserve vec with certain size instead of capacity. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 1f41b2dae0 Correct is_leader check in append_entries and heartbeat. %!s(int64=5) %!d(string=hai) anos
  Jing Yang e7fa862b50 Fix the timer never fires bug. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 94ce80a793 Allow debugging all structs. %!s(int64=5) %!d(string=hai) anos
  Jing Yang d637710470 Check one leader fails at initial election test. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 3975600a33 Initial election test skeleton. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 163b55487d Refactor: using drop instead of scope. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 275d0bedda More clippy changes. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 22fc247173 Use WaitGroup instead of Barrier to implement shutdown. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 8aee179c10 Add a stop barrier. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 8fb61b2fd0 Implement start() and kill() %!s(int64=5) %!d(string=hai) anos
  Jing Yang 3c225e7891 Lots of clippy changes. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 1ba58689f2 Cancel the election if timer was changed more than once. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 25e1c30f5c Remove timer once fired. %!s(int64=5) %!d(string=hai) anos
  Jing Yang e10b6ce01f More refactor and more comments. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 75806c9ee0 Refactor the timer thread. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 18a98f3c27 Implement a timer version number for consistency. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 69653dc5c8 Implement an election timer. %!s(int64=5) %!d(string=hai) anos
  Jing Yang 297ef1a2cf Implement the initialization logic. %!s(int64=5) %!d(string=hai) anos
  Jing Yang cf6b4dd415 Fix a few unused warnings. %!s(int64=5) %!d(string=hai) anos