TEST: test service and program to invoke MultiSession deadlock
authorGalen Charlton <gmc@esilibrary.com>
Sun, 17 Mar 2013 04:53:57 +0000 (21:53 -0700)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 17 Mar 2013 04:53:57 +0000 (21:53 -0700)
commit7def59b28156af645f17a026c52971bf769887bb
treecc94efa18e0d2742b1b5a1313288ed30a481c89a
parent0c8165949e69ee9c61f73e0165c02bd933622947
TEST: test service and program to invoke MultiSession deadlock

The opensrf.test.random_delay_echo takes two arguments, a string
and a value for the maximum delay, measured in milliseconds.  It
returns a string after a random delay bounded by the specified
maximum.

The test program is invoked like this:

exercise_multi_infinite.pl /path/to/opensrf_core.xml numparallel numdelay numechos.

E.g.,

./exercise_multi_infinite.pl /openils/conf/opensrf_core.xml 7 1 10

It uses MultiSession to call the opensrf.test.random_delay_echo service
with the specified delay, number of parallel sessions, and total number
of echo calls to make, then repeats that until cancelled.  If the
deadlock is encountered, it stops emitting output.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
exercise_multi_infinite.pl [new file with mode: 0755]
src/perl/lib/OpenSRF/Application/Test.pm [new file with mode: 0644]