Yicheng Qin
|
28634fce47
|
wal: Flush -> Sync
|
2014-09-03 09:20:00 -07:00 |
|
Yicheng Qin
|
2b0936271c
|
server: fix 2nd watch timeout in TestSingleNodeRecovery
When recovering from data dir, the node needs election timeout to
elect itself to be the leader.
|
2014-09-03 09:20:00 -07:00 |
|
Yicheng Qin
|
01322cd243
|
server: move TestClusterConfigReload to etcd/
|
2014-09-03 09:20:00 -07:00 |
|
Yicheng Qin
|
21fb7b4fbb
|
server: improve TestKillLeader and TestKillRandom
Remove testing on 11-node cluster due to lack of fds
|
2014-09-03 09:20:00 -07:00 |
|
Yicheng Qin
|
efaef49734
|
server: move TestSingleNodeRecovery under etcd/
|
2014-09-03 09:20:00 -07:00 |
|
Yicheng Qin
|
ffa5eb08c3
|
server: apply ents when loading log
|
2014-09-03 09:20:00 -07:00 |
|
Yicheng Qin
|
a6132d459f
|
server: save correct nodeId for participant
|
2014-09-03 09:20:00 -07:00 |
|
Xiang Li
|
12dd380d26
|
etcd: use tmpDir as testing directory
|
2014-09-03 09:20:00 -07:00 |
|
Xiang Li
|
653a63fa00
|
etcd: add destoryCluster for testing
|
2014-09-03 09:19:59 -07:00 |
|
Yicheng Qin
|
88e5bce63d
|
wip: wal glue
|
2014-09-03 09:19:59 -07:00 |
|
Xiang Li
|
d70df4a15d
|
wal: reorgnize wal file
|
2014-09-03 09:19:59 -07:00 |
|
Xiang Li
|
a25cd45876
|
wal: add CoreOS copyright
|
2014-09-03 09:19:59 -07:00 |
|
Xiang Li
|
b383cd5acf
|
raft: refactor recover
|
2014-09-03 09:19:59 -07:00 |
|
Xiang Li
|
9f5c7b310c
|
wal: add newWal helper func
|
2014-09-03 09:19:59 -07:00 |
|
Xiang Li
|
9c6f2ed5bb
|
wal: use buffer
|
2014-09-03 09:19:59 -07:00 |
|
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 |
|