Whamcloud - gitweb
LU-11036 test: race in sanity-lfsck test_8 20/51720/3
authorLai Siyao <lai.siyao@whamcloud.com>
Mon, 10 Jul 2023 04:30:28 +0000 (00:30 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 1 Aug 2023 06:13:08 +0000 (06:13 +0000)
commitf1ddb4093ed623c1382f75e47807e4081962cc3d
tree0af9cf8ac04baf1c5ce8cd1f8a4e1f1f95fb8ce5
parentdff466c2bacd2db0d28087bba8c6250cdd5eeb8e
LU-11036 test: race in sanity-lfsck test_8

In sanity-lfsck test_8, "sleep 1" is run after START_NAMESPACE,
but it still has chance that LFSCK status is complete but LFSCK
thread not quit yet, therefore the following START_NAMESPACE may fail
with -EALREADY. Just check the first lfsck started scanning.

And similarly use wait_update to check flags for DELAY3.

Test-Parameters: trivial MDSCOUNT=2 MDTCOUNT=4 testlist=sanity-lfsck env=ONLY=8,ONLY_REPEAT=10
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ie1f612bebb52c4755e5b4e13d58ab8bf2aeb2832
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51720
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-lfsck.sh [changed mode: 0644->0755]