Ben Johnson
|
b3dd52126b
|
Fix TestLogExistingLog.
|
2013-06-25 15:20:03 -06:00 |
Ben Johnson
|
0aa9a8d145
|
Fix TestLogEntryUnmarshal.
|
2013-06-25 14:29:05 -06:00 |
Ben Johnson
|
2cf93fd102
|
Clear reference to LogEntry.result after return.
|
2013-06-25 14:22:23 -06:00 |
Ben Johnson
|
e526ed3441
|
Convert LogEntry.result to interface type.
|
2013-06-25 14:20:53 -06:00 |
Ben Johnson
|
8f8104642d
|
Add some padding to the entry's commit channel.
|
2013-06-25 14:17:42 -06:00 |
Ben Johnson
|
b80b7c5a62
|
Add debug mode.
|
2013-06-25 14:11:48 -06:00 |
Ben Johnson
|
dbcb144af6
|
Merge branch 'master' of https://github.com/xiangli-cmu/go-raft into xiangli-master
Conflicts:
server.go
|
2013-06-25 13:17:00 -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 |
Ben Johnson
|
730cdd4d40
|
Merge pull request #20 from temoto/patch-1
Patch 1
|
2013-06-22 11:48:59 -07:00 |
Sergey Shepelev
|
494bf7e0fa
|
server.MemberCount: synchronize access to .peers map with mutex
|
2013-06-22 19:38:48 +04:00 |
Sergey Shepelev
|
19ad97520b
|
server.MemberCount: count peers with len() is cheaper than loop
|
2013-06-22 19:35:30 +04: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
|
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
|
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
|
86bff03c08
|
add unit test for statemachine
|
2013-06-06 13:54:27 -07:00 |
Xiang Li
|
4fc43b68d6
|
add statemachine interface
|
2013-06-05 21:14:07 -07:00 |
Xiang Li
|
4d96f3578e
|
add snapshot unit test
|
2013-06-05 20:36:25 -07:00 |
Xiang Li
|
349a1abacc
|
solve conflicts
|
2013-06-05 20:32:52 -07:00 |
Xiang Li
|
f15cadeffd
|
add snapshot unit test
|
2013-06-05 20:25:17 -07:00 |
Ben Johnson
|
77c63cc1f1
|
Add error lookup for committed log entries.
|
2013-06-05 13:57:31 -04:00 |
Xiang Li
|
718ef79f6f
|
add snapshot_request.go
|
2013-06-05 10:42:15 -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
|
4b06328eb0
|
Merge branch 'master' of https://github.com/xiangli-cmu/go-raft
Conflicts:
server.go
|
2013-06-04 17:11:02 -07:00 |
Xiang Li
|
3a6fc7bee4
|
add log-compaction
|
2013-06-04 17:02:45 -07:00 |
Ben Johnson
|
4ca46e7714
|
Serialize election timeout goroutine.
|
2013-06-04 09:38:02 -04: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
|
ba9b7739e4
|
Add Server.LastCommandName().
|
2013-06-03 15:13:38 -04:00 |
Ben Johnson
|
894eb08592
|
Merge branch 'master' of https://github.com/benbjohnson/go-raft
|
2013-06-03 09:51:57 -04:00 |
Ben Johnson
|
1bd88d5e26
|
Track current leader.
|
2013-06-03 09:51:52 -04:00 |
Ben Johnson
|
df58f67d3e
|
Merge pull request #16 from philips/master
LICENSE: initial commit
|
2013-06-02 20:50:03 -07:00 |
Brandon Philips
|
258e2cfba4
|
LICENSE: initial commit
The README.md file mentions the MIT license but just to make it clear
put a copy of the LICENSE in the repo.
|
2013-06-02 20:43:59 -07:00 |
Ben Johnson
|
20301ed8fd
|
Merge branch 'master' of https://github.com/benbjohnson/go-raft
|
2013-06-02 22:43:44 -04:00 |
Ben Johnson
|
0d9f1f01ed
|
Clean up API.
|
2013-06-02 22:43:40 -04:00 |
Ben Johnson
|
d311b79241
|
Merge pull request #15 from xiangli-cmu/master
Fix leader field and delete some redundant codes
|
2013-06-02 19:17:23 -07:00 |
Xiang Li
|
e1d7a7a8b3
|
delete the redundant codes when using setCurrTerm
|
2013-06-02 18:25:02 -07:00 |
Xiang Li
|
f8973a52a8
|
fix leader field of Server
|
2013-06-02 18:18:25 -07:00 |
Ben Johnson
|
147d3c5dd8
|
Switch to use Transporter interface.
|
2013-05-28 15:57:38 -04:00 |