Whamcloud - gitweb
LU-9311 tests: add sanity-pfl.sh test_13 00/26700/4
authorEmoly Liu <emoly.liu@intel.com>
Mon, 24 Apr 2017 07:16:28 +0000 (15:16 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 1 May 2017 17:47:41 +0000 (17:47 +0000)
This patch adds sanity-pfl.sh test_13 to verify the following fix:
https://review.whamcloud.com/#/c/26474/
test_13 uses 8 OSTs to make the LOVEA buffer bigger than the request
reply buffer, and writes data to the composite file to verify if the
layout write intent RPC resent by the client is reprocessed by
mdt_layout_change().

Test-parameters: trivial ostcount=8 testlist=sanity-pfl

Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Change-Id: I7df6ff472c9cd879267912851d7288258db61d15
Reviewed-on: https://review.whamcloud.com/26700
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-pfl.sh

index ceb6245..a846956 100644 (file)
@@ -498,6 +498,26 @@ test_12() {
 }
 run_test 12 "Verify ost list specification"
 
+test_13() { # LU-9311
+       [ $OSTCOUNT -lt 8 ] && skip "needs >= 8 OSTs" && return
+
+       local file=$DIR/$tfile
+       local dd_count=4
+       local dd_size=$(($dd_count * 1024 * 1024))
+       local real_size
+
+       rm -f $file
+       $LFS setstripe -E 1M -c 1 -E 2M -c 2 -E -1 -c -1 -i 1 $file ||
+               error "Create $file failed"
+       dd if=/dev/zero of=$file bs=1M count=$dd_count
+       real_size=$(stat -c %s $file)
+       [ $real_size -eq $dd_size ] ||
+               error "dd actually wrote $real_size != $dd_size bytes"
+
+       rm -f $file
+}
+run_test 13 "shouldn't reprocess granted resent request"
+
 complete $SECONDS
 check_and_cleanup_lustre
 exit_status