b261a5edc1
raft: test node block proposal
2014-09-12 11:51:25 -07:00
30289dad5c
raft: more descriptive panic info
2014-09-12 11:39:53 -07:00
072a21782e
Merge pull request #1049 from unihorn/120
...
raftLog: enhance check in compact
2014-09-12 11:35:41 -07:00
d31443f5a3
raftLog: compact applied entries only
...
compact MUST happen on entries that have been applied, or
1. it may screw up the log by setting wrong commitIndex
2. discard unapplied entries
2014-09-12 11:34:08 -07:00
6edb471d58
Merge pull request #1045 from unihorn/119
...
wal: change wal filename format
2014-09-12 11:31:46 -07:00
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
1a0ad54d3e
Merge pull request #1059 from coreos/node_test
...
test node step
2014-09-12 10:23:53 -07:00
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
58b8610024
raft: add a doc.go file
...
Explain the package from a high level.
2014-09-12 09:57:48 -07:00
50c1a34f78
Merge pull request #1060 from jonboulle/peers
...
etcdserver/etcdhttp: split out peers and add tests
2014-09-11 23:53:54 -07:00
073411f23f
raft: remove vote with default value
2014-09-11 23:17:13 -07:00
dc1357afa9
raft: use raft helper function in testing
2014-09-11 19:26:29 -07:00
0e0fc2bd24
raft: use [1,n] as address list for raft state machines
2014-09-11 19:23:05 -07:00
84c2bd0b7d
raft: set From of local message to be local id
2014-09-11 19:18:47 -07:00
20776f1947
etcdserver: use int64slice directly
2014-09-11 19:17:07 -07:00
281afa74ee
raft: comments for TestNodeStep
2014-09-11 19:00:40 -07:00
e18b8c12be
etcdserver: switch to proper int64Slice for sorting
2014-09-11 17:28:08 -07:00
81b5967e0a
Merge pull request #1054 from philips/add-wal-doc
...
wal: add a doc file
2014-09-11 17:18:53 -07:00
eb1dcb324c
raft: test node step
2014-09-11 17:10:36 -07:00
5f66b35852
etcdserver/etcdhttp: split out peers and add tests
2014-09-11 16:53:55 -07:00
c03798f99b
Merge pull request #1011 from jonboulle/clean_http
...
Validate HTTP API user input
2014-09-11 15:31:25 -07:00
786982d8e5
simplify
2014-09-11 15:13:56 -07:00
52ddd389ff
etcdhttp: use Form values over query parameters
2014-09-11 15:12:31 -07:00
40341b488c
Merge pull request #1058 from philips/grammar-fix
...
raft: log comment grammar fix
2014-09-11 14:06:33 -07:00
3bc4b2db12
raft: log comment grammar fix
2014-09-11 13:59:50 -07:00
f7f65ec464
Merge pull request #1056 from coreos/test
...
test: test wait pkg
2014-09-11 13:56:51 -07:00
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
413b6a59ff
wal: add more explanation to wal filename format
2014-09-11 12:51:50 -07:00
9bd9d88a9d
test: sort the pkgs
2014-09-11 12:48:18 -07:00
0feb153034
test: test wait pkg
2014-09-11 12:38:43 -07:00
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
04abd5603f
wal: add a doc file
2014-09-10 20:40:20 -07:00
71a1c1aa84
Merge pull request #1053 from philips/proxy-in-procfile
...
Procfile: add a proxy
2014-09-10 18:47:53 -07:00
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
338ca6050e
Merge pull request #1048 from bcwaldon/proxy-monster
...
proxy mode
2014-09-10 18:09:50 -07:00
7415d53020
proxy: add proxy-mode functionality to etcd daemon
2014-09-10 18:06:56 -07:00
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
a3334eed23
main: break out startEtcd func
2014-09-10 18:04:02 -07:00
bafe960dba
etcdhttp: add Peers.Endpoints
2014-09-10 18:02:02 -07:00
2b39ee1bb3
Merge pull request #1051 from bcwaldon/Id
...
*: s/Id/ID/
2014-09-10 16:13:04 -07:00
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
e2d01eff35
etcdserver: switch to using etcd.Error
2014-09-10 15:46:13 -07:00
21c214ac03
Merge pull request #1050 from jonboulle/ignore
...
gitignore: ignore vim swap files
2014-09-10 15:09:45 -07:00
2342402434
etcdserver: address style comments
2014-09-10 14:14:14 -07:00
255e62dcdd
gitignore: ignore vim swap files
2014-09-10 12:06:28 -07:00
bed63cddf7
etcdhttp: add tests for ParseBool/ParseUint64 helpers
2014-09-10 12:05:36 -07:00
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
3d272c2686
Merge pull request #1044 from unihorn/119
...
http: check err return from http.NewRequest
2014-09-09 20:48:56 -07:00
51e4bbfeb0
http: check err return from http.NewRequest
2014-09-09 20:46:56 -07:00
4e31bb308d
raft: use const firstId to track ids
2014-09-09 19:07:20 -07:00