From: Patrick Farrell Date: Tue, 7 Dec 2021 21:54:20 +0000 (-0500) Subject: LU-15339 tests: Increase timeout in sanity 208 X-Git-Tag: 2.14.57~86 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=dc015fc0b51b95151366b0355cfc90b068d98b01 LU-15339 tests: Increase timeout in sanity 208 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 Change-Id: I70cf32813a9a2ced0cc388eb25eba29918ba7d03 Reviewed-on: https://review.whamcloud.com/45779 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: James Nunez --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 7d1d366..aba5099 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -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=$! - sleep 1 + sleep 2 $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=$! - sleep 1 + sleep 2 $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=$! - sleep 1 + sleep 2 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=$! - sleep 1 + sleep 2 # open file to break lease and then recovery $MULTIOP $DIR/$tfile oO_RDWR:c || error "open file error"