Whamcloud - gitweb
LU-9556 tests: wait recovery complete in replay-single test 57 79/27279/2
authorJian Yu <jian.yu@intel.com>
Wed, 24 May 2017 22:40:38 +0000 (15:40 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 3 Jun 2017 03:59:37 +0000 (03:59 +0000)
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 <jian.yu@intel.com>
Reviewed-on: https://review.whamcloud.com/27279
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/replay-single.sh

index 55755dc..60b3ef1 100755 (executable)
@@ -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"