From: Qian Yingjin Date: Sat, 31 Aug 2024 20:45:12 +0000 (+0800) Subject: LU-18098 pcc: increase the async open time slightly for test_40 X-Git-Tag: 2.15.91~31 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=d84f352e2d50846b70486fa72ea0e35391a19e43;p=fs%2Flustre-release.git LU-18098 pcc: increase the async open time slightly for test_40 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 Change-Id: I699f14a4c83e6e9700b64522b1ebb360d929e211 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56225 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Li Xi Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-pcc.sh b/lustre/tests/sanity-pcc.sh index 1823d1a..090bb9f 100755 --- a/lustre/tests/sanity-pcc.sh +++ b/lustre/tests/sanity-pcc.sh @@ -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"