37546f74ab
*: move "version" to "internal/version"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-29 10:00:20 -08:00
b596c3c119
tools/functional-tester: update "build" script
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-24 15:26:17 -08:00
7783aada6a
etcd-tester: update stresser weights with txn stresser
...
Large key writes (stressEntries[1].weight) should not take this
much weight. It was triggering "database size exceeded" errors.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-12 00:17:13 -08:00
6cf220c92a
etcd-tester: fix "writeTxn" key selection
...
Found when debugging https://github.com/coreos/etcd/issues/9130 .
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-11 03:06:51 -08:00
e41c10347a
etcd-tester: add txn stresser
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2018-01-09 13:43:34 -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
e567d94fc2
tools/functional-tester: remove duplicate grpclog set
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-02 11:00:42 -08:00
e21eac808e
etcd-tester: discard gRPC balancer logs
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2017-12-18 13:39:55 -08:00
a20b24be7b
etcd-tester: enable initial corrupt check by default
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-27 09:41:53 -08:00
993a0cf569
tools: update metrics to use promhttp
...
Update function-tester/etcd-tester/main.go to use promhttp.Handler() instead of prometheus.Handler()
2017-11-10 09:47:49 -08:00
0199bdc266
*: fix 'ineffassign' issues
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-03 10:14:33 -07:00
f8e63934b1
functional-tester: don't specify data dir on tester side
...
Data directory is added automatially in commit 2e3d27e
but test was
not updated.
2017-09-29 15:06:52 +10:00
9553afbb24
Merge pull request #8533 from gyuho/grpc
...
*: upgrade grpclog to LoggerV2
2017-09-12 03:53:04 -07:00
6f76d52a1a
*: deprecate grpc.Code, grpc.ErrorDesc
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-11 09:28:56 -07:00
3b3d392540
*: use grpclog.LoggerV2
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-08 15:26:16 -07:00
9a726b424d
*: fix leaky context creation with cancel
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-07 13:39:42 -07:00
f65aee0759
*: replace 'golang.org/x/net/context' with 'context'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-07 13:39:42 -07:00
7689a2535e
etcd-tester: add 'exit-on-failure'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-06-20 16:04:48 -07:00
887db5a3db
*: fix go tool vet -all -shadow errors
2017-06-03 21:32:36 -07:00
0afc51c762
Merge pull request #7939 from gyuho/test
...
etcd-tester: add '-failpoints' to configure gofail
2017-05-18 12:53:07 -07:00
d690634bd6
*: remove unused, fix typos
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-05-18 12:11:18 -07:00
62b44a85f8
etcd-tester: add '-failpoints' to configure gofail
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-05-18 11:59:07 -07:00
e1640cc72f
etcd-tester: use 'debugutil.PProfHandlers'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-05-18 11:21:24 -07:00
33c375dc44
*: fill out blank package godocs
...
Mostly one-liner short descriptions, but also includes some typo fixes
and some examples.
2017-05-18 09:41:13 -07:00
1763f7d4d1
Merge pull request #7919 from gyuho/log-dir
...
functional-tester: use log-dir as data-dir in etcd-agent
2017-05-16 13:46:57 -07:00
e15020055e
*: remove unnecessary fmt.Sprint
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-05-15 13:23:31 -07:00
2e3d27e910
functional-tester: use log-dir as data-dir in etcd-agent
...
Persistent data should be configured in agent side.
There is no need to specify the data-dir in tester side.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-05-12 08:30:46 -07:00
0bcab05465
etcd-agent: store failure_archive in log dir
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-05-11 16:30:04 -07:00
b44bd6d2a9
etcd-runner: fix race on nextc
2017-05-10 11:21:17 -07:00
87d99fe038
etcd-runner: remove mutex on validate() and release() in global.go
...
election runner can deadlock in atomic release().
suppose election runner has two clients A and B.
if A is a leader and B is a follower, B obtains lock
for release() and waits for A to close(nextc) which signal
next round is ready. However, A can only close(nextc) if it
obtains lock for release(); hence deadlock.
this pr removes atomicity of validate() and release() in global.go
and gives the responsibility of locking to each runner.
FIXES #7891
2017-05-09 15:38:13 -07:00
6dd8fb6f24
Revert "Merge pull request #7732 from heyitsanthony/lease-err-ka"
...
This reverts commit fbbc4a4979
, reversing
changes made to f254e38385
.
Fixes #7851
2017-05-02 09:36:16 -07:00
c49a87bd04
Merge pull request #7672 from fanminshi/integrate_runner_to_tester
...
etcd-tester: integrate etcd runner into etcd tester
2017-04-25 15:22:29 -07:00
60b9adc267
Merge pull request #7812 from fanminshi/refactor_runner
...
etcd-runner: fix runner and minor refactoring.
2017-04-25 15:21:57 -07:00
a9e04061b1
etcd-runner: integrate etcd runner in to etcd tester
...
etcd tester runs etcd runner as a separate binary.
it signals sigstop to the runner when tester wants to stop stressing.
it signals sigcont to the runner when tester wants to start stressing.
when tester needs to clean up, it signals sigint to runner.
FIXES #7026
2017-04-25 14:53:23 -07:00
77fbe10dfc
etcd-runner: add --prefix flag, allows inf round, and minor vars refactoring in watch runner.
2017-04-25 14:18:42 -07:00
debc69e1f2
etcd-runner: pass in lock name as a command arg for lock_racer.
2017-04-25 14:18:42 -07:00
72fb756af3
etcd-runner: add lease ttl as a flag and fatal when err in lease-runner.
2017-04-25 14:18:42 -07:00
d57ad8ec8d
etcd-runner: add barrier, observe !ok handling, and election name arg to election-runner.
2017-04-25 14:17:59 -07:00
fa85445ef8
etcd-runner: add rate limiting in doRounds()
2017-04-25 14:00:52 -07:00
b94b8b5707
etcd-runner: move root cmd into command package
...
this allows easier sharing of global variable for sub commands.
2017-04-25 10:19:20 -07:00
78afc853f4
etcd-runner: update to use new lease interface
2017-04-24 23:49:45 -07:00
7fb1f68ff8
*: coreos/rkt -> rkt/rkt
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-04-11 08:48:48 -07:00
5f366db7d1
etcd-runner: update election command to use new Leader() interface
2017-04-07 16:36:38 -07:00
8afc468b64
tools/etcd-tester: add timeout for 'defrag'
...
etcd panic-ed, so defrag response just blocked for "days"
when the actual 'v3rpc' path never returned.
We should catch this earlier.
ref. https://github.com/coreos/etcd/issues/7526
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-03-23 10:22:20 -07:00
c8a2c7f64f
*: eschew you from documentation
...
Removed line wrapping in affected files as well.
2017-03-06 11:40:46 -08:00
fb81fb44fa
etcd-tester: check expired lease with -1 TTL
...
Following the change at 2ca1823a96
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-03-03 11:41:53 -08:00
0914b8b707
test: Fix gosimple errors
...
Getting gosimple suggestion while running test script, so this PR is for fixing gosimple S1019 check.
raft/node_test.go:456:40: should use make([]raftpb.Entry, 1) instead (S1019)
raft/node_test.go:457:49: should use make([]raftpb.Entry, 1) instead (S1019)
raft/node_test.go:458:43: should use make([]raftpb.Message, 1) instead (S1019)
Refer https://github.com/dominikh/go-tools/blob/master/cmd/gosimple/README.md#checks for more information.
2017-02-09 08:01:28 -05:00
6f9a20803c
etcd-tester: use 10K for '--snapshot-count'
...
Since we want to send snapshot more often in failure injected cluster
2017-01-14 17:29:35 -08:00
d0f301adb7
etcd-runner:add flags in watcher for hardcoded values
2017-01-04 15:17:53 +05:30
5cb6dd268b
etcd-runner: make command compliant
2017-01-03 14:43:58 +05:30