Whamcloud - gitweb
LU-6203 tests: early lock cancel to allow early copytool death 46/13646/2
authorBruno Faccini <bruno.faccini@intel.com>
Wed, 4 Feb 2015 16:39:38 +0000 (17:39 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 4 Mar 2015 22:54:02 +0000 (22:54 +0000)
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

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I399b37854b98626c4c92a367d543b79aebf9eb4e
Reviewed-on: http://review.whamcloud.com/13646
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Henri Doreau <henri.doreau@cea.fr>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>

index c2c84ef..53f7f59 100755 (executable)
@@ -3979,6 +3979,10 @@ test_251() {
        set_hsm_param loop_period 2
+       # 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