Xiang Li
69204397ee
tools/functional-tester: better logging
2016-08-07 14:21:44 -07:00
Gyu-Ho Lee
f505bcb91a
Merge pull request #6117 from gyuho/lease-test
...
integration: add more lease tests
2016-08-05 19:25:07 -07:00
Gyu-Ho Lee
f1f31f1015
integration: add more lease tests
...
Fix https://github.com/coreos/etcd/issues/6102 .
2016-08-05 19:09:46 -07:00
Anthony Romano
c71f0ea174
Merge pull request #6106 from heyitsanthony/strict-reconfig-healthy
...
etcdserver, embed: stricter reconfig checking
2016-08-05 17:15:01 -07:00
Anthony Romano
9063ce5e3f
etcdserver, embed: stricter reconfig checking
...
Make --strict-reconfig-check a default and check if cluster is healthy when
adding a member.
2016-08-05 16:59:25 -07:00
Gyu-Ho Lee
9764652356
Merge pull request #6081 from gyuho/functional-tester
...
etcd-tester: delete/range with limit, clean up
2016-08-05 11:28:41 -07:00
Gyu-Ho Lee
854a215329
etcd-tester: delete/range with limit, clean up
2016-08-05 11:21:36 -07:00
Xiang Li
4a7fabd219
Merge pull request #6098 from xiang90/lease
...
Fix Lease
2016-08-05 10:08:24 -07:00
Xiang Li
6c3efde51b
Merge pull request #6099 from sinsharat/master
...
raft: handling of applying old snapshots
2016-08-05 07:38:07 -07:00
Xiang Li
d69d438289
*: minor cleanup for lease
2016-08-04 20:39:32 -07:00
Gyu-Ho Lee
7ed8a133d2
Merge pull request #6104 from gyuho/typo
...
pkg/transport: fix minor typo
2016-08-04 16:03:40 -07:00
Gyu-Ho Lee
c38f0290a7
pkg/transport: fix minor typo
2016-08-04 16:00:18 -07:00
Xiang Li
c46955b60a
Merge pull request #6097 from swingbach/master
...
raft: fix #6096
2016-08-04 11:40:02 -07:00
Gyu-Ho Lee
e2a956c0c4
Merge pull request #6100 from gyuho/sort-comment
...
clientv3: ignore sort-ascend-key option
2016-08-04 11:28:49 -07:00
Xiang Li
bd62b0a646
mvcc: attach keys to leases after recover all state
...
The previous logic is wrong. When we have hisotry like Put(foo, bar, lease1),
and Put(foo, bar, lease2), we will end up with attaching foo to two leases 1 and
2. Similar things can happen for deattach by clearing the lease of a key.
Now we try to fix this by starting to attach leases at the end of the recovery.
We use a map to keep the last lease attachment state.
2016-08-04 11:17:58 -07:00
Gyu-Ho Lee
ddddecc3ab
clientv3: ignore sort-ascend-key option
2016-08-04 11:13:41 -07:00
Xiang Li
75c06cacae
lease: do lease delection in the kv txn
2016-08-04 10:06:47 -07:00
Xiang Li
4d59b6f52c
lease: delete kvs in a txn
2016-08-04 10:06:46 -07:00
sharat
fd757756f5
raft: handling of applying old snapshots
...
There was a TODO requirement to handle ErrorSnapshotOutOfDate for the
function ApplySnapshot. The same has been implemented
#6090
2016-08-04 21:08:24 +05:30
Xiang Li
29a077bdbe
etcdserver: always recover lessor first
2016-08-04 08:06:19 -07:00
swingbach@gmail.com
41dee84733
raft: fix #6096
2016-08-04 18:31:22 +08:00
Anthony Romano
eb36d0dbba
Merge pull request #6084 from heyitsanthony/srv-servername
...
etcdctl: set TLS servername on discovery
2016-08-03 23:51:11 -07:00
Anthony Romano
a752338d45
Documentation: update clustering guide about PKI SRV record forging
2016-08-03 22:28:03 -07:00
Anthony Romano
d1809830bb
embed: use ServerName on TLS DNS discovery without CA file
2016-08-03 22:28:03 -07:00
Anthony Romano
ab4ac828f3
etcdmain: check TLS on gateway SRV records
2016-08-03 22:28:03 -07:00
Anthony Romano
e218834b58
etcdctl: set ServerName for TLS when using --discovery-srv
2016-08-03 22:28:03 -07:00
Anthony Romano
cd781bf30c
transport: add ServerName to TLSConfig and add ValidateSecureEndpoints
...
ServerName prevents accepting forged SRV records with cross-domain
credentials. ValidateSecureEndpoints prevents downgrade attacks from SRV
records.
2016-08-03 22:28:03 -07:00
Xiang Li
6e7baab32c
Merge pull request #6070 from swingbach/master
...
raft: fix #6068
2016-08-03 19:59:07 -07:00
Gyu-Ho Lee
cabd28516c
Merge pull request #6092 from gyuho/transport
...
pkg/transport: update scheme to unix without copy
2016-08-03 10:59:00 -07:00
Gyu-Ho Lee
c8cc87c3f5
pkg/transport: update scheme to unix copying URL
2016-08-03 10:35:28 -07:00
Xiang Li
bc9882f521
Merge pull request #6087 from xiang90/grpc_create
...
grpcproxy: handle create event
2016-08-03 09:31:33 -07:00
Xiang Li
57c68ab1db
grpcproxy: handle create event
2016-08-02 20:51:30 -07:00
Xiang Li
c30a436829
Merge pull request #6086 from xiang90/sc
...
clientv3: add send created notification
2016-08-02 20:27:04 -07:00
Xiang Li
33c3583b50
clientv3: add send created notification
2016-08-02 20:08:11 -07:00
Anthony Romano
76e62c39b0
Merge pull request #6085 from heyitsanthony/lease-elect-timeout
...
etcdserver, lease: tie lease min ttl to election timeout
2016-08-02 13:27:04 -07:00
Anthony Romano
bf71497537
etcdserver, lease: tie lease min ttl to election timeout
2016-08-02 13:06:57 -07:00
swingbach@gmail.com
c0a8da7fd0
raft: minor refactor
2016-08-02 08:46:43 +08:00
Gyu-Ho Lee
4db07dbc93
Merge pull request #6079 from gyuho/cleanup-functional-tester
...
etcd-tester: remove unnecessary arg from stresser
2016-08-01 15:40:50 -07:00
Gyu-Ho Lee
755eee0d30
etcd-tester: remove unnecessary arg from stresser
2016-08-01 15:35:31 -07:00
Gyu-Ho Lee
b23045e34d
Merge pull request #6078 from gyuho/release-note
...
dev-internal: update release note
2016-08-01 15:14:05 -07:00
Gyu-Ho Lee
fc4b30a1e0
dev-internal: update release note
...
For https://github.com/coreos/etcd/issues/6049 .
2016-08-01 15:09:47 -07:00
Gyu-Ho Lee
9836990aa7
Merge pull request #6077 from gyuho/auth-guest
...
v2http: use guest access in non-TLS mode
2016-08-01 14:32:46 -07:00
Gyu-Ho Lee
87498e0209
v2http: use guest access in non-TLS mode
...
Fix https://github.com/coreos/etcd/issues/6075 .
2016-08-01 14:00:38 -07:00
Anthony Romano
59ac42ff38
Merge pull request #6073 from heyitsanthony/rafthttp-close-stream
...
rafthttp: close http socket when pipeline handler gets a raft error
2016-07-31 21:49:04 -07:00
Anthony Romano
911dcc9386
rafthttp: close http socket when pipeline handler gets a raft error
...
Otherwise the http stream remains open and keeps receiving raft messages.
This can lead to "raft: stopped" log spam on closing an embedded server.
Fixes #5981
2016-07-31 20:25:42 -07:00
Xiang Li
a2715e3bda
Merge pull request #6072 from xiang90/tls_err
...
Log TLS error in health checking
2016-07-31 20:17:47 -07:00
Xiang Li
9311d7b77e
rafthttp: log health checking error early
2016-07-31 19:58:22 -07:00
Xiang Li
5a83f05e96
dep: update probing
2016-07-31 18:24:00 -07:00
Xiang Li
a60387bab2
Merge pull request #6001 from mitake/auth-errcode
...
client, etcdserver: propagate status code of auth related error
2016-07-31 08:28:41 -07:00
Hitoshi Mitake
564bf8d17e
client: utility functions for getting detail of v2 auth errors
...
Current v2 auth API doesn't propagate its error code. This commit adds
utility functions for parsing error messages and getting detail of v2
auth errors.
Fixes https://github.com/coreos/etcd/issues/5894
2016-07-31 21:23:58 +09:00