From d84f352e2d50846b70486fa72ea0e35391a19e43 Mon Sep 17 00:00:00 2001 From: Qian Yingjin Date: Sun, 1 Sep 2024 04:45:12 +0800 Subject: [PATCH] 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 --- lustre/tests/sanity-pcc.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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" -- 1.8.3.1