Commit Graph

5 Commits

Author SHA1 Message Date
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
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