Whamcloud - gitweb
LU-17675 tests: sanity-flr/61a set atime_diff=1 for statx 47/54647/4
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 1 Apr 2024 22:56:49 +0000 (16:56 -0600)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Apr 2024 15:36:30 +0000 (15:36 +0000)
Lower mdd.*.atime_diff=1 for this test so that the MDT inode atime
is updated during the test.  Otherwise, statx() will get only MDT
atime and not OST atime, and the test is not running long enough
for the MDT inode atime to be updated.

Test-Parameters: trivial testlist=sanity env=ONLY=61a,ONLY_REPEAT=100 clientdistro=el9.3
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I6518260d0dcb283faf4bc6a8049cd61abaf6978b
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54647
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-flr.sh

index 95e0d00..26285ca 100644 (file)
@@ -28,14 +28,6 @@ if [[ "$ost1_FSTYPE" == "zfs" ]]; then
        ALWAYS_EXCEPT+=" 49a "
 fi
 
-if [ -r /etc/redhat-release ]; then
-       rhel_version=$(cat /etc/redhat-release |
-               sed -e 's/^[^0-9.]*//g' | sed -e 's/[ ].*//')
-       if (( $(version_code $rhel_version) >= $(version_code 9.3.0) )); then
-               always_except LU-17675 61a
-       fi
-fi
-
 build_test_filter
 
 [[ "$MDS1_VERSION" -ge $(version_code 2.10.56) ]] ||
@@ -3156,9 +3148,14 @@ check_times_61() {
 
 test_61a() { # LU-14508
        local file=$DIR/$tdir/$tfile
+       local old_diff=($(do_facet mds1 "$LCTL get_param -n mdd.*.atime_diff"))
+       local mdts=$(comma_list $(mdts_nodes))
        local -a tim
        local nap=5
 
+       do_nodes $mdts "$LCTL set_param mdd.*.atime_diff=1"
+       stack_trap "do_nodes $mdts $LCTL set_param mdd.*.atime_diff=$old_diff"
+
        mkdir -p $DIR/$tdir
        echo "create $file"
        $LFS setstripe -E1M -Eeof $file || error "setstripe $file failed"