From 446ad1ef8be5b282224336817936043b42a10fee Mon Sep 17 00:00:00 2001 From: Bruno Faccini Date: Wed, 4 Feb 2015 17:39:38 +0100 Subject: [PATCH] LU-6203 tests: early lock cancel to allow early copytool death Since copytool death check+timing has been introduced with patch for LU-5622, sanity-hsm/test_251() has experienced several failures due to copytool death being delayed and to timeout, because of lock cancel. Signed-off-by: Bruno Faccini Change-Id: I399b37854b98626c4c92a367d543b79aebf9eb4e Reviewed-on: http://review.whamcloud.com/13646 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Henri Doreau Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- lustre/tests/sanity-hsm.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index c2c84ef..53f7f59 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -3979,6 +3979,10 @@ test_251() { set_hsm_param loop_period 2 cdt_enable + # clear locks to avoid extra delay caused by flush/cancel + # and thus prevent early copytool death to timeout. + cancel_lru_locks osc + $LFS hsm_archive --archive $HSM_ARCHIVE_NUMBER $f wait_request_state $fid ARCHIVE STARTED sleep 5 -- 1.8.3.1