Xiang Li
2f96a68a20
etcdserver: do not send v2 sync if ttl keys do not exist
2016-12-07 14:48:15 -08:00
Anthony Romano
da3b71b531
Merge pull request #6929 from heyitsanthony/ctx-lease-renew
...
etcdserver: use context for Renew
2016-12-07 00:05:14 -08:00
Xiang Li
96626d0a23
Merge pull request #6957 from coreos/philips-patch-1
...
Documentation: add blox and chain as users
2016-12-06 20:23:27 -08:00
Brandon Philips
1bee237acf
Documentation: add blox and chain as users
2016-12-06 20:20:40 -08:00
Xiang Li
c4e5081562
Merge pull request #6943 from m1093782566/fix-store-test-comments
...
store: fix store_test.go comments
2016-12-06 16:54:36 -08:00
Xiang Li
529806dba1
Merge pull request #6935 from bdarnell/election-test
...
raft: Fix election "logs converge" test
2016-12-06 16:45:39 -08:00
Anthony Romano
be1f36d97c
v3rpc, etcdserver, leasehttp: ctxize Renew with request timeout
...
Would retry a few times before returning a not primary error that
the client should never see. Instead, use proper timeouts and
then return a request timeout error on failure.
Fixes #6922
2016-12-06 14:09:57 -08:00
Anthony Romano
f6042890b7
integration: use RequireLeader for TestV3LeaseFailover
...
Giving Renew() the default request timeout causes TestV3LeaseFailover
to miss its timing constraints. Since it only needs to wait until the
leader recognizes the leader is lost, use RequireLeader to cancel the
keepalive stream before the request times out.
2016-12-06 14:09:57 -08:00
Anthony Romano
fdd89df1eb
clientv3/integration: test lease keepalive works following quorum loss
2016-12-06 14:09:57 -08:00
Xiang Li
cfd10b4bbf
Merge pull request #6949 from xiang90/faq
...
doc: initial faq
2016-12-06 10:08:09 -08:00
Xiang Li
58150937c0
doc: initial faq
2016-12-06 08:48:57 -08:00
Xiang Li
1b0ffdaff0
Merge pull request #6945 from sttts/sttts-update-ugorji
...
Update ugorji
2016-12-06 08:05:13 -08:00
Dr. Stefan Schimanski
9c364efef6
client: update generated ugorji codec
2016-12-06 07:53:47 +01:00
Dr. Stefan Schimanski
b21731c022
vendor: update ugorji/go
2016-12-06 07:53:47 +01:00
m1093782566
9603d5e31f
store: fix store_test.go comments
2016-12-06 09:31:59 +08:00
Gyu-Ho Lee
994e0d2182
Merge pull request #6950 from gyuho/fix-readstatec-deadlock
...
etcdserver: time out when readStateC is blocking
2016-12-05 16:37:47 -08:00
Anthony Romano
cbee2b74a3
Merge pull request #6948 from heyitsanthony/fix-metric-deadlock
...
grpcproxy: fix deadlock in watchbroadcast
2016-12-05 16:17:26 -08:00
Gyu-Ho Lee
3fd1d951f8
etcdserver: time out when readStateC is blocking
...
Otherwise, it will block forever when the server is overloaded.
Fix https://github.com/coreos/etcd/issues/6891 .
2016-12-05 15:34:46 -08:00
Anthony Romano
91ff6f30b5
grpcproxy: fix deadlock in watchbroadcast
...
Calling empty() in watchbroadcast methods was trying to
lock the rwmutex when it was already held.
Fixes #6937
2016-12-05 15:06:44 -08:00
Anthony Romano
2509e7ad2c
Merge pull request #6947 from heyitsanthony/grpc-stat-race
...
grpcproxy: lock store when getting size
2016-12-05 14:30:00 -08:00
Xiang Li
8fefd1f471
Merge pull request #6942 from eiipii/eiipiiVersion2ScalaClient
...
eiipii/etcdhttpclient library added to documentation on external clients
2016-12-05 14:12:47 -08:00
antoniomaciej
f62ed3d642
Documentation: link added to libraries-and-tools.md with a new v2 Scala
...
Client
2016-12-05 22:55:17 +01:00
Anthony Romano
b9b14b15d6
Merge pull request #6946 from heyitsanthony/fix-e2e-getrole
...
etcdctl: remove GetUser check before mutable commands
2016-12-05 13:34:52 -08:00
Anthony Romano
62398954e4
grpcproxy: lock store when getting size
...
Fixes data race in proxy integration tests.
2016-12-05 13:29:57 -08:00
Anthony Romano
5559a026d7
etcdctl: remove GetUser check before mutable commands
...
etcdctl was checking if the user exists before applying mutable calls;
if etcdctl contacts a minority member, the member may not know the user
exists on the cluster yet, causing command failure when it should succeed.
If the user does not exist, it will be picked up once the command goes
through raft.
Fixes #6932
2016-12-05 12:12:06 -08:00
Xiang Li
2b6ad93036
Merge pull request #6936 from xiang90/put_rate
...
banchmark: add rate limit
2016-12-05 12:01:15 -08:00
Xiang Li
e62e9ce193
benchmark: add rate limit
2016-12-05 09:54:30 -08:00
Xiang Li
40f0193c4c
Merge pull request #6938 from bdarnell/ispaused
...
raft: Export Progress.IsPaused
2016-12-03 21:51:09 -08:00
Ben Darnell
f60a5d6025
raft: Export Progress.IsPaused
...
CockroachDB would like to use this method for monitoring.
2016-12-04 13:14:08 +08:00
Ben Darnell
340ba8353c
raft: Fix election "logs converge" test
...
The "logs converge" case in TestLeaderElectionPreVote was incorrectly
passing because some nodes were not actually using the preVoteConfig.
This test case was more complex than its siblings and it was not
verifying what it wanted to verify, so pull it out into a separate test
where everything can be tested more explicitly.
Fixes #6895
2016-12-03 17:29:15 +08:00
Xiang Li
d844440ffb
Merge pull request #6930 from xiang90/grpc_metrics
...
grpcproxy: add cache related metrics
2016-12-02 18:30:49 -08:00
Xiang Li
0cb680800e
grpcproxy: add cache related metrics
2016-12-02 15:29:42 -08:00
Xiang Li
1f954dc9f4
Merge pull request #6926 from xiang90/metrics
...
grpcproxy: add richer metrics for watch
2016-12-02 14:13:43 -08:00
Xiang Li
a686c994cd
grpcproxy: add richer metrics for watch
2016-12-02 11:13:30 -08:00
Anthony Romano
f61b4ae5ad
Merge pull request #6921 from heyitsanthony/fix-watch-prevkv-test-leak
...
integration: cancel Watch when TestV3WatchWithPrevKV exits
2016-12-01 15:25:00 -08:00
Anthony Romano
76bb33781f
integration: cancel Watch when TestV3WatchWithPrevKV exits
...
Missing ctx cancel was causing goroutine leaks for the proxy tests.
2016-12-01 15:08:18 -08:00
Gyu-Ho Lee
9647012cb1
Merge pull request #6920 from endocode/dongsu/sdnotify-go-systemd
...
vendor: bump go-systemd to v14 to avoid build error
2016-12-01 10:39:40 -08:00
fanmin shi
b9e9c9483b
Merge pull request #6885 from fanminshi/refractor_lease_checker
...
etcd-tester: refactor lease checker
2016-12-01 10:11:15 -08:00
Dongsu Park
5e351956b9
vendor: bump go-systemd to v14 to avoid build error
...
Bump go-systemd to v14 (48702e0d, 2016-11-14).
Also adjust caller of daemon.SdNotify() to avoid build error, which can
be seen especially when running "go get github.com/coreos/etcd".
2016-12-01 13:26:46 +01:00
Anthony Romano
5d60482357
Merge pull request #6911 from m1093782566/fix-get-sorted
...
store: check sorted order in TestStoreGetSorted
2016-11-30 19:49:55 -08:00
Anthony Romano
4e52b80590
Merge pull request #6916 from heyitsanthony/fix-coalesce-bcast-race
...
grpcproxy: fix race between coalesce and bcast on nextrev
2016-11-30 19:49:10 -08:00
m1093782566
5f2b5e8b9d
store: check sorted order in TestStoreGetSorted
2016-12-01 10:36:23 +08:00
fanmin shi
394ab43587
etcd-tester: refactor lease checker
...
Move few checking logic from lease stresser to lease checker and change connection logic for lease stresser and checker
2016-11-30 17:29:58 -08:00
Anthony Romano
60908c64a6
grpcproxy: fix race between coalesce and bcast on nextrev
...
coalesce was locking the target coalesce broadcast object but not the source
broadcast object resulting in a data race on the source's nextrev.
2016-11-30 16:50:29 -08:00
Anthony Romano
98cd3fddc9
Merge pull request #6907 from heyitsanthony/fix-quota-proxy-failfast
...
integration: use Range to wait for reboot in quota tests
2016-11-30 16:49:54 -08:00
Anthony Romano
f1e0525c81
integration: use Range to wait for reboot in quota tests
...
Proxy client layer ignores call options so Put is always FailFast;
this can lead to connection errors when trying to issue the Put
following restarting the client's target server.
2016-11-30 13:56:30 -08:00
Anthony Romano
7079bf9a75
Merge pull request #6574 from vimalk78/auth-simpletoken-not-removed#6554
...
auth/simple_token.go : token not removed when etcdctl session closes …
2016-11-30 11:33:23 -08:00
Xiang Li
8eec86f7fb
Merge pull request #6888 from fanminshi/use_monotonic_time_for_lease
...
Use monotonic time in lease
2016-11-29 13:39:01 -08:00
fanmin shi
e7f4010cca
lease: Use monotonic time in lease
...
lease uses monotimer to calculate its expiration. In this way, changing system time won't affect in lease expiration.
FIX #6700
2016-11-29 12:31:00 -08:00
Anthony Romano
cac30beed5
Merge pull request #6906 from heyitsanthony/fix-watchclose-race
...
grpcproxy: fix race between watch ranges delete() and broadcasts empty()
2016-11-28 16:26:03 -08:00