fi
}
-# Dump up to the configured number of nfsd thread backtraces.
-nfs_dump_some_threads ()
-{
- _prog="${1:-nfsd}"
-
- _num="${CTDB_NFS_DUMP_STUCK_THREADS:-5}"
- [ $_num -gt 0 ] || return 0
-
- program_stack_traces "$_prog" $_num
-}
-
########################################################
add_ip_to_iface ()
</listitem>
</varlistentry>
- <varlistentry>
- <term>CTDB_NFS_DUMP_STUCK_THREADS=<parameter>NUM</parameter></term>
- <listitem>
- <para>
- NUM is the number of NFS kernel server threads to dump
- stack traces for if some are still alive after stopping
- NFS during a restart.
- </para>
- <para>
- Default is 5. Set this to 0 to disable this feature.
- </para>
- </listitem>
- </varlistentry>
-
<varlistentry>
<term>CTDB_NFS_SKIP_SHARE_CHECK=yes|no</term>
<listitem>
. "${TEST_SCRIPTS_DIR}/unit.sh"
-define_test "knfsd down, 10 iterations, dump 5 threads, none hung"
+define_test "knfsd down, 10 iterations, no hung threads"
# knfsd fails and attempts to restart it fail.
setup_nfs
rpc_services_down "nfs"
-# Additionally, any hung threads should have stack traces dumped.
-CTDB_NFS_DUMP_STUCK_THREADS=5
nfs_setup_fake_threads "nfsd"
nfs_iterate_test 10 "nfs"
. "${TEST_SCRIPTS_DIR}/unit.sh"
-define_test "knfsd down, 10 iterations, dump 5 threads, 3 hung"
+define_test "knfsd down, 10 iterations, 3 hung threads"
# knfsd fails and attempts to restart it fail.
setup_nfs
rpc_services_down "nfs"
-# Additionally, any hung threads should have stack traces dumped.
-CTDB_NFS_DUMP_STUCK_THREADS=5
nfs_setup_fake_threads "nfsd" 1001 1002 1003
nfs_iterate_test 10 "nfs"
setup_nfs
rpc_services_down "status"
-CTDB_NFS_DUMP_STUCK_THREADS=2
nfs_setup_fake_threads "rpc.status" 1001
nfs_iterate_test 2 "status"
export CTDB_NFS_SKIP_SHARE_CHECK="no"
export RPCNFSDCOUNT
- export CTDB_NFS_DUMP_STUCK_THREADS
# Reset the failcounts for nfs services.
eventscript_call eval rm -f '$ctdb_fail_dir/nfs_*'