Commit Graph

28 Commits (faeaa88410a8164412a9d3fb2fb679dc43941a3b)

Author SHA1 Message Date
Ben Johnson faeaa88410 Clean up Peer.flush(). 2013-06-25 15:41:42 -06:00
Ben Johnson b80b7c5a62 Add debug mode. 2013-06-25 14:11:48 -06:00
Xiang Li 00fb080e7c add comments and gofmt 2013-06-24 09:52:51 -07:00
Xiang Li 2bc38456cb fix issues, further cleaning is needed 2013-06-23 20:41:43 -07:00
Xiang Li d8884cbbea change the do struct and add commit center 2013-06-23 11:42:31 -07:00
Xiang Li 5bef65699c when the leader fails in during the collecting response phase, let it step down 2013-06-13 11:03:32 -07:00
Xiang Li f294f3cb9d fix snapshot 2013-06-12 09:47:48 -07:00
Xiang Li 3b73c41286 election new leader and rejoin works 2013-06-11 15:30:13 -07:00
Xiang Li 094e77f624 use heartbeat to flush the new command in do() function and keep the response result in the log entry 2013-06-08 22:39:50 -07:00
Ben Johnson 769a5ed6a1 go fmt 2013-06-07 22:19:18 -04:00
Xiang Li f15cadeffd add snapshot unit test 2013-06-05 20:25:17 -07:00
Xiang Li 842aa1a0ad fix issues (https://github.com/benbjohnson/go-raft/pull/19) 2013-06-05 10:38:49 -07:00
Xiang Li c0e1613eaa clean the codes 2013-06-04 22:56:59 -07:00
Xiang Li 32729ef871 solve conflicts 2013-06-04 17:22:09 -07:00
Xiang Li 3a6fc7bee4 add log-compaction 2013-06-04 17:02:45 -07:00
Ben Johnson 8efbb1535e Fix peer timer race condition. 2013-06-04 09:35:43 -04:00
Ben Johnson c544519c7c Fix timer race condition. 2013-06-03 19:16:50 -04:00
Xiang Li d0dfd4a428 scratch log-compaction 2013-06-03 14:58:12 -07:00
Ben Johnson 147d3c5dd8 Switch to use Transporter interface. 2013-05-28 15:57:38 -04:00
Ben Johnson 9e8834448a Remove join command. Fix race condition. 2013-05-28 14:46:27 -04:00
Ben Johnson 49f3a13fbc Fix commit log index update. 2013-05-10 21:54:25 -06:00
Ben Johnson 2efa6b4107 Fix command serialization issues. 2013-05-10 08:47:24 -06:00
Ben Johnson ea99db0386 Fix log entry serialization. 2013-05-08 14:22:08 -06:00
Ben Johnson f3441b8bfb Add multi-node failure with re-election test. 2013-05-05 15:41:55 -06:00
Ben Johnson 9de292c636 Add heartbeat timer. 2013-05-05 14:26:04 -06:00
Ben Johnson ef423e8ad5 Add multi-node join. 2013-05-05 13:36:23 -06:00
Ben Johnson e0f86056d5 Add election timer. 2013-04-28 15:23:21 -06:00
Ben Johnson 66357ed93c Intermediate. 2013-04-27 22:51:17 -06:00