summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/60.nfs.monitor.114.sh
blob: 496f5e7dee274a60e9d553d65e9b5a48a301cecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "knfsd down, 6 iterations, dump 5 threads, 3 hung"

# 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
FAKE_NFSD_THREAD_PIDS="1001 1002 1003"

iterate_test 10 'rpc_set_service_failure_response "nfsd"'