1caaa9ed4a
test: test update for Go 1.12.5 and related changes
...
Update to Go 1.12.5 testing. Remove deprecated unused and gosimple
pacakges, and mask staticcheck 1006. Also, fix unconvert errors related
to unnecessary type conversions and following staticcheck errors:
- remove redundant return statements
- use for range instead of for select
- use time.Since instead of time.Now().Sub
- omit comparison to bool constant
- replace T.Fatal and T.Fatalf in tests with T.Error and T.Fatalf respectively because the goroutine calls T.Fatal must be called in the same goroutine as the test
- fix error strings that should not be capitalized
- use sort.Strings(...) instead of sort.Sort(sort.StringSlice(...))
- use he status code of Canceled instead of grpc.ErrClientConnClosing which is deprecated
- use use status.Errorf instead of grpc.Errorf which is deprecated
Related #10528 #10438
2019-06-05 17:02:05 -04:00
34bd797e67
*: revert module import paths
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2019-05-28 15:39:35 -07:00
9150bf52d6
go modules: Fix module path version to include version number
2019-04-26 15:29:50 -07:00
aa4313a55a
*: fix github links
2018-11-10 11:14:18 +09:00
d37f1521b7
*: update import paths to "go.etcd.io/etcd"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2018-08-28 17:47:55 -07:00
520bd5084e
integration, functional: Eliminate direct use of gRPC transport pkg
...
gRPC has moved the transport package to an internal-only directory. This
eliminates direct use of the transport package in the stress test in
favor of the error code from gRPC that represents a connection problem.
https://godoc.org/google.golang.org/grpc/internal/transport is the new
location for the package, which says it's not intended to be imported
directly. Instead, the maintainers suggested to use the code Unavailable
to detect a connection problem.
This change slightly reorganizes the stresser test error handling.
2018-07-19 10:55:57 -07:00
19de2b2177
functional/tester: fix trigger snapshot retry
...
Fix negative commit entry diff:
> {"level":"info","ts":1528740474.775448,"caller":"tester/case.go:299","msg":"trigger snapshot PROGRESS","retries":53,"committed-entries":-238470,"etcd-snapshot-count":10000,"start-revision":238470,"last-revision":0,"took":77.302668629,"error":"context deadline exceeded"}
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-06-11 12:49:18 -07:00
42a1d4c3b6
functional: remove unused parameters
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-09 15:42:45 -07:00
d7c4c226fe
functional/tester: remove shadowed error variable
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-09 15:39:44 -07:00
b1832d2f3c
functional/tester: configurable stresser weights
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-08 16:18:45 -07:00
e7e31e9529
functional: silence http server logs
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-05-02 12:59:08 -07:00
a6c30eab96
functional: rename to "log-outputs"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-25 13:20:26 -07:00
c8d08a8898
functional/tester: prevent embedded etcd running with failpoints
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-23 14:07:43 -07:00
b933603a43
functional: add TODO for network isolate tests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-19 17:44:16 -07:00
f5b8e1eb95
functional/tester: log start revision
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-19 17:40:08 -07:00
8ee87787dd
functional: use strings for LogOutput
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-17 13:03:09 -07:00
2ee2a96055
functional/tester: use binary for tests for now
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-16 17:36:00 -07:00
d1c2ae86ce
functional/tester: handle "raft.ErrProposalDropped"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-16 17:36:00 -07:00
f34c5dc902
functional/tester: run tests with embedded etcd
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-16 17:36:00 -07:00
575cf94852
functional/rpcpb: add "*Etcd.EmbedConfig", and logger fields
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-16 17:36:00 -07:00
0a92ba66fa
functional/tester: fix racey map writes
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-12 13:21:52 -07:00
5ba4e7d533
functional/tester: fix unit tests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-12 10:49:48 -07:00
ce19e0b4b5
functional: increase dial timeout
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 20:18:17 -07:00
554dfaa4ba
functional/tester: fix govet errors
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:53:54 -07:00
23ce3a1acc
functional: rename to "listCases"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
d275437c05
functional/tester: whitelist lease expire checker on snapshot restore
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
f574a9aaed
functional/tester: add "EtcdClientEndpoints" to "Checker"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
e9c4bad2d1
functional/tester: add "Checker", remove compositeChecker
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
448e0fc481
functional: wait election timeout after member add
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
bd235ab8f9
functional/tester: save SnapshotInfo from response
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
888b55e91b
functional/tester: implement fetchSnapshotCaseQuorum
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
3815d6edb7
functional: rename "FailureCase" to "Case"
...
Later to add benchmark marks
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
3c5147d906
functional/tester: implement "fetchSnapshotAndFailureQuorum"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
6b128bfb3b
functional/tester: rename files, adding LEADER_SNAPSHOT case
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
e2bb03b39b
functional/tester: add sendOpWithResp for SnapshotInfo
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
ca137afe8a
functional: rename to "SIGQUIT_AND_REMOVE_QUORUM_AND_RESTORE_LEADER_SNAPSHOT_FROM_SCRATCH"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
f9127dba9c
functional/tester: implement "new_FailureCase_SIGQUIT_AND_REMOVE_QUORUM_AND_RESTORE_SNAPSHOT_FROM_SCRATCH"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
67e398c86a
functional/cluster: handle "SIGQUIT_AND_REMOVE_QUORUM_AND_RESTORE_SNAPSHOT_FROM_SCRATCH"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
473a472607
functional/tester: fix "failureQuorum"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
77824c2ed6
functional: add "SIGQUIT_AND_REMOVE_QUORUM_AND_RESTORE_SNAPSHOT_FROM_SCRATCH" to functional.yaml
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
f04902dbed
functional: rename etcd log paths
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
4e7705e9e5
functional: add snapshot path to configuration
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 19:52:23 -07:00
512445f089
functional: do not run "SIGQUIT_AND_REMOVE_LEADER" for now
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 10:24:42 -07:00
d7bf471199
functional/tester: add TODO for member remove fail
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 02:07:22 -07:00
3c7ec0cdc8
functional/tester: update import path
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 01:42:33 -07:00
23b8c36ced
functional/tester: add "SIGQUIT_AND_REMOVE_LEADER_UNTIL_TRIGGER_SNAPSHOT"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 01:37:13 -07:00
17351e5fe7
functional/tester: add "SIGQUIT_AND_REMOVE_LEADER"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 01:32:07 -07:00
6a60a204ee
functional/tester: add "SIGQUIT_AND_REMOVE_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 01:27:39 -07:00
724dea114c
functional/tester: clean up snapshot failure cases
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 01:25:07 -07:00
9057253d8c
functional: add "SIGQUIT_AND_REMOVE_ONE_FOLLOWER"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-11 01:21:09 -07:00