Gyu-Ho Lee
27a3356c74
etcd-tester: add 'exit-on-failure'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-06-20 17:15:16 -07:00
Anthony Romano
9169ad0d7d
*: fix go tool vet -all -shadow errors
2017-06-06 09:47:06 -07:00
Gyu-Ho Lee
0afc51c762
Merge pull request #7939 from gyuho/test
...
etcd-tester: add '-failpoints' to configure gofail
2017-05-18 12:53:07 -07:00
Gyu-Ho Lee
d690634bd6
*: remove unused, fix typos
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-05-18 12:11:18 -07:00
Gyu-Ho Lee
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
Gyu-Ho Lee
e1640cc72f
etcd-tester: use 'debugutil.PProfHandlers'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-05-18 11:21:24 -07:00
Anthony Romano
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
Gyu-Ho Lee
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
Gyu-Ho Lee
e15020055e
*: remove unnecessary fmt.Sprint
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-05-15 13:23:31 -07:00
Gyu-Ho Lee
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
Gyu-Ho Lee
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
fanmin shi
b44bd6d2a9
etcd-runner: fix race on nextc
2017-05-10 11:21:17 -07:00
fanmin shi
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
Anthony Romano
6dd8fb6f24
Revert "Merge pull request #7732 from heyitsanthony/lease-err-ka"
...
This reverts commit fbbc4a4979b256125d2238f6325ad86e7f1b58bd, reversing
changes made to f254e383859a2939d5929346f6595549f424f7c5.
Fixes #7851
2017-05-02 09:36:16 -07:00
fanmin shi
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
fanmin shi
60b9adc267
Merge pull request #7812 from fanminshi/refactor_runner
...
etcd-runner: fix runner and minor refactoring.
2017-04-25 15:21:57 -07:00
fanmin shi
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
fanmin shi
77fbe10dfc
etcd-runner: add --prefix flag, allows inf round, and minor vars refactoring in watch runner.
2017-04-25 14:18:42 -07:00
fanmin shi
debc69e1f2
etcd-runner: pass in lock name as a command arg for lock_racer.
2017-04-25 14:18:42 -07:00
fanmin shi
72fb756af3
etcd-runner: add lease ttl as a flag and fatal when err in lease-runner.
2017-04-25 14:18:42 -07:00
fanmin shi
d57ad8ec8d
etcd-runner: add barrier, observe !ok handling, and election name arg to election-runner.
2017-04-25 14:17:59 -07:00
fanmin shi
fa85445ef8
etcd-runner: add rate limiting in doRounds()
2017-04-25 14:00:52 -07:00
fanmin shi
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
Anthony Romano
78afc853f4
etcd-runner: update to use new lease interface
2017-04-24 23:49:45 -07:00
Gyu-Ho Lee
7fb1f68ff8
*: coreos/rkt -> rkt/rkt
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-11 08:48:48 -07:00
Anthony Romano
5f366db7d1
etcd-runner: update election command to use new Leader() interface
2017-04-07 16:36:38 -07:00
Gyu-Ho Lee
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
Anthony Romano
c8a2c7f64f
*: eschew you from documentation
...
Removed line wrapping in affected files as well.
2017-03-06 11:40:46 -08:00
Gyu-Ho Lee
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
Manjunath A Kumatagi
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
Gyu-Ho Lee
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
sharat
d0f301adb7
etcd-runner:add flags in watcher for hardcoded values
2017-01-04 15:17:53 +05:30
sharat
5cb6dd268b
etcd-runner: make command compliant
2017-01-03 14:43:58 +05:30
Gyu-Ho Lee
db8b15bf8f
etcd-tester: remove unused err var from maxRev
2016-12-27 12:16:43 -08:00
Gyu-Ho Lee
591bb5e7f6
etcd-tester: fix typo, add endpoint in logs
2016-12-22 12:51:27 -08:00
Gyu-Ho Lee
301abddc72
etcd-tester: cancel lease stream; fix OOM panic
...
It was never closing lease keep-alive streams, leaking memory.
Fix OOM panics in etcd-tester (after 1K rounds).
2016-12-13 09:56:30 -08:00
Gyu-Ho Lee
7d16e7d27e
etcd-tester: add 'enable-pprof' option
2016-12-13 05:03:27 -08:00
Gyu-Ho Lee
b8e09bf849
tools: simplify boolean comparison, remove unused
2016-12-12 10:07:14 -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
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
fanmin shi
ec5f9bce63
Merge pull request #6886 from fanminshi/fix_dial_grpc
...
functional-tester: add withBlock() to grpc dial
2016-11-21 11:33:31 -08:00
fanmin shi
2ccba33dd1
functional-tester: add withBlock() to grpc dial
...
grpc dail withTimeout() only works if withBlock() option is present.
2016-11-21 11:15:12 -08:00
fanmin shi
2ac1c4c9ed
etcd-tester:limit max retry backoff delay
...
grpc uses expoential retry if a connection is lost. grpc will sleep base on exponential delay.
if delay is too large, it slows down tester.
2016-11-21 10:58:55 -08:00
Xiang Li
b1178469be
etcd-tester: do not resolve localhost
2016-11-19 18:38:26 -08:00
Xiang Li
0a8e28524b
Merge pull request #6779 from xiang90/watch_clean
...
etcd-runner: clean up watcher runner
2016-11-10 09:59:08 -08:00
Xiang Li
523a859ad9
etcd-runner: clean up watcher runner
2016-11-10 08:56:19 -08:00
fanmin shi
107d7b663c
etcd-tester: changed compaction timeout calculation
...
functional tester sometime experiences timeout during compaction phase. I changed the timeout calculation base on number of entries created and deleted.
FIX #6805
2016-11-08 17:00:04 -08:00
Gyu-Ho Lee
f82aac2fc6
Merge pull request #6797 from fanminshi/lease_checker_println_fix
...
etcd-tester: fix lease checker logging format.
2016-11-03 10:17:54 -07:00
fanmin shi
6968028020
etcd-tester: fix lease checker logging format.
...
lease checker used a wrong print format for a variable. this change fixes it.
2016-11-03 10:11:00 -07:00
fanmin shi
649fe7f2af
etcd-tester: add retry logic on retriving lease info
...
getting lease and keys info through raw rpcs rarely experience error such as EOF. This is considered as a failure and causes tester to clean up.
however, they are just transient problem with temporary connection issue which should not be considered as a testing failure. so we add retry logic in case of transient failure.
FIX #6754
2016-11-03 10:05:06 -07:00