Commit Graph

2233 Commits (5baefcce26bb806ae13e1b979e20fd835dddee2b)

Author SHA1 Message Date
Xiang Li 5baefcce26 wal: cleanup 2014-09-03 09:19:59 -07:00
Yicheng Qin 363e952551 wal: add Read 2014-09-03 09:19:59 -07:00
Yicheng Qin 3c7935a21d wal: check written data in tests 2014-09-03 09:19:59 -07:00
Yicheng Qin 2bd74bc328 raft: add Load 2014-09-03 09:19:59 -07:00
Xiang Li d1cdc02afc wal: add tests for write 2014-09-03 09:19:59 -07:00
Xiang Li 7b180d585e wal: make new work 2014-09-03 09:19:58 -07:00
Xiang Li e72e75876c wal: init 2014-09-03 09:19:58 -07:00
Xiang Li 3fba10c8e6 etcd: add version handlers 2014-09-03 09:19:58 -07:00
Yicheng Qin e850c644da raft: return offset for unstableEnts 2014-09-03 09:19:58 -07:00
Xiang Li 311db876b0 raft: add unstableState 2014-09-03 09:19:58 -07:00
Xiang Li 609e13a240 raft: add node.Unstable
Be able to return all unstable log entries. Application must store unstable
log entries before send out any messages after calling step.
2014-09-03 09:19:58 -07:00
Yicheng Qin 05e77ecf90 server: move id to the head of log line 2014-09-03 09:19:58 -07:00
Yicheng Qin e7bc7becf3 server: add first level logging 2014-09-03 09:19:58 -07:00
Xiang Li 1288e1f39d raft: log->raftlog 2014-09-03 09:19:58 -07:00
Xiang Li c7d1beaaa5 raft: add first level logging
We log the message to step and the state of the statemachine before and after
stepping the message.
2014-09-03 09:19:58 -07:00
Xiang Li d7eef6a64e etcd: add a bootstrap test 2014-09-03 09:19:58 -07:00
Xiang Li b49cbc959b etcd: fix start test goroutine leak 2014-09-03 09:19:57 -07:00
Xiang Li b652a0d232 etcd: reorganize etce_start test 2014-09-03 09:19:57 -07:00
Yicheng Qin 93104f114e all: discovery moved to etcd/ yet 2014-09-03 09:19:57 -07:00
Yicheng Qin 6534525cf8 server: add bootstrap tests 2014-09-03 09:19:57 -07:00
Yicheng Qin c952e91c4f server: add discovery 2014-09-03 09:19:57 -07:00
Xiang Li 2665cc1cc8 raft: heartbeat should not contain entries 2014-09-03 09:19:57 -07:00
Yicheng Qin 7aa9838d8d server: move TestModeChange to functional tests 2014-09-03 09:19:57 -07:00
Xiang Li 0c26c0bfab etcd: add a simple endtoend benchmark 2014-09-03 09:19:57 -07:00
Xiang Li 1be8550672 etcd: refactor waitCluster 2014-09-03 09:19:57 -07:00
Xiang Li 061fad12a9 main: do not pass id to etcd 2014-09-03 09:19:57 -07:00
Xiang Li 30099d9135 etcd: generate a id for the new participant after a mode switch 2014-09-03 09:19:57 -07:00
Xiang Li 8111930981 etcd: standby does not need to send join 2014-09-03 09:19:57 -07:00
Xiang Li 155bd09902 etcd: add clusterid to participant 2014-09-03 09:19:56 -07:00
Xiang Li 13ec81c87f raft: fix panic in putVarint; varint can take up to 10 bytes for a 64bit integer. 2014-09-03 09:19:56 -07:00
Xiang Li bb328d5aa5 etcd: fix standby test 2014-09-03 09:19:56 -07:00
Xiang Li 468c345e74 etcd: standby should not be in a tight loop 2014-09-03 09:19:56 -07:00
Xiang Li 060de128a7 raft: add clusterId 2014-09-03 09:19:56 -07:00
Yicheng Qin 9793c518ab raft: forbid to use none as id 2014-09-03 09:19:56 -07:00
Yicheng Qin 79689872af raft: use From field to distinguish local message 2014-09-03 09:19:56 -07:00
Xiang Li daa49023cf etcd: remove nodes in standby 2014-09-03 09:19:56 -07:00
Yicheng Qin b4cf146a52 server: notice 2013 -> 2014 2014-09-03 09:19:56 -07:00
Yicheng Qin 0429fe04df server: add notice comment to all files 2014-09-03 09:19:56 -07:00
Xiang Li 5bfaaa7964 etcd: fix serverHttp 2014-09-03 09:19:56 -07:00
Yicheng Qin 0b77b42cad standby: fix leader var race 2014-09-03 09:19:55 -07:00
Yicheng Qin 92778afd0b server: retry remove in TestBecomeStandby
To prevent from false error message.
2014-09-03 09:19:55 -07:00
Xiang Li 2f51735e8a etcd: move raftprefix to raft_handler 2014-09-03 09:19:55 -07:00
Xiang Li 7e7cfb1ce8 etcd: remove participant.seeds 2014-09-03 09:19:55 -07:00
Xiang Li 9ffc0b9f2c etcd: remove unncessary code in participant 2014-09-03 09:19:55 -07:00
Xiang Li 2e59635bea etcd: fix a race in peer.go 2014-09-03 09:19:55 -07:00
Yicheng Qin 6dc49def25 server: move var noneId to standby.go 2014-09-03 09:19:55 -07:00
Yicheng Qin d120962959 server: remove func barrier
It could be replaced by func watch.
2014-09-03 09:19:55 -07:00
Yicheng Qin 1c9928d721 participant: retry join more times 2014-09-03 09:19:55 -07:00
Yicheng Qin e709f1b572 server: fix possible race when switching mode 2014-09-03 09:19:55 -07:00
Yicheng Qin 6059db1f4b participant: stop http serving when stopped 2014-09-03 09:19:55 -07:00