From 6698b62b859da83c947b43f67be8f045982e9f20 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Wed, 24 May 2017 15:40:38 -0700 Subject: [PATCH] LU-9556 tests: wait recovery complete in replay-single test 57 This patch fixes replay-single test 57 to wait recovery complete for MDS and also wait for sync between MDS and OSS instead of just sleeping for 1 second. Test-Parameters: trivial envdefinitions=ONLY=57 \ testlist=replay-single,replay-single,replay-single Change-Id: I8ca133104116383eccec324ab2ef56666659600e Signed-off-by: Jian Yu Reviewed-on: https://review.whamcloud.com/27279 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bob Glossman Reviewed-by: Andreas Dilger --- lustre/tests/replay-single.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index 55755dc..60b3ef1 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -1498,7 +1498,8 @@ test_57() { touch $DIR/$tfile || error "touch $DIR/$tfile failed" replay_barrier $SINGLEMDS fail $SINGLEMDS - sleep 1 + wait_recovery_complete $SINGLEMDS || error "MDS recovery is not done" + wait_mds_ost_sync || error "wait_mds_ost_sync failed" $CHECKSTAT -t file $DIR/$tfile || error "$CHECKSTAT $DIR/$tfile attribute check failed" do_facet $SINGLEMDS "lctl set_param fail_loc=0x0" -- 1.8.3.1