From f71862b3a8d7742c2243ab9a7d513f1aa599ebd5 Mon Sep 17 00:00:00 2001 From: Alexandre Ioffe Date: Wed, 26 Jun 2024 19:16:51 -0700 Subject: [PATCH] EX-10036 tests: delay verification to finish set flag - clean files in the pools before start of the test to be focused only on set of test files - reset changelog before lamigo starting to prevent lamigo from normal synch work and be focused only on scan work - Wait a bit until set flag commands finish before verifying them Test-Parameters: trivial testlist=hot-pools Test-Parameters: trivial testlist=hot-pools env=ONLY="60 82",ONLY_REPEAT=10 Test-Parameters: trivial testlist=hot-pools env=ONLY="60 82",ONLY_REPEAT=10 Signed-off-by: Alexandre Ioffe Change-Id: I70c5252564cfe6eeebb0cfc4f8383f263a233a71 Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55546 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/tests/hot-pools.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lustre/tests/hot-pools.sh b/lustre/tests/hot-pools.sh index 7682469..e172d63 100755 --- a/lustre/tests/hot-pools.sh +++ b/lustre/tests/hot-pools.sh @@ -2799,6 +2799,9 @@ test_82() { init_hot_pools_env + # pools may have files we do not want to rescan + rm -fr $DIR/* + $LFS setstripe -p $LAMIGO_SRC $tf-0 || error "failed to create $tf-0" $MULTIOP $tf-0 oO_CREATE:O_DIRECT:O_WRONLY:w1048576Yc || @@ -2826,6 +2829,8 @@ test_82() { stack_trap "$LFS getstripe $DIR/*; rm -f $tf*" + changelog_clear 0 + LAMIGO_RESCAN=true \ start_lamigo_cmd check_lamigo_is_started || error "failed to start lamigo" @@ -2837,6 +2842,8 @@ test_82() { wait_file_mirror $tf-2 2 15 wait_file_mirror $tf-3 2 15 wait_file_mirror $tf-4 2 15 + # wait set flag commands + sleep 10 ids=($($LFS getstripe $tf-0 | awk '/lcme_id/{print $2}' | tr '\n' ' ')) verify_comp_attr lcme_flags $tf-0 ${ids[0]} init,prefer -- 1.8.3.1