From f57cb66e4b805843ed6290d16fa548b2d0d6907f Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Thu, 28 Mar 2013 23:48:36 -0400 Subject: [PATCH] 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 --- lustre/tests/sanity.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 1.8.3.1