2550 Commits

Author SHA1 Message Date
Xiang Li
5c8839387d etcdhttp: set peer should clean up previous values 2014-09-08 16:38:01 -07:00
Xiang Li
9215ebb6aa Merge pull request #992 from coreos/wal
wal
2014-09-08 16:24:28 -07:00
Xiang Li
12c1300d48 Merge pull request #987 from philips/add-test-script
test: introduce test script
2014-09-08 16:23:15 -07:00
Xiang Li
4a02a1a60c main: clarify fatal message for unexpect nodeid 2014-09-08 16:21:27 -07:00
Brandon Philips
91c52630b6 test: introduce test script
Why do this? `go test ./...` has a ton of annoying output:

```
?   	github.com/coreos/etcd	[no test files]
?   	github.com/coreos/etcd/crc	[no test files]
?   	github.com/coreos/etcd/elog	[no test files]
?   	github.com/coreos/etcd/error	[no test files]
ok  	github.com/coreos/etcd/etcdserver	0.267s
ok  	github.com/coreos/etcd/etcdserver/etcdhttp	0.022s
?   	github.com/coreos/etcd/etcdserver/etcdserverpb	[no test files]
ok  	github.com/coreos/etcd/raft	0.157s
?   	github.com/coreos/etcd/raft/raftpb	[no test files]
ok  	github.com/coreos/etcd/snap	0.018s
?   	github.com/coreos/etcd/snap/snappb	[no test files]
third_party/code.google.com/p/gogoprotobuf/proto/testdata/test.pb.go🔢
undefined: __emptyarchive__.Extension
ok  	github.com/coreos/etcd/store	4.247s
ok
github.com/coreos/etcd/third_party/code.google.com/p/go.net/context
2.724s
FAIL
github.com/coreos/etcd/third_party/code.google.com/p/gogoprotobuf/proto
[build failed]
ok
github.com/coreos/etcd/third_party/github.com/stretchr/testify/assert
0.013s
ok  	github.com/coreos/etcd/wait	0.010s
ok  	github.com/coreos/etcd/wal	0.024s
?   	github.com/coreos/etcd/wal/walpb	[no test files]
```

And we have no had to manually configure drone.io which I want to avoid:
https://drone.io/github.com/coreos/etcd/admin
2014-09-08 16:18:10 -07:00
Xiang Li
f3348d6e13 raft: fix the comment in test 2014-09-08 16:16:58 -07:00
Xiang Li
9a57d1067d main: make default data to have _data_etcd suffix 2014-09-08 16:15:18 -07:00
Xiang Li
19235c8104 raft: refactor restart test 2014-09-08 16:10:13 -07:00
Xiang Li
e4d2b2a06a Merge pull request #1022 from philips/add-ready-docs
raft: add doc for the Ready struct
2014-09-08 16:02:21 -07:00
Brandon Philips
145882244f raft: add doc for the Ready struct 2014-09-08 15:59:15 -07:00
Xiang Li
54734b0903 main/wal: add a const for 0700 magic number 2014-09-08 15:45:58 -07:00
Xiang Li
b094410066 wal: change entries->ents for consistency 2014-09-08 15:40:12 -07:00
Xiang Li
adff0f3813 wal: named return values for ReadAll. 2014-09-08 15:36:25 -07:00
Xiang Li
a3b6a646eb main: check the id read by from wal. 2014-09-08 15:31:11 -07:00
Xiang Li
ffd198808e Merge pull request #1020 from jonboulle/master
docs: add note about version, remove old Vagrantfile
2014-09-08 15:09:27 -07:00
Jonathan Boulle
26a5aaec34 docs: add link to 32-bit issue 2014-09-08 15:08:07 -07:00
Jonathan Boulle
9180919a30 docs: remove build instructions from README 2014-09-08 14:57:16 -07:00
Jonathan Boulle
8cd1b3a4f2 docs: remove nonfunctional Vagrantfile and instructions 2014-09-08 14:49:35 -07:00
Jonathan Boulle
7caa33d819 docs: update README to warn about master branch 2014-09-08 14:45:38 -07:00
Xiang Li
8eadc9b8a5 Merge pull request #1005 from philips/quorum-maintainers
MAINTAINERS: add Brandon Philips
2014-09-08 14:38:55 -07:00
Xiang Li
0461c517e4 wal: clarify TODO 2014-09-08 13:57:35 -07:00
Xiang Li
36730ca613 main: use -> using 2014-09-08 10:32:49 -07:00
Brandon Philips
138ac0b296 CONTRIBUTING: require two people to review on etcd 2014-09-07 19:46:06 -07:00
Brandon Philips
c7ff6d4410 MAINTAINERS: add Brandon Philips
Need to make sure we have a quorum :)
2014-09-07 19:45:34 -07:00
Xiang Li
4f57330e29 Merge pull request #1003 from bmizerany/b-newemail
MAINTAINERS: change email
2014-09-07 19:26:29 -07:00
Blake Mizerany
756b54b4c3 MAINTAINERS: change email 2014-09-07 17:53:52 -07:00
Xiang Li
8c9d7e3e93 main: add a helper function for starting raft 2014-09-05 10:24:13 -07:00
Xiang Li
0851a1fe7f main: better error msg 2014-09-05 10:02:46 -07:00
Xiang Li
ee78890f22 main: use data-dir as the path to data directory flag 2014-09-05 09:56:25 -07:00
Xiang Li
1a6e908971 *: add wal 2014-09-05 09:52:40 -07:00
Blake Mizerany
769c043537 Merge pull request #995 from jonboulle/master
doc: update build instructions in README
2014-09-04 23:25:48 -07:00
Jonathan Boulle
4cc39e4517 doc: update build instructions in README 2014-09-04 23:21:21 -07:00
Xiang Li
dd49b7a133 Merge pull request #988 from coreos/default_peers
etcdserver: add default peer
2014-09-04 22:33:18 -07:00
Xiang Li
bca8f9e0ed etcdserver: change default id to 0x1 2014-09-04 22:26:42 -07:00
Blake Mizerany
8e6c8e068d .: add MAINTAINERS file 2014-09-04 18:01:09 -07:00
Blake Mizerany
8408acf995 .: explain the LGTM protocol 2014-09-04 17:08:21 -07:00
Michael Marineau
f41fac0719 Merge pull request #983 from marineam/doc
docs: fix documentation for HTTP read/write timeouts
2014-09-04 15:17:07 -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
Blake Mizerany
28102e536b Revert "build: add build script and update readme"
This reverts commit 2866a7488ee2eb489405cd50a906e43f24044d8c.
2014-09-04 14:06:19 -07:00
Jonathan Boulle
08ad47fe1a Merge pull request #991 from jonboulle/master
build: add build script and update readme
2014-09-04 13:58:09 -07:00
Jonathan Boulle
2866a7488e build: add build script and update readme 2014-09-04 13:57:45 -07:00
Xiang Li
25ee66c6c7 Merge pull request #990 from coreos/fix_node_test
Fix node test
2014-09-04 13:55:50 -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
c1e7a788cd etcdserver: add default peer 2014-09-04 10:11:32 -07:00
Michael Marineau
a7102d491b docs: fix documentation for HTTP read/write timeouts
The documentation for these options has been incorrect ever since their
addition via commit 084dcb55. This broke upgrading a CoreOS stable
cluster to 410.0.0 because the user was using the example TOML config
which contains:

    http_write_timeout = 10

This was silently ignored in the old stable version which predates the
addition of these options. After upgrading etcd began failing with:

    Type mismatch for 'config.Config.http_write_timeout': Expected float
    but found 'int64’.

Original issue: https://github.com/coreos/update_engine/issues/45
2014-09-03 23:36:36 -07:00
Xiang Li
e393509879 Merge pull request #981 from coreos/v2prefix
etcdhttp: add v2prefix
2014-09-03 22:05:07 -07:00
Xiang Li
e7eff1a975 Merge pull request #982 from coreos/fix_tick
Fix tick
2014-09-03 22:02:33 -07:00
Xiang Li
8f4c615704 raft: leader should tick heartbeat 2014-09-03 22:01:31 -07:00