2376 Commits

Author SHA1 Message Date
Blake Mizerany
92bdb1390d raft: update based on example 2014-09-03 09:20:12 -07:00
Blake Mizerany
ff14d1de52 raft: example 2014-09-03 09:20:12 -07:00
Blake Mizerany
6e6d81f094 raft: copy ents to avoid races 2014-09-03 09:20:12 -07:00
Blake Mizerany
71ed92b6bd raft: implement ReadState 2014-09-03 09:20:12 -07:00
Blake Mizerany
f1f8fc4228 raft: sm.vote -> State.Vote 2014-09-03 09:20:12 -07:00
Blake Mizerany
40ed560e16 raft: index -> State.LastIndex 2014-09-03 09:20:12 -07:00
Blake Mizerany
c7e17e2f9e raft: term -> State.Term 2014-09-03 09:20:11 -07:00
Blake Mizerany
220a923a2d raft: remove info 2014-09-03 09:20:11 -07:00
Blake Mizerany
0453d09af6 raft: moved into new raft 2014-09-03 09:20:11 -07:00
Blake Mizerany
f03c3bce05 raft: seperate dequeuing from slicing 2014-09-03 09:20:11 -07:00
Blake Mizerany
e17f79ee70 raft: start tick 2014-09-03 09:20:11 -07:00
Blake Mizerany
8d37587e47 raft: remove sync
We don't need SyncNode. We only care about things that have made it
through the store. We can do this there.
2014-09-03 09:20:11 -07:00
Blake Mizerany
ce7536e564 raft2: wip - to bring in ../raft soon 2014-09-03 09:20:11 -07:00
Blake Mizerany
e2d8e1868b wait: Waiter -> WaitList 2014-09-03 09:20:11 -07:00
Blake Mizerany
f9c4ba3ea3 wait: init 2014-09-03 09:20:11 -07:00
Xiang Li
85103adfe0 wal: move record method to record.go 2014-09-03 09:20:11 -07:00
Xiang Li
3699f2e5f9 etcdserver: rename someMachineMessage->machineMessage 2014-09-03 09:20:11 -07:00
Xiang Li
4c116a5a01 etcd: add consistent get 2014-09-03 09:20:10 -07:00
Xiang Li
f6a9599eb4 *: rename etcd to etcdserver 2014-09-03 09:20:10 -07:00
Yicheng Qin
2ff75cda0e server: remove panic or fatal in participant.run 2014-09-03 09:20:10 -07:00
Yicheng Qin
ebafba0043 server: don't print out errors that cannot be resolved 2014-09-03 09:20:10 -07:00
Yicheng Qin
fab17f216d server: recover peerHub when restart from snapshot 2014-09-03 09:20:10 -07:00
Yicheng Qin
27c9a0535c server: add tests for on-disk snapshot 2014-09-03 09:20:10 -07:00
Xiang Li
5fdc124578 etcd: clean up snap 2014-09-03 09:20:10 -07:00
Yicheng Qin
a28dc4559b raft/etcd: recover node 2014-09-03 09:20:10 -07:00
Xiang Li
63489b9ef5 etcd: snap and wal init 2014-09-03 09:20:10 -07:00
Yicheng Qin
442cae6844 wal: support multiple files 2014-09-03 09:20:10 -07:00
Xiang Li
4296cd3fa4 *: remove old server 2014-09-03 09:20:10 -07:00
Xiang Li
f891199ab0 snap: refactoring 2014-09-03 09:20:09 -07:00
Xiang Li
f664c02a40 snap: handle snapshot file error robustly 2014-09-03 09:20:09 -07:00
Xiang Li
338f120cbf snap: check mkdir error in tests 2014-09-03 09:20:09 -07:00
Xiang Li
aff5b75487 snap: separate Load to Load and snapNames 2014-09-03 09:20:09 -07:00
Xiang Li
71d12d3330 snap: fix typo 2014-09-03 09:20:09 -07:00
Xiang Li
3b2a90e775 snap: separate different sections in the filename by adding dash 2014-09-03 09:20:09 -07:00
Yicheng Qin
f7417cf693 server: add testCluster.Add
and fix possible testing error.
2014-09-03 09:20:09 -07:00
Xiang Li
f7580cd3b6 snap: fix missing continue 2014-09-03 09:20:09 -07:00
Xiang Li
12a9b84b2b snap: better naming 2014-09-03 09:20:09 -07:00
Xiang Li
94521738a9 snap: init commit 2014-09-03 09:20:09 -07:00
Yicheng Qin
c1da78601a server: use random generated node id 2014-09-03 09:20:09 -07:00
Xiang Li
a5df254e53 raft: add clusterId to snapshot 2014-09-03 09:20:08 -07:00
Xiang Li
c1c2aeffab etcd: attach default scheme to the peer-list if scheme is not given 2014-09-03 09:20:08 -07:00
Yicheng Qin
cc1df691cc store: fix the bug caused by random iteration order over map 2014-09-03 09:20:08 -07:00
Xiang Li
e9a22d0f34 etcd: make retry configurable 2014-09-03 09:20:08 -07:00
Yicheng Qin
33465a7e42 server: fix testings
Make WaitMode panic to alert.
2014-09-03 09:20:08 -07:00
Yicheng Qin
bb95187bc7 server: more better testing 2014-09-03 09:20:08 -07:00
Xiang Li
cce88a8504 etcd: better testing... 2014-09-03 09:20:08 -07:00
Yicheng Qin
6e9947599a server: add testServer and testCluster 2014-09-03 09:20:08 -07:00
Xiang Li
14a6584a22 etcd: defer afterTest 2014-09-03 09:20:08 -07:00
Xiang Li
0ba26afb4d etcd: remove skipped test 2014-09-03 09:20:08 -07:00
Xiang Li
d71865e094 etcd: cleanup tests 2014-09-03 09:20:08 -07:00