From 9e2bd5285262a6c1db19bf48446569983b3839b4 Mon Sep 17 00:00:00 2001 From: Patrick Farrell Date: Tue, 7 Dec 2021 16:54:20 -0500 Subject: [PATCH] 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. Lustre-change: https://review.whamcloud.com/45779 Lustre-commit: dc015fc0b51b95151366b0355cfc90b068d98b01 Test-Parameters: trivial Signed-off-by: Patrick Farrell Change-Id: I70cf32813a9a2ced0cc388eb25eba29918ba7d03 Reviewed-by: Andreas Dilger Reviewed-by: James Nunez Reviewed-on: https://review.whamcloud.com/45931 Tested-by: jenkins Tested-by: Maloo --- lustre/tests/sanity.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 55d3b4b..0e0d321 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -17721,7 +17721,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" @@ -17729,7 +17729,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" @@ -17737,7 +17737,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 @@ -17746,7 +17746,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" -- 1.8.3.1