Whamcloud - gitweb
LU-12232 test: call dt_sync after dd 72/36772/2
authorHongchao Zhang <hongchao@whamcloud.com>
Mon, 18 Nov 2019 02:56:12 +0000 (21:56 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 12 Oct 2020 05:45:33 +0000 (05:45 +0000)
In test_6 of replay-ost-single, calling wait_mds_ost_sync
after "dd" to sync the write transactions.

Test-Parameters: trivial alwaysuploadlogs \
mdtfilesystemtype=zfs ostfilesystemtype=zfs \
testlist=replay-ost-single,replay-ost-single,replay-ost-single

Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Change-Id: I26f6b1fe903c8b7b3f4e5fb698baffc4c3b85130
Reviewed-on: https://review.whamcloud.com/36772
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: Wei Liu <sarah@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/replay-ost-single.sh

index 618ddb0..6584d7a 100755 (executable)
@@ -197,6 +197,8 @@ test_6() {
        #define OBD_FAIL_MDS_REINT_NET_REP       0x119
        do_facet $SINGLEMDS "lctl set_param fail_loc=0x80000119"
 
+       wait_mds_ost_sync || error "second wait_mds_ost_sync failed"
+
        # retry till statfs returns useful results
        local after_dd=$(kbytesfree)
        local i=0
@@ -218,7 +220,7 @@ test_6() {
        $CHECKSTAT -t file $f && return 2 || true
        sync
        # let the delete happen
-       wait_mds_ost_sync || error "second wait_mds_ost_sync failed"
+       wait_mds_ost_sync || error "third wait_mds_ost_sync failed"
        wait_delete_completed || error "second wait_delete_completed failed"
        local after=$(kbytesfree)
        log "free_before: $before free_after: $after"