3a7b5c1b2b
clientv3/integration: log test failures from slow balancer as TODO
...
Balancer tests have been flaky since last balancer rewrite.
Should be from slow balancer failover. Once we re-rewrite balancer
with roundrobin, there should be no more flaky tests as below:
TestBalancerUnderServerStopInflightLinearizableGetOnRestart (27.62s)
server_shutdown_test.go:343: context deadline exceeded
TestBalancerUnderServerShutdownDelete (3.22s)
util.go:32: context deadline exceeded
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-10 13:47:07 -07:00
a60bb6104c
*: regenerate "fixtures-expired"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-09 10:59:52 -07:00
e280f8c3da
clientv3/integration: adjust timeouts for TestLeasingReconnectOwnerRevoke
...
Now Restart takes longer, and leasing Get blocks
on server restarts anyway, so fix CI failures in
slow machines.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-08 10:58:18 -08:00
3e69dc5a7c
clientv3/integration: test "rpctypes.ErrLeaseTTLTooLarge"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-08 10:19:30 -08:00
8a518b01c4
*: revert "internal/mvcc" change
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-26 17:11:40 -08:00
dd2f3b0de8
*: revert "internal/lease" change
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-26 17:11:40 -08:00
80d15948bc
*: move "mvcc" to "internal/mvcc"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-26 11:14:41 -08:00
349a377a67
*: move "lease" to "internal/lease"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-26 11:09:29 -08:00
c837e01c7f
clientv3/integration: add TestMemberAddUpdateWrongURLs
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-22 11:24:15 -08:00
3b7e2ce0ca
StatusFromError: handle return value of the function
...
status.FromError can return nil, false. We are handling the return values
most places in code but some places we aren't. Fixing it herewith.
Fixes #9117
2018-01-08 22:28:20 -05:00
7b4fc2601c
clientv3/integration: fix typos
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-03 17:26:43 -08:00
d21fef2d41
integration: add constant RequestWaitTimeout.
2018-01-03 15:53:57 -05:00
806ff6dff9
clientv3/integration: fix TestKVLargeRequests with -tags cluster_proxy
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-02 10:50:29 -08:00
88fe8de99b
clientv3/integration: fix TestKVPutError
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2017-12-20 10:58:05 -08:00
f38593bbad
clientv3/integration: test large KV requests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2017-12-20 10:58:05 -08:00
f87760998b
clientv3: call KV/Txn APIs with default gRPC call options
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2017-12-20 10:58:05 -08:00
7cd985bdac
clientv3: translate Snapshot API gRPC status error
...
To be consistent with other APIs.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2017-12-19 10:46:19 -08:00
a7cb307a18
clientv3/integration: add more tests on balancer switch, inflight range
...
Test all possible cases of server shutdown with inflight range requests.
Removed redundant tests in kv_test.go.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-27 15:05:12 -08:00
bd76ac85db
clientv3/integration: move isServerCtxTimeout to server_shutdown_test.go
...
Tests with cluster_proxy tags were failing, since isServerCtxTimeout
was defined with "+build !cluster_proxy".
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-27 15:02:48 -08:00
0d0e8e78f7
clientv3/integration: handle server-side context timeouts from clock-drift
...
Due to clock drifts in server-side, client context times out
first in server-side, while original client-side context is
not timed out yet.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-27 14:02:09 -08:00
5a154e8e2b
*: disable gRPC client logs in tests
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-11 20:56:00 -08:00
123b869a0f
clientv3/integration: match grpc.ErrClientConnClosing in TestKVNewAfterClose
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-10 15:39:35 -08:00
52f4bc9061
clientv3/integration: remove TestKVGetOneEndpointDown
...
Already tested in other server shutdown tests.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-10 14:46:40 -08:00
dfe0f8c2bc
Merge pull request #8839 from gyuho/test-balancer
...
clientv3/integration: test linearizable get with leader election, network partition
2017-11-10 13:55:11 -08:00
00b15e38df
words: whitelist prometheus
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-10 10:08:48 -08:00
973857107e
clientv3: update metrics to use promhttp
...
Update clientv3/example_metrics_test.go and clientv3/integration/metrics_test.go to use promhttp.Handler() instead of prometheus.Handler()
fixes #8729
2017-11-10 09:47:49 -08:00
706cf20339
clientv3/integration: test linearizable get with leader election, network partition
...
Test case that failed my balancer refactor https://github.com/coreos/etcd/pull/8834 .
Current, kv network partition tests do not specifically test
isolated leader case.
This PR moves TestKVSwitchUnavailable to network_partition_test.go
and make it always isolate leader.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-07 19:51:24 -08:00
f49f5c9094
*: disable grpc client log in tests by default
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-07 15:05:13 -08:00
0ca8f420d4
clientv3/integration: match more errors in put retries
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-31 13:31:38 -07:00
2c13231e7b
clientv3/integration: increase balancer switch timeout for TestKVGetResetLoneEndpoint
...
Since 3-second is the minimum time to keep an endpoint in unhealthy,
it is possible that endpoint switch happens right after context timeout.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-31 10:48:15 -07:00
8d23e1c870
clientv3/integration: add blackhole tests for range RPCs
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-30 19:18:53 -07:00
a37dd0055f
clientv3/integration: move to TestBalancerUnderBlackholeKeepAliveWatch
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-30 17:19:48 -07:00
8d5c284b6c
clientv3/integration: add blackhole tests on mutable operations
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-30 13:32:59 -07:00
bea930f44d
clientv3/integration: finish isolated node test cases
...
1. one with retry
2. one without retry (range request with longer timeouts)
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-30 11:17:43 -07:00
ca1e6a74e0
Merge pull request #8782 from gyuho/rename
...
clientv3/integration: rename to 'mustWaitPinReady'
2017-10-27 15:07:31 -07:00
5d169b866f
clientv3/integration: rename to 'mustWaitPinReady'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-27 15:00:31 -07:00
03ce2fa037
clientv3/integration: remove client keepalive in network partition tests
...
Those tests are about balancer endpoint switch, not about keepalive pings.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-27 14:47:37 -07:00
2cea13ba68
Merge pull request #8779 from gyuho/shutdown-test
...
clientv3/integration: add TestBalancerUnderServerShutdownImmutable
2017-10-27 12:23:22 -07:00
732c40531b
Merge pull request #8762 from gyuho/partition-test
...
clientv3/integration: add TestBalancerUnderNetworkPartitionWatch
2017-10-27 12:22:32 -07:00
62821158aa
Merge pull request #8767 from xiang90/f
...
clientv3/integration: fix a todo in testNetworkPartitionBalancer
2017-10-27 11:26:40 -07:00
9d95cfb105
clientv3/integration: add TestBalancerUnderServerShutdownImmutable
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-27 10:55:12 -07:00
e980bde82d
clientv3/integration: add TestBalancerUnderNetworkPartitionWatch
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-26 18:17:00 -07:00
0bfc6a0d92
clientv3/integration: add TestBalancerUnderServerShutdownMutable*
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-26 16:42:33 -07:00
6a8d6b6ad9
clientv3/integration: use waitPinReady in blackhole test
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-26 15:12:27 -07:00
af53f54042
clientv3/integration: add waitPinReady
...
RPC should be sent to trigger 'readyWait' on new pin address.
Otherwise, endpoints other than ep[0] may be pinned.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-26 15:11:10 -07:00
10c971db70
clientv3/integration: add put blackhole test
2017-10-26 14:09:51 -07:00
7d7e9b6e43
clientv3/integration: fix a todo in testNetworkPartitionBalancer
2017-10-25 22:54:44 -07:00
8fa35216b0
clientv3/integration: Get with context timeout
...
Address https://github.com/coreos/etcd/pull/8762#discussion_r147019068 .
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-25 17:43:29 -07:00
995d79a0fc
Merge pull request #8758 from gyuho/failure-test
...
clientv3/integration: add TestBalancerUnderServerShutdownWatch
2017-10-25 17:03:33 -07:00
cea7387b73
clientv3/integration: add TestBalancerUnderServerShutdownWatch
...
Current Watch integration tests haven't covered the balancer
switch behavior under server failures.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-25 16:13:46 -07:00