From: Li Xi Date: Sat, 31 Aug 2013 13:39:36 +0000 (-0700) Subject: LU-3858 test: fix sanity 27A failure caused by stripe delay X-Git-Tag: 2.5.51~8 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F95%2F7495%2F4;p=fs%2Flustre-release.git LU-3858 test: fix sanity 27A failure caused by stripe delay When clearing the stripe of root directory, the updating of stripe might be delayed because of the processing delay of config log. This will cause the failure of sanity 27A test. This makes the test suit wait for the update of root directory stripe. Signed-off-by: Li Xi Change-Id: Ib4f96d9d4d0ae8a0b54e3e306a7abed758dbdf39 Reviewed-on: http://review.whamcloud.com/7495 Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Faccini Bruno Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index c78359f..a7031ca 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -1809,13 +1809,13 @@ test_27A() { # b=19102 local restore_count=$($GETSTRIPE -c $MOUNT) local restore_offset=$($GETSTRIPE -i $MOUNT) $SETSTRIPE -c 0 -i -1 -S 0 $MOUNT + wait_update $HOSTNAME "$GETSTRIPE -c $MOUNT | sed 's/ *//g'" "1" 20 || + error "stripe count $($GETSTRIPE -c $MOUNT) != 1" local default_size=$($GETSTRIPE -S $MOUNT) - local default_count=$($GETSTRIPE -c $MOUNT) local default_offset=$($GETSTRIPE -i $MOUNT) local dsize=$((1024 * 1024)) [ $default_size -eq $dsize ] || error "stripe size $default_size != $dsize" - [ $default_count -eq 1 ] || error "stripe count $default_count != 1" [ $default_offset -eq -1 ] ||error "stripe offset $default_offset != -1" $SETSTRIPE -c $restore_count -i $restore_offset -S $restore_size $MOUNT }