Xiang Li
1eb1020717
raft: fix raft test
2014-10-09 14:42:29 +08:00
Xiang Li
8bbbaa88b2
*: raft related int64 -> uint64
2014-10-09 14:29:21 +08:00
Xiang Li
af5b8c6c44
raft: int64 -> uint64
2014-10-09 14:26:43 +08:00
Xiang Li
38af14b0f4
Merge pull request #1260 from coreos/snap_rm
...
raft: save removed nodes in snapshot
2014-10-09 08:00:33 +08:00
Jonathan Boulle
ea99d3c002
Merge pull request #1269 from jonboulle/disco_warn
...
etcdserver: add discovery warning message
2014-10-08 16:24:51 -07:00
Jonathan Boulle
682008724d
etcdserver: add discovery warning message
2014-10-08 16:09:12 -07:00
Xiang Li
abe97e49d5
raft: more comment
2014-10-09 07:02:05 +08:00
Xiang Li
73f2aaf98f
raft: removedSlice -> removedNodes
2014-10-09 06:55:25 +08:00
Xiang Li
c67fd14fe8
Merge pull request #1257 from bdarnell/cleanups
...
Raft: assorted cleanups (golint and go vet)
2014-10-09 05:55:21 +08:00
Jonathan Boulle
b4a7680bc4
Merge pull request #1268 from jonboulle/store_typo
...
store: fix typo "recurisive"
2014-10-08 14:22:07 -07:00
Jonathan Boulle
a07c51a9c9
store: fix typo "recurisive"
2014-10-08 14:13:38 -07:00
Ben Darnell
d2e858587f
Raft: a few more improvements to test messages.
2014-10-08 15:07:11 -04:00
Xiang Li
7b61565c0a
raft: save removed nodes in snapshot
2014-10-08 15:33:55 +08:00
Xiang Li
5f3fe7c61f
Merge pull request #1254 from coreos/rand_etimeout
...
Rand etimeout
2014-10-08 08:10:26 +08:00
Xiang Li
1cd3345e00
raft: address issues with election timeout
2014-10-08 07:41:17 +08:00
Yicheng Qin
75f6643982
Merge pull request #1212 from unihorn/144
...
etcdserver: apply config change on cluster store
2014-10-07 16:32:59 -07:00
Yicheng Qin
8e8719f6ac
etcdserver: Create, Delete -> Add, Remove
2014-10-07 16:21:58 -07:00
Ben Darnell
1083ce8f73
raft: remove misleading labels in array definition
...
Since these are arrays instead of maps, the "keys" here are actually
(useless) goto labels. What really matters is that the ordering is
the same between the constant declarations and the array.
2014-10-07 18:44:06 -04:00
Ben Darnell
36558b1924
Raft: fix printf strings found by go vet.
2014-10-07 18:44:06 -04:00
Ben Darnell
3ad0df3722
Raft: fix problems reported by golint.
2014-10-07 18:44:06 -04:00
Ben Darnell
fe0e168b3b
Add *.test to gitignore.
...
These files are left by some go commands.
2014-10-07 18:22:09 -04:00
Brandon Philips
5b8c4f4e0d
Merge pull request #1251 from philips/hack-insta-discovery
...
hack: introduce a insta-discovery script
2014-10-07 13:47:03 -07:00
Yicheng Qin
cdea98d434
etcdserver: skip bootstrap addNode entry
...
This is a hack to make etcd work normally.
2014-10-07 11:11:31 -07:00
Yicheng Qin
6a62621695
etcdserver: update panic info
2014-10-07 11:04:50 -07:00
Yicheng Qin
3859297225
etcdserver: check id match
2014-10-07 11:04:50 -07:00
Yicheng Qin
d051af4d3d
etcdserver: apply config change on cluster store
2014-10-07 11:04:50 -07:00
Brandon Philips
ef0ed31210
hack: introduce a insta-discovery script
...
This sets up a localhost cluster via a new discovery token. Very useful
for testing.
2014-10-07 10:52:40 -07:00
Xiang Li
f65d117462
raft: add a test for randElectionTimeout
2014-10-07 20:34:15 +08:00
Xiang Li
d7d6f84f64
raft: rand election timeout
2014-10-07 20:12:49 +08:00
Jonathan Boulle
2e0fec7a84
Merge pull request #1253 from jonboulle/streaming_events
...
store: use a larger buffer for eventChan
2014-10-07 02:14:20 -07:00
Jonathan Boulle
26160b2154
store: use a larger buffer for eventChan
...
The event channel for watches can drop events too easily in the case of
streaming watches. This increases the buffer to a more useful level.
2014-10-07 01:57:05 -07:00
Xiang Li
3f3b9866c6
Merge pull request #1241 from coreos/compact
...
raft: compact takes index and nodes parameters
2014-10-07 16:07:25 +08:00
Xiang Li
45e4a8643a
raft: add tests for raft.compact
2014-10-07 16:03:11 +08:00
Xiang Li
7fe4385ef9
raft: add comment for Compact interface of Node
2014-10-07 16:03:11 +08:00
Xiang Li
5587e0d73f
raft: compact takes index and nodes parameters
...
Before this commit, compact always compact log at current appliedindex of raft.
This prevents us from doing non-blocking snapshot since we have to make snapshot
and compact atomically. To prepare for non-blocking snapshot, this commit make
compact supports index and nodes parameters. After completing snapshot, the applier
should call compact with the snapshot index and the nodes at snapshot index to do
a compaction at snapsohot index.
2014-10-07 16:03:11 +08:00
Brandon Philips
de024ec844
Merge pull request #1250 from philips/fix-single-node
...
main: use a new cluster by default
2014-10-06 19:10:58 -07:00
Brandon Philips
6cbc282be1
main: use a new cluster by default
...
This is a safe default for now. Use it to make `./etcd` work again.
2014-10-06 17:34:14 -07:00
Barak Michener
39e0a0cd0a
Merge pull request #1249 from barakmich/sanity_check
...
Split config into a separate file and add sanity check and test
2014-10-06 20:19:23 -04:00
Barak Michener
d6aea2a795
add golint on the new box and fix appropriate lint
2014-10-06 20:16:25 -04:00
Barak Michener
8a311e5b76
remove new cluster check
2014-10-06 20:07:51 -04:00
Barak Michener
1a0195e07e
tableize the test
2014-10-06 20:05:53 -04:00
Yicheng Qin
3ca3c9ad4c
Merge pull request #1245 from unihorn/155
...
main/raft: write addNode ConfChange entries in log when start raft
2014-10-06 17:00:28 -07:00
Brandon Philips
b9c8ac73be
Merge pull request #1248 from jonboulle/disco
...
main: fix temporary discovery cluster
2014-10-06 16:54:06 -07:00
Barak Michener
120b088723
Split config into a separate file and add sanity check and test
2014-10-06 19:42:13 -04:00
Jonathan Boulle
5098cb0d32
main: fix temporary discovery cluster
2014-10-06 16:10:29 -07:00
Yicheng Qin
45ebfb4217
raft: refine initial entries logic in StartNode
2014-10-06 16:06:01 -07:00
Brandon Philips
d98fe2ce1a
Merge pull request #1247 from jonboulle/doc
...
documentation: clustering guide fixes
2014-10-06 15:16:25 -07:00
Yicheng Qin
c15c3eab4c
etcdserver: move int64Slice into pkg/types/
2014-10-06 15:12:02 -07:00
Jonathan Boulle
a10c62ae25
documentation: clustering guide fixes
2014-10-06 15:07:44 -07:00
Brandon Philips
3500b56e54
Merge pull request #1237 from philips/0.5-docs
...
use initial-cluster and initial-cluster-state flags
2014-10-06 15:04:04 -07:00