Whamcloud - gitweb
LU-18098 pcc: increase the async open time slightly for test_40 25/56225/2
authorQian Yingjin <qian@ddn.com>
Sat, 31 Aug 2024 20:45:12 +0000 (04:45 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 12 Sep 2024 05:51:23 +0000 (05:51 +0000)
Occasionally async open time may take a tiny bit longer due to
races in the test case sanity-pcc/test_40.
Increase the async open time slightly and ignore this kind of
error.

Test-Parameters: trivial
Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I699f14a4c83e6e9700b64522b1ebb360d929e211
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56225
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-pcc.sh

index 1823d1a..090bb9f 100755 (executable)
@@ -3275,7 +3275,8 @@ test_40() {
                error "should not send OST_READ RPCs to OSTs"
 
        echo "Time1: $time1 Time2: $time2"
-       [ $time1 -le $time2 ] ||
+       # Occasionally async can take a tiny bit longer due to races, that's OK
+       [ $time1 -le $((time2 + 1)) ] ||
                error "Total time for async open attach should be smaller"
 
        do_facet $SINGLEAGT $LFS pcc detach $file
@@ -3300,7 +3301,8 @@ test_40() {
        time2=$((SECONDS - stime))
 
        echo "Time1: $time1 Time2: $time2"
-       [ $time1 -le $time2 ] ||
+       # Occasionally async can take a tiny bit longer due to races, that's OK
+       [ $time1 -le $((time2 + 1)) ] ||
                error "Total time for async open attach should be smaller"
 }
 run_test 40 "Test async open attach in the background for PCC-RO file"