From c782be8d0ecc3d8ac3c418252ecae18b9de345a5 Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Wed, 13 Jul 2016 11:31:42 -0500 Subject: [PATCH] LU-6638 test: wait for grace delay in sanity-hsm test_37() In sanity-hsm test_37(), allow the previous archive request to expire from the actions log by calling wait_for_grace_delay(). Signed-off-by: John L. Hammond Change-Id: I42fe4eec44734a9afd59f67d4532c1fe23402269 Reviewed-on: http://review.whamcloud.com/21284 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Frank Zago Reviewed-by: Oleg Drokin --- lustre/tests/sanity-hsm.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index 7d0bdf3..fd4e3e7 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -2901,6 +2901,9 @@ test_37() { wait_request_state $fid ARCHIVE SUCCEED $LFS hsm_release $f || error "cannot release $f" + # Allow previous archive request to expire from the actions log. + wait_for_grace_delay + # Dirty file. dd if=/dev/urandom of=$f bs=1M count=1 || error "cannot dirty file" -- 1.8.3.1