Yicheng Qin
2030ca202f
wal: change wal filename format
...
Make raftIndex section to be expected raftIndex of next entry.
It makes filename more intuitive and straight-forward.
The commit also adds comments for filename format.
2014-09-12 11:24:28 -07:00
Xiang Li
1a0ad54d3e
Merge pull request #1059 from coreos/node_test
...
test node step
2014-09-12 10:23:53 -07:00
Brandon Philips
98f9ee3613
raft: add useful comments
...
These comments were things I learned about the units, use case or
meaning of various fields and functions in the raft package.
2014-09-12 09:58:04 -07:00
Brandon Philips
58b8610024
raft: add a doc.go file
...
Explain the package from a high level.
2014-09-12 09:57:48 -07:00
Xiang Li
50c1a34f78
Merge pull request #1060 from jonboulle/peers
...
etcdserver/etcdhttp: split out peers and add tests
2014-09-11 23:53:54 -07:00
Yicheng Qin
073411f23f
raft: remove vote with default value
2014-09-11 23:17:13 -07:00
Yicheng Qin
dc1357afa9
raft: use raft helper function in testing
2014-09-11 19:26:29 -07:00
Yicheng Qin
0e0fc2bd24
raft: use [1,n] as address list for raft state machines
2014-09-11 19:23:05 -07:00
Yicheng Qin
84c2bd0b7d
raft: set From of local message to be local id
2014-09-11 19:18:47 -07:00
Jonathan Boulle
20776f1947
etcdserver: use int64slice directly
2014-09-11 19:17:07 -07:00
Xiang Li
281afa74ee
raft: comments for TestNodeStep
2014-09-11 19:00:40 -07:00
Jonathan Boulle
e18b8c12be
etcdserver: switch to proper int64Slice for sorting
2014-09-11 17:28:08 -07:00
Xiang Li
81b5967e0a
Merge pull request #1054 from philips/add-wal-doc
...
wal: add a doc file
2014-09-11 17:18:53 -07:00
Xiang Li
eb1dcb324c
raft: test node step
2014-09-11 17:10:36 -07:00
Jonathan Boulle
5f66b35852
etcdserver/etcdhttp: split out peers and add tests
2014-09-11 16:53:55 -07:00
Jonathan Boulle
c03798f99b
Merge pull request #1011 from jonboulle/clean_http
...
Validate HTTP API user input
2014-09-11 15:31:25 -07:00
Jonathan Boulle
786982d8e5
simplify
2014-09-11 15:13:56 -07:00
Jonathan Boulle
52ddd389ff
etcdhttp: use Form values over query parameters
2014-09-11 15:12:31 -07:00
Brandon Philips
40341b488c
Merge pull request #1058 from philips/grammar-fix
...
raft: log comment grammar fix
2014-09-11 14:06:33 -07:00
Brandon Philips
3bc4b2db12
raft: log comment grammar fix
2014-09-11 13:59:50 -07:00
Xiang Li
f7f65ec464
Merge pull request #1056 from coreos/test
...
test: test wait pkg
2014-09-11 13:56:51 -07:00
Brandon Philips
884c702512
wal: wal.OpenFromIndex -> wal.OpenAtIndex
...
The first entry read from the wal should be the index provided. This
name makes that more clear.
2014-09-11 12:52:06 -07:00
Brandon Philips
413b6a59ff
wal: add more explanation to wal filename format
2014-09-11 12:51:50 -07:00
Xiang Li
9bd9d88a9d
test: sort the pkgs
2014-09-11 12:48:18 -07:00
Xiang Li
0feb153034
test: test wait pkg
2014-09-11 12:38:43 -07:00
Jonathan Boulle
7c03704b19
etcdserver: restructure to hopefully simplify
...
Obviate parseBool helper, define emptyReq locally to parseRequest,
have writeEvent return an error which gets logged
2014-09-11 08:50:41 -07:00
Brandon Philips
04abd5603f
wal: add a doc file
2014-09-10 20:40:20 -07:00
Brandon Philips
71a1c1aa84
Merge pull request #1053 from philips/proxy-in-procfile
...
Procfile: add a proxy
2014-09-10 18:47:53 -07:00
Brandon Philips
1ee8392a8f
Procfile: add a proxy
...
Woo! Now we have a cluster and a proxy and etcdctl works when running
the procfile by default!
2014-09-10 18:47:32 -07:00
Xiang Li
338ca6050e
Merge pull request #1048 from bcwaldon/proxy-monster
...
proxy mode
2014-09-10 18:09:50 -07:00
Brian Waldon
7415d53020
proxy: add proxy-mode functionality to etcd daemon
2014-09-10 18:06:56 -07:00
Brian Waldon
e5a482266f
proxy: introduce director
...
The director class drives an httputil.ReverseProxy. This is used when
etcd is deployed in proxy mode.
2014-09-10 18:04:03 -07:00
Brian Waldon
a3334eed23
main: break out startEtcd func
2014-09-10 18:04:02 -07:00
Brian Waldon
bafe960dba
etcdhttp: add Peers.Endpoints
2014-09-10 18:02:02 -07:00
Brian Waldon
2b39ee1bb3
Merge pull request #1051 from bcwaldon/Id
...
*: s/Id/ID/
2014-09-10 16:13:04 -07:00
Brian Waldon
c251304068
*: s/Id/ID/
...
golang convention dictates that the individual characters in an
abbreviation should all have the same case. Use ID instead of Id.
The protobuf generator still generates code that does not meet
this convention, but that's a fight for another day.
2014-09-10 16:09:08 -07:00
Jonathan Boulle
e2d01eff35
etcdserver: switch to using etcd.Error
2014-09-10 15:46:13 -07:00
Xiang Li
21c214ac03
Merge pull request #1050 from jonboulle/ignore
...
gitignore: ignore vim swap files
2014-09-10 15:09:45 -07:00
Jonathan Boulle
2342402434
etcdserver: address style comments
2014-09-10 14:14:14 -07:00
Jonathan Boulle
255e62dcdd
gitignore: ignore vim swap files
2014-09-10 12:06:28 -07:00
Jonathan Boulle
bed63cddf7
etcdhttp: add tests for ParseBool/ParseUint64 helpers
2014-09-10 12:05:36 -07:00
Jonathan Boulle
e736a11ac4
etcdhttp: perform validation of query parameters
...
Add basic input validation of all query parameters supported by
serveKeys. Also restructures etcdhttp a bit to better facilitate
testing.
Test coverage is slightly improved.
2014-09-10 12:01:58 -07:00
Xiang Li
3d272c2686
Merge pull request #1044 from unihorn/119
...
http: check err return from http.NewRequest
2014-09-09 20:48:56 -07:00
Yicheng Qin
51e4bbfeb0
http: check err return from http.NewRequest
2014-09-09 20:46:56 -07:00
Yicheng Qin
4e31bb308d
raft: use const firstId to track ids
2014-09-09 19:07:20 -07:00
Yicheng Qin
8c58684fb7
etcdserver: fix testServer
2014-09-09 16:59:42 -07:00
Brandon Philips
bac88c047b
Merge pull request #1039 from philips/Procfile-note
...
Procfile: add a comment on how to use this
2014-09-09 16:49:08 -07:00
Brandon Philips
a9c288aadc
Procfile: add a comment on how to use this
2014-09-09 16:48:25 -07:00
Yicheng Qin
b50f96e2e1
raft: set none to be 0
2014-09-09 16:47:21 -07:00
Xiang Li
70443adc8d
Merge pull request #1038 from philips/vegan-etcd
...
*: stop using 0xBEEF
2014-09-09 16:43:54 -07:00