From: Hongchao Zhang Date: Thu, 19 Aug 2021 09:27:18 +0000 (+0800) Subject: LU-10848 test: wait to process inodes in phase2 X-Git-Tag: 2.14.55~3 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=cc42eecd8430d3b1f3ec12fc7c28352e3d7d655c;p=fs%2Flustre-release.git LU-10848 test: wait to process inodes in phase2 In test_8 of sanity-lfsck, the "LF_INCONSISTENT" flag was set when processing the inodes with corrupted LinkEA in phase2, LFSCK could have no chance to process it yet because of the delay OBD_FAIL_LFSCK_DELAY3. Test-Parameters: trivial testlist=sanity-lfsck,sanity-lfsck,sanity-lfsck,sanity-lfsck,sanity-lfsck,sanity-lfsck,sanity-lfsck,sanity-lfsck,sanity-lfsck Change-Id: Id414728c998d527fbc27f877c6d31dcedcc12457 Signed-off-by: Hongchao Zhagn Reviewed-on: https://review.whamcloud.com/44658 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Li Dongyang Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-lfsck.sh b/lustre/tests/sanity-lfsck.sh index d8ea43f..ab7eb70 100644 --- a/lustre/tests/sanity-lfsck.sh +++ b/lustre/tests/sanity-lfsck.sh @@ -1100,6 +1100,9 @@ test_8() error "(22) unexpected status" } + # wait to process one inode at least (OBD_FAIL_LFSCK_DELAY3) + sleep 3 + local FLAGS=$($SHOW_NAMESPACE | awk '/^flags/ { print $2 }') [ "$FLAGS" == "scanned-once,inconsistent" ] || error "(23) Expect 'scanned-once,inconsistent',but got '$FLAGS'"