Commit Graph

39 Commits (2bc38456cbec20f4781ade19d814223981008003)

Author SHA1 Message Date
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 f9ec2ed5eb Minor cleanup. 2013-06-07 22:41:36 -04:00
Ben Johnson 847bf85fc4 Clean up TestTakeAndSendSnapshot test. 2013-06-07 22:37:10 -04:00
Ben Johnson 769a5ed6a1 go fmt 2013-06-07 22:19:18 -04:00
Ben Johnson 3bcf91a39f Merge branch 'master' of https://github.com/xiangli-cmu/go-raft into xiangli-cmu-master
Conflicts:
	log.go
2013-06-07 17:53:27 -04:00
Ben Johnson bb7caaf889 Add RemovePeer(). 2013-06-07 01:58:41 -04:00
Xiang Li 349a1abacc solve conflicts 2013-06-05 20:32:52 -07:00
Ben Johnson 77c63cc1f1 Add error lookup for committed log entries. 2013-06-05 13:57:31 -04: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
Xiang Li d0dfd4a428 scratch log-compaction 2013-06-03 14:58:12 -07:00
Ben Johnson ba9b7739e4 Add Server.LastCommandName(). 2013-06-03 15:13:38 -04:00
Ben Johnson 0d9f1f01ed Clean up API. 2013-06-02 22:43:40 -04:00
Ben Johnson 9e8834448a Remove join command. Fix race condition. 2013-05-28 14:46:27 -04:00
Ben Johnson 2efa6b4107 Fix command serialization issues. 2013-05-10 08:47:24 -06:00
Ben Johnson f5761513bc Add log entry marshaling. 2013-05-09 21:50:57 -06:00
Ben Johnson ea99db0386 Fix log entry serialization. 2013-05-08 14:22:08 -06:00
Ben Johnson 94dda25fe4 Add log entry access for debugging. 2013-05-08 11:00:23 -06:00
Ben Johnson 7521258d0c Fixed minor bugs. 2013-05-07 21:56:32 -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 458c2d9d7c Add simple cluster leader election. 2013-04-30 23:11:23 -06:00
Ben Johnson c8b9d783b7 Add log truncation and AppendEntries overwrite. 2013-04-30 22:44:16 -06:00
Ben Johnson 7106fe616e Test for stale indices. 2013-04-30 20:45:05 -06:00
Ben Johnson 79a0a57995 Add basic append entries test. 2013-04-29 22:13:50 -06:00
Ben Johnson f8148f1cc5 Add log commit info. 2013-04-28 16:36:46 -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
Ben Johnson dcb1abeacd Add Log.SetCommitIndex(). 2013-04-15 22:19:29 -06:00
Ben Johnson c6fd17a0b0 Add log recovery. 2013-04-15 22:02:08 -06:00
Ben Johnson 2ff4241451 Log deserialization. 2013-04-15 20:47:59 -06:00
Ben Johnson 3841bb03a4 Basic log append. 2013-04-14 15:37:33 -06:00