Whamcloud - gitweb
LU-15339 tests: Increase timeout in sanity 208 79/45779/2
authorPatrick Farrell <pfarrell@whamcloud.com>
Tue, 7 Dec 2021 21:54:20 +0000 (16:54 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 23 Dec 2021 07:20:42 +0000 (07:20 +0000)
It's been observed that occasionally the initial request in
sanity 208 does not complete in 1 second, which invalidates
the test.  (And sometimes causes it to fail - but even if
it passes, the test is invalid.)

Increase the time to 2 seconds.

Using trivial testing because this just modifies sanity and
it's such a simple change.

test-parameters: trivial

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I70cf32813a9a2ced0cc388eb25eba29918ba7d03
Reviewed-on: https://review.whamcloud.com/45779
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
lustre/tests/sanity.sh

index 7d1d366..aba5099 100755 (executable)
@@ -18551,7 +18551,7 @@ test_208() {
        echo "==== test 2: verify lease can be broken by upcoming open"
        $MULTIOP $DIR/$tfile oO_RDWR:eR_E-eUc &
        local PID=$!
        echo "==== test 2: verify lease can be broken by upcoming open"
        $MULTIOP $DIR/$tfile oO_RDWR:eR_E-eUc &
        local PID=$!
-       sleep 1
+       sleep 2
 
        $MULTIOP $DIR/$tfile oO_RDWR:c
        kill -USR1 $PID && wait $PID || error "break lease error"
 
        $MULTIOP $DIR/$tfile oO_RDWR:c
        kill -USR1 $PID && wait $PID || error "break lease error"
@@ -18559,7 +18559,7 @@ test_208() {
        echo "==== test 3: verify lease can't be granted if an open already exists"
        $MULTIOP $DIR/$tfile oO_RDWR:_c &
        local PID=$!
        echo "==== test 3: verify lease can't be granted if an open already exists"
        $MULTIOP $DIR/$tfile oO_RDWR:_c &
        local PID=$!
-       sleep 1
+       sleep 2
 
        $MULTIOP $DIR/$tfile oO_RDWR:eReUc && error "apply lease should fail"
        kill -USR1 $PID && wait $PID || error "open file error"
 
        $MULTIOP $DIR/$tfile oO_RDWR:eReUc && error "apply lease should fail"
        kill -USR1 $PID && wait $PID || error "open file error"
@@ -18567,7 +18567,7 @@ test_208() {
        echo "==== test 4: lease can sustain over recovery"
        $MULTIOP $DIR/$tfile oO_RDWR:eR_E+eUc &
        PID=$!
        echo "==== test 4: lease can sustain over recovery"
        $MULTIOP $DIR/$tfile oO_RDWR:eR_E+eUc &
        PID=$!
-       sleep 1
+       sleep 2
 
        fail mds1
 
 
        fail mds1
 
@@ -18576,7 +18576,7 @@ test_208() {
        echo "==== test 5: lease broken can't be regained by replay"
        $MULTIOP $DIR/$tfile oO_RDWR:eR_E-eUc &
        PID=$!
        echo "==== test 5: lease broken can't be regained by replay"
        $MULTIOP $DIR/$tfile oO_RDWR:eR_E-eUc &
        PID=$!
-       sleep 1
+       sleep 2
 
        # open file to break lease and then recovery
        $MULTIOP $DIR/$tfile oO_RDWR:c || error "open file error"
 
        # open file to break lease and then recovery
        $MULTIOP $DIR/$tfile oO_RDWR:c || error "open file error"