From: Oleg Drokin Date: Fri, 29 Mar 2013 03:48:36 +0000 (-0400) Subject: LU-2877 Add a roundtrip delay in sanity test 34h X-Git-Tag: 2.3.65~38 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=f57cb66e4b805843ed6290d16fa548b2d0d6907f;p=fs%2Flustre-release.git LU-2877 Add a roundtrip delay in sanity test 34h It seems we are still getting false failures in test 34h due to overloaded server that takes longer than 2 seconds to process a request. To even things out - do another sync RPC to OST first before starting the timeout. Change-Id: I070345233398d7a15a105162523ef6dc81c1a929 Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/5882 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Jinshan Xiong --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index c70826e..d5ce819 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -2597,6 +2597,12 @@ test_34h() { # flush when getting the group lock $MULTIOP $DIR/$tfile OG${gid}T${sz}g${gid}c & MULTIPID=$! + + # Since just timed wait is not good enough, let's do a sync write + # that way we are sure enough time for a roundtrip + processing + # passed + 2 seconds of extra margin. + dd if=/dev/zero of=$DIR/${tfile}-1 bs=4096 oflag=direct count=1 + rm $DIR/${tfile}-1 sleep 2 if [[ `ps h -o comm -p $MULTIPID` == "multiop" ]]; then