Commit Graph

7 Commits

Author SHA1 Message Date
Kelly McLaughlin
0de33c7b66 Resolve issue with verify_busy_dist_port test hanging indefinitely
The verify_busy_dist_port helper function cause_bdp:spam_nodes/1
recently changed to be more aggressive in triggering busy_dist_port
warnings. The function changed to spawn 1 million processes to ensure
the test generated enough activity to trigger the warnings, but that
number of processes exceeds the 256 thousand process limit that is the
Riak default. One consequence of this can be that the rex server
responsible for handling rpc calls can crash. In some cases this leads
to rpc calls by riak_test to shutdown the riak nodes involved in the
test to hang indefinitely. This change reduces the number of processes
spawned to 200 thousand. This should still be enough processes to
trigger the busy_dist_port warnings, but without exceeding the beam
process limit.
2014-05-06 14:40:47 -06:00
Kelly McLaughlin
12cd13a575 Resolve failure of verify_busy_dist_port test on Riak 2.0
As of Riak 2.0 the vm.args zdbbl setting defaults to 32768. Previously
the default of 1024 was used.  Change the cause_bdp helper module for
the verify_busy_dist_port test to be more aggressive in order to
trigger a busy_dist_port message with the higher zdbbl setting.
2014-04-09 16:24:00 -06: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
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