From 39eb431b2c7d5cb76c7001000869073d768f5baf Mon Sep 17 00:00:00 2001 From: Emoly Liu Date: Mon, 24 Apr 2017 15:16:28 +0800 Subject: [PATCH] LU-9311 tests: add sanity-pfl.sh test_13 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 Change-Id: I7df6ff472c9cd879267912851d7288258db61d15 Reviewed-on: https://review.whamcloud.com/26700 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Niu Yawei Reviewed-by: Oleg Drokin --- lustre/tests/sanity-pfl.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lustre/tests/sanity-pfl.sh b/lustre/tests/sanity-pfl.sh index ceb6245..a846956 100644 --- a/lustre/tests/sanity-pfl.sh +++ b/lustre/tests/sanity-pfl.sh @@ -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 -- 1.8.3.1