Gyu-Ho Lee
e9cd8410d7
integration: add 'prevKV' to TestV3DeleteRange
2016-10-07 11:03:19 -07:00
Anthony Romano
73c8fdac53
integration: fix compilation for backported Election test
2016-09-15 11:45:37 -07:00
Jason E. Aten
4b48876f0e
clientv3/concurrency: allow election on prefixes of keys.
...
After winning an election or obtaining a lock, we
auto-append a slash after the provided key prefix.
This avoids the previous deadlock due to waiting
on the wrong key.
Fixes #6278
Conflicts:
clientv3/concurrency/election.go
clientv3/concurrency/mutex.go
2016-08-31 09:46:05 -07:00
Hongchao Deng
93d13fb5b4
integration: NewClusterV3 should launch cluster before creating clients
2016-08-18 14:54:45 -07:00
Anthony Romano
f4d15a430c
integration: treat client TLS connecting to insecure server as timeout
2016-08-16 12:09:42 -07:00
Anthony Romano
4a841459f1
clientv3: respect up/down notifications from grpc
...
Fixes #5842
2016-08-16 12:09:38 -07:00
Anthony Romano
21092ca715
integration: change timeouts for TestWatchWithProgressNotify
...
a) 2 * progress interval was passing with dropped notifies
b) waitResponse was waiting so long that it expected a dropped notify
2016-07-21 10:59:54 -07:00
Anthony Romano
6b7891d5f1
integration: add FailFast(false) to failing tests
2016-07-14 19:01:17 -07:00
Anthony Romano
bec58d5f58
integration: test grpc error equivalence with Error()
2016-07-14 18:47:00 -07:00
Anthony Romano
b837feffe4
client/integration: test v2 client one shot operations
2016-07-07 17:30:09 -07:00
Anthony Romano
13d0ea7f54
integration: use unix domain sockets for all connections
2016-06-24 21:18:19 -07:00
Anthony Romano
7abc8f21eb
integration: update tests for new grpc reconnection interface
2016-06-08 01:04:59 -07:00
Anthony Romano
1823702cc6
integration: bridge connections to grpc server
...
Tests need to disconnect the network connection for the client to check
reconnection paths but closing a grpc connection closes the logical connection.
To disconnect the client, instead have a bridge between the server and
the client which can monitor and reset connections.
2016-06-08 00:34:53 -07:00
Gyu-Ho Lee
1610391449
*: following changes for proto update
2016-06-07 13:33:03 -07:00
Anthony Romano
7dfe7db243
clientv3: panic if ActiveConnection tries to return non-nil connection
2016-06-03 10:25:20 -07:00
Xiang Li
755567cb3d
Merge pull request #5547 from xiang90/int
...
integration: always return active client
2016-06-02 15:52:38 -07:00
Xiang Li
bbfe7f401f
integration: always return active client
...
In the integration test, we sometimes stop/restart an etcd server.
Now our client has internal connection monitoring logic that might
set conn to nil when there is a connection failure and the redial
also fails.
Chaning randClient to always return a client with active connection
to make integration test reliable.
2016-06-02 14:49:32 -07:00
Anthony Romano
84a487f723
Revert "etcdserverpb: make RangeResponse.More an int64"
...
This reverts commit 84e1ab876539b0bcd1387d7ce6c8b07b72f398d2.
2016-06-02 13:43:40 -07:00
Anthony Romano
84e1ab8765
etcdserverpb: make RangeResponse.More an int64
2016-06-01 17:10:23 -07:00
Anthony Romano
7709cd84bb
Merge pull request #5505 from heyitsanthony/v3rpc-watcher-close
...
v3rpc: fix race on ctrl channel when watcher stream closes
2016-05-31 14:24:10 -07:00
Gyu-Ho Lee
b0d4a0a9bd
integration: skip closed client in Terminate
2016-05-31 12:00:15 -07:00
Anthony Romano
41d3cea9b3
integration: test closing stream while creating watchers
2016-05-31 11:02:15 -07:00
Xiang Li
ac2859057a
integration: move cap enabling to init
2016-05-27 11:12:07 -07:00
Xiang Li
340df26883
Merge pull request #5435 from xiang90/cap
...
api: add v3rpc capability
2016-05-23 15:50:08 -07:00
Xiang Li
1c544c3ba5
api: add v3rpc capability
2016-05-23 14:45:08 -07:00
Gyu-Ho Lee
ddbe46543d
integration: add logs for debugging
2016-05-23 11:23:41 -07:00
Anthony Romano
73204e9637
etcdserver: wait for snapshots before closing raft
...
Fixes #5374
2016-05-17 15:04:25 -07:00
Anthony Romano
8ffbaef502
Merge pull request #5364 from heyitsanthony/fix-election-wait
...
integration: fix TestElectionWait
2016-05-16 10:30:17 -07:00
Anthony Romano
c21b885dd5
integration: fix TestElectionWait
...
elections are now per-session so waiting on the same election with the
same client will not block like before
Fixes #5362
2016-05-16 07:32:42 -07:00
Xiang Li
ec2ac72585
proxy: initial grpc kv service proxy
2016-05-13 23:00:29 -07:00
Xiang Li
c7c0e1eb7a
integration: remove parallel testing
...
We cannot do testing in parallel since leak testing will detect the goroutines
in other tests running in parallel.
2016-05-13 12:01:25 -07:00
Anthony Romano
120020fa9c
clientv3/concurrency: use session id for election keys to avoid deadlock
2016-05-13 10:07:35 -07:00
Anthony Romano
393725fe5f
clientv3/concurrency: ctx-ize Leader(), Resign(), and Unlock()
2016-05-13 10:07:35 -07:00
Gyu-Ho Lee
ef44f71da9
*: update LICENSE header
2016-05-12 20:51:48 -07:00
Xiang Li
a880e9c7cb
Merge pull request #5332 from xiang90/sl
...
*: cancel required leader streams when memeber lost its leader
2016-05-12 20:24:34 -07:00
Xiang Li
9c103dd0de
*: cancel required leader streams when memeber lost its leader
2016-05-12 19:42:21 -07:00
Gyu-Ho Lee
78ae4b92a6
integration: fix NewClientV3 error messages
2016-05-12 10:26:27 -07:00
Xiang Li
19221b33cc
*: etcd member rejects unary call with leader requirement when it does not have leader
2016-05-11 16:34:34 -07:00
Anthony Romano
8b52fd0d2d
clientv3: gracefully handle watcher resume on compacted revision
...
Fixes #5239
2016-05-03 09:30:53 -07:00
Gyu-Ho Lee
ec1fdd3938
integration: test with new server errors
2016-04-29 12:00:26 -07:00
Gyu-Ho Lee
bef5be42b5
integration: add quota backend bytes option
2016-04-28 12:15:31 -07:00
Anthony Romano
11ec94b7e8
Merge pull request #5218 from heyitsanthony/fix-issue-3699
...
integration: wait for ReadyNotify in Issue3699 test
2016-04-28 10:48:08 -07:00
Anthony Romano
7c666b533a
Merge pull request #5221 from heyitsanthony/parallel-e2e-integration
...
test: run e2e and integration tests in parallel
2016-04-28 10:30:40 -07:00
Anthony Romano
85edd66c65
test: run e2e and integration tests in parallel
2016-04-28 10:17:40 -07:00
Xiang Li
6ee5f9c677
etcdserver: add timeout for processing v3 request
2016-04-28 08:52:17 -07:00
Anthony Romano
d814e9dc35
integration: wait for ReadyNotify in Issue3699 test
...
Fixes #5147
2016-04-27 22:04:07 -07:00
Xiang Li
434f2c356d
etcdserver: do not serve requests before finish the first internal proposal
2016-04-27 15:46:31 -07:00
Anthony Romano
22797c7185
clientv3/concurrency: use session lease id for mutex keys
...
With randomized keys, if the connection goes down, but the session remains,
the client would need complicated recovery logic to avoid deadlock.
Instead, bind the session's lease id to the lock entry; if a session tries
to reacquire the lock it will reassume its old place in the wait list.
2016-04-26 17:37:26 -07:00
Anthony Romano
b7ac758969
*: rename storage package to mvcc
2016-04-25 15:25:51 -07:00
Anthony Romano
2927c90fae
integration: wait for alarm in TestV3StorageQuotaApply
...
Fixes #4974
2016-04-21 20:53:43 -07:00