Commit Graph

40 Commits (2bc38456cbec20f4781ade19d814223981008003)

Author SHA1 Message Date
Xiang Li d8884cbbea change the do struct and add commit center 2013-06-23 11:42:31 -07:00
Xiang Li 3b73c41286 election new leader and rejoin works 2013-06-11 15:30:13 -07:00
Xiang Li 531e12146a add timer.fire function, which can fire at the timer channel 2013-06-09 21:47:59 -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 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
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 97fbdde521 Interface clean up. 2013-05-26 20:17:20 -06:00
Ben Johnson 345a74b63d Deny command execution for non-leaders. 2013-05-26 20:04:41 -06:00
Ben Johnson 7503eee58b Fix timer cleanup. 2013-05-26 18:02:31 -06:00
Ben Johnson f5761513bc Add log entry marshaling. 2013-05-09 21:50:57 -06:00
Ben Johnson 7521258d0c Fixed minor bugs. 2013-05-07 21:56:32 -06:00
Ben Johnson f3441b8bfb Add multi-node failure with re-election test. 2013-05-05 15:41:55 -06:00
Ben Johnson d00057d4cb Refactor timer. 2013-05-05 14:01:06 -06:00
Ben Johnson 776a2ccff9 Fix race conditions. 2013-05-05 13:48:15 -06:00
Ben Johnson ef423e8ad5 Add multi-node join. 2013-05-05 13:36:23 -06:00
Ben Johnson b6e9a8c07b Fix race condition in election timer. 2013-05-05 11:14:27 -06:00
Ben Johnson 0d2cb8affa Fix race conditions. 2013-05-02 22:16:39 -06:00
Ben Johnson a4f8fb89a0 Add repeated election test. 2013-04-30 23:21:56 -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 6988dd4d6a Add test for stale append. 2013-04-30 20:40:56 -06:00
Ben Johnson b026fec928 Add tests for multiple appends. 2013-04-30 20:39:46 -06:00
Ben Johnson 79a0a57995 Add basic append entries test. 2013-04-29 22:13:50 -06:00
Ben Johnson c218fbfd9b Add tests for vote requests with different log states. 2013-04-29 20:51:16 -06:00
Ben Johnson 77b440c012 Add test for revote in new term. 2013-04-29 20:44:07 -06:00
Ben Johnson 2007a7ac12 Add request vote denial if already voted. 2013-04-29 20:43:36 -06:00
Ben Johnson fd6090216a Add test for demotion in request vote. 2013-04-29 20:42:58 -06:00
Ben Johnson d9268cdeb1 Add test for stale request vote. 2013-04-29 20:42:43 -06:00
Ben Johnson 4d3d5b8727 Add simple voting test. 2013-04-28 16:49:52 -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 5d5c7cc817 Add single node configuration. 2013-04-16 20:32:49 -06:00
Ben Johnson ef7ce43469 Add basic server setup. 2013-04-16 20:28:08 -06:00