Brian Waldon
18c300f80c
etcd: pass flagset into setFlagsFromEnv
2014-09-24 16:11:47 -07:00
Brian Waldon
314c13a8f0
pkg: move DeprecatedFlag to new package
2014-09-24 16:09:37 -07:00
Brian Waldon
002ace2403
etcd: remove unnecessary flag desc
2014-09-24 16:03:53 -07:00
Jonathan Boulle
13c20b1b64
docs: update error codes in api document
2014-09-24 15:59:40 -07:00
Jonathan Boulle
c2ced7dc70
etcdserver: add tests for Set and Dir=true/false
2014-09-24 15:57:06 -07:00
Jonathan Boulle
ef0ba361df
etcdhttp: add test for expiration time
2014-09-24 15:46:40 -07:00
Brian Waldon
5059062275
Merge pull request #1166 from bcwaldon/override-usage
...
etcd: correctly override flag.Usage
2014-09-24 15:42:28 -07:00
Brian Waldon
69fba03fc1
etcd: correctly override flag.Usage
2014-09-24 15:39:06 -07:00
Jonathan Boulle
510213b1c2
Merge pull request #1159 from jonboulle/1159_prevvalue_required
...
`prevValue` ignored when no value provided
2014-09-24 15:30:25 -07:00
Jonathan Boulle
2e2cd12407
etcdhttp: disallow empty prevValue fields
2014-09-24 15:21:18 -07:00
Jonathan Boulle
f27b4cbbce
store: add etcd-index tests
2014-09-24 15:04:32 -07:00
Jonathan Boulle
a45d490598
Merge pull request #1146 from jonboulle/1146_protobuf
...
script protobuf generation
2014-09-24 14:34:49 -07:00
Jonathan Boulle
c28fd92d10
etcdserver: extend storeRecorder to test parameters
2014-09-24 14:33:51 -07:00
Jonathan Boulle
b15fefa8ea
store: use nextIndex where necessary
2014-09-24 14:07:52 -07:00
Brian Waldon
bbbd5fd5ec
Merge pull request #1150 from bcwaldon/deprecated-flags
...
Slurp up deprecated flags, logging a warning
2014-09-24 14:04:30 -07:00
Brian Waldon
bcedef83d3
etcd: override flag usage func
...
No need to communicate deprecated flags, so prevent them from getting
printed in the usage info.
2014-09-24 13:52:58 -07:00
Jonathan Boulle
c8c55aa378
scripts: consolidate and standardize protobuf generation
2014-09-24 13:45:00 -07:00
Xiang Li
1f736263b2
Merge pull request #1149 from unihorn/137
...
raft: stop tickElection when the node is not in peer list
2014-09-24 13:20:20 -07:00
Jonathan Boulle
ec1df42d04
Merge pull request #1138 from jonboulle/1138_timeout
...
etcdserver: handle watch timeouts and streaming
2014-09-24 12:39:34 -07:00
Brian Waldon
784d7ac680
etcd: warn on deprecated flags
2014-09-24 12:14:11 -07:00
Jonathan Boulle
a9caa24f8a
etcdhttp: add test for streaming watches
2014-09-24 11:27:36 -07:00
Jonathan Boulle
ddc30c0a33
etcdserver: use Context to communicate timeout, and add tests
2014-09-24 11:27:36 -07:00
Jonathan Boulle
172a32e5e3
etcdserver: correct timeout and streaming handling
...
This reintroduces the 'stream' parameter to support long-lived watch
sessions. These sessions respect a server timeout (set to 5 minutes by
default).
2014-09-24 11:27:36 -07:00
Brandon Philips
7aaaf49fee
Merge pull request #1148 from ThomasAlxDmy/master
...
Add link for etcd-backup
2014-09-24 11:17:06 -07:00
Yicheng Qin
1ca03d8e9d
raft: move logic to separate func
2014-09-24 10:23:44 -07:00
Yicheng Qin
b07be74a82
raft: stop tickElection when the node is not in peer list
...
This prevents the bug like this:
1. a node sends join to a cluster and succeeds
2. it starts with empty peers and waits for sync, but it have not
received anything
3. election timeout passes, and it promotes itself to leader
4. it commits some log entry
5. its log conflicts with the cluster's
2014-09-23 23:15:02 -07:00
Thomas Dmytryk
af01e11a5b
Added link for etcd-backup
2014-09-23 17:07:17 -07:00
Jonathan Boulle
f34e37f68f
Merge pull request #1134 from jonboulle/1134_flaky_test
...
flaky test TestSyncTriggerDeleteExpriedKeys
2014-09-23 16:13:19 -07:00
Jonathan Boulle
e97134e767
etcdserver: eliminate race in sync test
2014-09-23 15:49:20 -07:00
Jonathan Boulle
b85ad9bbc2
Merge pull request #1082 from jonboulle/1082_x_etcd_index
...
X-Etcd-Index returns the node's modifiedIndex
2014-09-23 15:14:21 -07:00
Brian Waldon
290b3915c2
Merge pull request #1144 from bcwaldon/TLS
...
Simplify TLS testing in transport pkg
2014-09-23 14:55:42 -07:00
Xiang Li
03152004d7
Merge pull request #1145 from coreos/fix_panic
...
raft: node ignores unexpected local messages receiving from network
2014-09-23 14:11:56 -07:00
Xiang Li
25c2768b8f
raft: node ignores unexpected local messages receiving from network
2014-09-23 13:50:43 -07:00
Yicheng Qin
dcdc7913c0
Merge pull request #1100 from unihorn/129
...
raft: add Configure
2014-09-23 13:50:10 -07:00
Brian Waldon
a299e92dfa
transport: fake out certificate parser
...
The work being done in the tests is completely wasted, as we do not
need to test the udnerlying x509 library. Faking out the parser function
allows the tests to run much faster without having to carry massive
fixtures, either.
2014-09-23 13:49:32 -07:00
Brian Waldon
4d68c933d1
Merge pull request #1142 from bcwaldon/TLS
...
TLS: peer server/transport and proxy transport
2014-09-23 13:19:13 -07:00
Yicheng Qin
c6cb635e01
etcdserver: refine comments of config change tests
2014-09-23 13:03:30 -07:00
Brian Waldon
4649a28097
transport: exercise TLSInfo.ClientConfig & ServerConfig
2014-09-23 12:52:59 -07:00
Brian Waldon
6ac4aea2bf
transport: test TLSInfo.Empty()
2014-09-23 12:19:32 -07:00
Brian Waldon
3c4b155395
transport: spot-check NewTransport
2014-09-23 12:14:50 -07:00
Yicheng Qin
bc7b0108dc
raft: ConfigChange -> ConfChange
2014-09-23 12:02:44 -07:00
Brian Waldon
73504dca41
proxy: determine scheme based on TLSClientConfig
2014-09-23 11:01:58 -07:00
Brian Waldon
1ea3197feb
proxy: pass addrs and scheme into newDirector
2014-09-23 11:01:55 -07:00
Brian Waldon
99e9f561ee
etcdserver: add Peers.Addrs
2014-09-23 10:56:41 -07:00
Brian Waldon
b94d0281d4
etcd: use TLS in proxy transport
2014-09-23 10:19:01 -07:00
Brian Waldon
10220335f7
etcdserver: determine scheme based on TLSClientConfig
2014-09-23 10:14:12 -07:00
Brian Waldon
e19b0442f8
etcdserver: pass scheme into send
2014-09-23 10:14:11 -07:00
Brian Waldon
fb7968d704
etcdserver: Peers.Pick returns just an addr
2014-09-23 10:09:34 -07:00
Brian Waldon
27813599a1
etcd: wire up peer TLS flags
2014-09-23 10:03:17 -07:00
Brian Waldon
342ea18239
transport: build TLS config in NewTransport
2014-09-23 10:03:17 -07:00