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>
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=$!
$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"
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=$!
$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"
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=$!
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=$!
# 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"