Whamcloud - gitweb
LU-2233 tests: improve tests sanityn/40-47 91/44391/3
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 29 Apr 2019 08:21:13 +0000 (11:21 +0300)
committerOleg Drokin <green@whamcloud.com>
Sun, 30 Jan 2022 03:41:32 +0000 (03:41 +0000)
commitcfb27a680cd22b993b3ff5e5257154aa3358dbbd
tree124bd7ce1d53e8e8179c33517cbb1051fc440340
parent5457c37ec9f76e2fb1656c29848412522dbb81fd
LU-2233 tests: improve tests sanityn/40-47

sanity/40-46 usually take 800-900s which is almost a half
of the whole sanityn pass. 99.(9)% of time the tests just
wait to ensure specific order the operations execute in.

the patch changes cfs_fail_timeout_set() so that it can
interrupt waiting if fail_loc is set to 0 - polling with
1/10s frequency is used.

the tests itself are modified to reset fail_loc. to be
able to do so both operations (referenced as OP1 and OP2
in the tests) are run in background. once started and then
ensured with pdo_sched() helper that MDS threads got to the
blocking points, we can interrupt OP1 and do usual checks.

ONLY=40-47 sh sanityn.sh take: 1017s before and 78s after.

Lustre-change: https://review.whamcloud.com/4392
Lustre-commit: 743b85a32e24cff0c77dff739691043970a0901e

LU-12470 tests: increase pdirops timeout

There are pretty regular failures of the sanityn pdirops test_40-47.
Increase the timeout slightly to reduces the frequency of failures.

Lustre-change: https://review.whamcloud.com/37304
Lustre-commit: b35f50c96c608ba650a5b3cf29fa129e01025549

Test-Parameters: trivial testlist=sanityn,sanityn,sanityn,sanityn
Test-Parameters: testlist=sanityn,sanityn,sanityn,sanityn,sanityn
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Change-Id: Ib8aec2b4517a6f84402ccae66f6d5ceac6d73d85
Reviewed-on: https://review.whamcloud.com/44391
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/libcfs/fail.c
lustre/tests/sanityn.sh