Commit Graph

13 Commits

Author SHA1 Message Date
Engel Sanchez
ec4992754a Merge pull request #313 from basho/eas-busy-port-timeout-configurable
Make busy port timeout configurable
2013-06-19 11:41:21 -07:00
Engel A. Sanchez
fb5f27a910 Fix race checking logs for busy dist port
The test detects the busy dist port event, and immediately fetches the
logs and parses them looking for it in the output. But it's failing
because the message appears an instant after the logs are fetched.
This changes it so it will retry a few times as we do with most things.
2013-06-19 13:55:28 -04:00
Engel A. Sanchez
787697cdc0 Make busy port timeout configurable
We are getting test failures where we are timing out seconds before the
busy dist port message appears in the log.
2013-06-18 15:32:49 -04:00
Jordan West
d76711fe22 verify_busy_dist_port: dont hang if re:run crashes
if lager interface changes again we don't want to hold up the entire
suite because we didn't cleanup after this test (leaving a riak process
paused with "kill -STOP")
2013-06-10 16:10:21 -07:00
Engel A. Sanchez
0e8ecce7d5 Add riak_test behavior 2012-12-14 10:50:49 -05:00
Engel A. Sanchez
f0cb19e47e load_modules_on_riak -> load_modules_on_nodes 2012-12-13 14:07:41 -05:00
Engel A. Sanchez
1716f40f08 Remove local assumptions from partition repair
This should resolve issue #113.
Added function to load code modules, clean directories within data and
using new put dir function where needed.
Changing die-die-die! approach to use cast in case remote call to node
to shoot itself in the head hangs.
2012-12-13 11:48:31 -05:00
Jordan West
b11db0d74e verify_busy_dist_port: remove use of grep via os:cmd, timer:sleep
* install a riak_sysmon custom handler and monitor for the busy_dist_port event on the riak node. when the handler detects the event it notifies the test process
* install riak_test_lager_backend on the riak node to capture log messages in memory. When the test process is notified that the busy dist port event fired on the riak node it retrieves the logs from the backend using the added get_logs/0 function and then checks for the busy_dist_port message
* there is a subtle race I *think*, that should rarely come up in practice, between lager and the riak_sysmon event handlers with this method of implementing the test that may require use of some form of retry/max retry still
2012-11-30 17:08:29 -08:00
Jordan West
cb2b49df92 riak_test takes care of this for us 2012-11-29 13:17:02 -08:00
Jordan West
1de1245774 apparently i like whitespace :( 2012-11-29 13:00:34 -08:00
Jordan West
34d2d53290 add text from original agile zen ticket to test 2012-11-29 12:59:36 -08:00
Jordan West
2c3ca7327f if we are going to sleep, at least do it (maybe) better
* check the grep logs a max number of times, sleep for some interval in-between each execution of grep
* actually delete the log file
* handle file d.n.e. when using grep (hackily)
2012-11-29 11:46:32 -08:00
Jordan West
e32f29a0d6 initial port of be-regression-az1018 2012-11-29 10:59:27 -08:00