diff options
| author | Martin Schwenke <martin@meltin.net> | 2013-06-13 16:32:06 +1000 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2013-06-14 15:15:07 +1000 |
| commit | 27ba5b44b62e56ad4b32dbb71dd4ca5371a2d533 (patch) | |
| tree | 30afbf210aa298f0b946872366c4f5744e0c496f /ctdb/tests/eventscripts/scripts | |
| parent | d82c0ef923e2214a96e6dbc0ed77e36b5291c5cb (diff) | |
tests/eventscripts: Unit tests for $CTDB_NFS_DUMP_STUCK_THREADS
Includes minor test infrastructure updates.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit cd4358b01c6c3d413b431f5760029d2b163b9c03)
Diffstat (limited to 'ctdb/tests/eventscripts/scripts')
| -rw-r--r-- | ctdb/tests/eventscripts/scripts/local.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/ctdb/tests/eventscripts/scripts/local.sh b/ctdb/tests/eventscripts/scripts/local.sh index cb08b30dce..6e2f15ce2e 100644 --- a/ctdb/tests/eventscripts/scripts/local.sh +++ b/ctdb/tests/eventscripts/scripts/local.sh @@ -556,6 +556,7 @@ setup_nfs () export CTDB_NFS_SKIP_SHARE_CHECK="no" export CTDB_MONITOR_NFS_THREAD_COUNT RPCNFSDCOUNT FAKE_NFSD_THREAD_PIDS + export CTDB_NFS_DUMP_STUCK_THREADS # Reset the failcounts for nfs services. eventscript_call eval rm -f '$ctdb_fail_dir/nfs_*' @@ -675,7 +676,19 @@ program $_pn version $_ver is not available" case "${_progname}${_action#restart}" in nfsd) _t="\ -Trying to restart NFS service +Trying to restart NFS service" + + if [ -n "$CTDB_NFS_DUMP_STUCK_THREADS" ] ; then + for _pid in $FAKE_NFSD_THREAD_PIDS ; do + _t="\ +$_t +Stack trace for stuck nfsd thread [${_pid}]: +[<ffffffff87654321>] fake_stack_trace_for_pid_${_pid}/stack+0x0/0xff" + done + fi + + _t="\ +${_t} Starting nfslock: OK Starting nfs: OK" ;; |
