Whamcloud - gitweb
LU-6385 tests: Sync OSTs between tests in obdfilter-survey 43/14143/2
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Mon, 23 Mar 2015 16:44:22 +0000 (12:44 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 18 Aug 2015 11:19:41 +0000 (11:19 +0000)
osd-ldiskfs and osd-zfs operate differently with regards to writeback
cache.  This adds a force sync between test runs so that a test list
of "write read" will have all writes finished before reads starts for
both ldiskfs and zfs.

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: I3414a595220d9eb65145f8246ed5e243c112b866
Reviewed-on: http://review.whamcloud.com/14143
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>

index 23e8189..2b8fcd6 100755 (executable)
@@ -525,6 +525,12 @@ for ((rsz = $rszlo; rsz <= $rszhi; rsz*=2)); do
                        # run tests
                        for test in ${tests[@]}; do
+                               # Sync all outstanding data
+                               for host in ${ost_hosts[@]}; do
+                                       remote_shell $host \
+                                           "lctl set_param -n osd*.*OST*.force_sync 1"
+                               done
                                declare -a pidarray
                                for host in ${unique_hosts[@]}; do
                                        echo "starting run for test: $test rsz: $rsz " \