Commit Graph

35 Commits (e045441f52552d3cc97a7ed2e2b6186c406b7dfc)

Author SHA1 Message Date
Ben Johnson 08e2d519ae Refactor server event loop. 2013-07-07 14:21:04 -06:00
Ben Johnson ce3dbb5dfb Server clean up. 2013-07-06 13:41:42 -06:00
Ben Johnson 44f3ef6701 [Fix #47] Clean up external interface. 2013-07-05 22:49:47 -06:00
Xiang Li 5f64d15776 change > to >=. > will cause panic when resp.CommitIndex equals prevLogIndex 2013-07-05 16:45:55 -07:00
Xiang Li aa76606fa8 fix three promote test 2013-06-27 14:46:11 -07:00
Xiang Li 430b2eb661 clean up codes 2013-06-26 18:34:43 -07:00
Ben Johnson e526ed3441 Convert LogEntry.result to interface type. 2013-06-25 14:20:53 -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 f294f3cb9d fix snapshot 2013-06-12 09:47:48 -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 f9ec2ed5eb Minor cleanup. 2013-06-07 22:41:36 -04:00
Ben Johnson 769a5ed6a1 go fmt 2013-06-07 22:19:18 -04:00
Xiang Li 86bff03c08 add unit test for statemachine 2013-06-06 13:54:27 -07:00
Xiang Li f15cadeffd add snapshot unit test 2013-06-05 20:25:17 -07:00
Ben Johnson 0d9f1f01ed Clean up API. 2013-06-02 22:43:40 -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 9cc40929ea Remove ApplyFunc. 2013-05-10 22:15:00 -06:00
Ben Johnson f5761513bc Add log entry marshaling. 2013-05-09 21:50:57 -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 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 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 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 ef7ce43469 Add basic server setup. 2013-04-16 20:28:08 -06:00