Xiang Li
|
281afa74ee
|
raft: comments for TestNodeStep
|
2014-09-11 19:00:40 -07:00 |
|
Xiang Li
|
eb1dcb324c
|
raft: test node step
|
2014-09-11 17:10:36 -07:00 |
|
Brandon Philips
|
3bc4b2db12
|
raft: log comment grammar fix
|
2014-09-11 13:59:50 -07:00 |
|
Yicheng Qin
|
4e31bb308d
|
raft: use const firstId to track ids
|
2014-09-09 19:07:20 -07:00 |
|
Yicheng Qin
|
b50f96e2e1
|
raft: set none to be 0
|
2014-09-09 16:47:21 -07:00 |
|
Xiang Li
|
eaffaacf5e
|
raft: do not need to copy committed entries
|
2014-09-09 14:09:30 -07:00 |
|
Xiang Li
|
676b5be972
|
raft: use IsEmptyState
|
2014-09-09 11:58:15 -07:00 |
|
Xiang Li
|
ac0443bc89
|
raft: remove extra code
|
2014-09-09 10:16:39 -07:00 |
|
Xiang Li
|
df259e5878
|
raft: add a newReady helper function
|
2014-09-09 10:16:39 -07:00 |
|
Xiang Li
|
90c0db3d42
|
wal: do not save empty state
|
2014-09-09 10:15:29 -07:00 |
|
Xiang Li
|
c28fef5fc4
|
raft: set ready.st to empty state, if current state is equal to previous state
|
2014-09-09 10:15:29 -07:00 |
|
Xiang Li
|
b0d865e845
|
raft: record previous state is enough
|
2014-09-09 10:15:29 -07:00 |
|
Xiang Li
|
0060c0749a
|
raft: prev should be set only when we sucessfully send out rd to the channel
|
2014-09-09 10:15:29 -07:00 |
|
Jonathan Boulle
|
9997c9488a
|
*: fix a few small issues identified by go vet
|
2014-09-08 23:52:36 -07:00 |
|
Jonathan Boulle
|
946e35c958
|
raft: remove unused alwaysreadyc
|
2014-09-08 22:21:03 -07:00 |
|
Xiang Li
|
9215ebb6aa
|
Merge pull request #992 from coreos/wal
wal
|
2014-09-08 16:24:28 -07:00 |
|
Xiang Li
|
f3348d6e13
|
raft: fix the comment in test
|
2014-09-08 16:16:58 -07:00 |
|
Xiang Li
|
19235c8104
|
raft: refactor restart test
|
2014-09-08 16:10:13 -07:00 |
|
Brandon Philips
|
145882244f
|
raft: add doc for the Ready struct
|
2014-09-08 15:59:15 -07:00 |
|
Xiang Li
|
1a6e908971
|
*: add wal
|
2014-09-05 09:52:40 -07:00 |
|
Xiang Li
|
5ddfe18cda
|
Merge pull request #989 from coreos/fix_ignore_term
raft: fix ignore term
|
2014-09-04 14:36:56 -07:00 |
|
Xiang Li
|
8dfa490e49
|
raft: fix ignore term
|
2014-09-04 14:33:51 -07:00 |
|
Xiang Li
|
e30505d33b
|
raft: fix node test
|
2014-09-04 11:42:11 -07:00 |
|
Xiang Li
|
d7a289ee41
|
raft: init prev: vote for none
|
2014-09-04 11:09:55 -07:00 |
|
Xiang Li
|
8f4c615704
|
raft: leader should tick heartbeat
|
2014-09-03 22:01:31 -07:00 |
|
Blake Mizerany
|
d844377ca6
|
*: vendor context
|
2014-09-03 20:06:16 -07:00 |
|
Blake Mizerany
|
814558306e
|
raft: coerce import gogoproto from third_party
|
2014-09-03 15:51:09 -07:00 |
|
Blake Mizerany
|
8d9b7b1680
|
raft: remove entry type
|
2014-09-03 15:24:47 -07:00 |
|
Blake Mizerany
|
8463421448
|
raft: remove configuration
|
2014-09-03 15:23:05 -07:00 |
|
Xiang Li
|
bdb954b2f5
|
wal: fix wal
|
2014-09-03 15:10:15 -07:00 |
|
Xiang Li
|
3c77693881
|
raft: make tick send out messages. all state machine actions should be taken inside step function.
|
2014-09-03 10:17:09 -07:00 |
|
Xiang Li
|
966cfd6e8e
|
raft: fix elapsed reset
|
2014-09-03 09:20:20 -07:00 |
|
Blake Mizerany
|
f2d200a826
|
raft: log only new/no leader
|
2014-09-03 09:20:20 -07:00 |
|
Blake Mizerany
|
db8e4a2fc0
|
raft: remove debug logging
|
2014-09-03 09:20:20 -07:00 |
|
Blake Mizerany
|
d218034630
|
boom
|
2014-09-03 09:20:20 -07:00 |
|
Blake Mizerany
|
b796d227f1
|
add some logging
|
2014-09-03 09:20:19 -07:00 |
|
Blake Mizerany
|
6d720fb33f
|
raft: replace Context with Stop
|
2014-09-03 09:20:18 -07:00 |
|
Blake Mizerany
|
f8be54b416
|
...deadlocked...
|
2014-09-03 09:20:17 -07:00 |
|
Blake Mizerany
|
7469871d20
|
raft: remove proposal id / add test
|
2014-09-03 09:20:17 -07:00 |
|
Blake Mizerany
|
e8e588c67b
|
raft: move protobufs into raftpb
|
2014-09-03 09:20:17 -07:00 |
|
Blake Mizerany
|
ddd219f297
|
many: marshal message
|
2014-09-03 09:20:16 -07:00 |
|
Blake Mizerany
|
1eb2512961
|
raft: only allow one message to Step
|
2014-09-03 09:20:16 -07:00 |
|
Blake Mizerany
|
225e618b8f
|
raft: add Id to Entry
|
2014-09-03 09:20:15 -07:00 |
|
Blake Mizerany
|
021e231476
|
raft: ReadState -> Ready, which returns a chan
|
2014-09-03 09:20:15 -07:00 |
|
Blake Mizerany
|
edac2e909b
|
etcdserver: wip
|
2014-09-03 09:20:14 -07:00 |
|
Blake Mizerany
|
91b62c0fbf
|
raft: messages -> byMsgType
|
2014-09-03 09:20:14 -07:00 |
|
Blake Mizerany
|
ad307c6965
|
raft: go fmt
|
2014-09-03 09:20:14 -07:00 |
|
Blake Mizerany
|
7486d3d4c5
|
raft: mention error in doc
|
2014-09-03 09:20:14 -07:00 |
|
Blake Mizerany
|
481e229ad4
|
raft: unblock progress by deproitizing proposals in Step
|
2014-09-03 09:20:14 -07:00 |
|
Blake Mizerany
|
f87a6f3c1f
|
raft: sift proposals from other message types in Step
|
2014-09-03 09:20:14 -07:00 |
|