Whamcloud - gitweb
EX-9867 test: unlimit expected number of keepalive msgs
authorAlexandre Ioffe <aioffe@ddn.com>
Tue, 4 Jun 2024 23:25:19 +0000 (16:25 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 6 Jun 2024 08:19:32 +0000 (08:19 +0000)
Sometimes test_165g may be internally delayed and
the number of keepalive messages from ofd_access_log_reader
may be unexpectably big.
To fix, remove the verified upper boundary of the keepalive
message counter and make test_165g to expect unlimited number
of such messages.

Test-Parameters: trivial testlist=sanity env=ONLY="165g",ONLY_REPEAT=20
Signed-off-by: Alexandre Ioffe <aioffe@ddn.com>
Change-Id: I8afcfd3c3e52fda229ef81491259bdc600947bd3
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55312
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Vitaliy Kuznetsov <vkuznetsov@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity.sh

index c9b0e30..7bdbc4e 100644 (file)
@@ -18295,9 +18295,11 @@ test_165g() {
 
        count=$(grep -c "send keepalive" ${trace})
 
-       # Duration 40 seconds / 4 secs interval = 10 times or so
-       (( count >= 7 && count <= 13 )) ||
-               error "keepalive msg received $count. Expected 7..13"
+       # Normal duration 40 seconds / 4 secs interval = 10 times or so.
+       # But sometimes the duration may be unpredictably long
+       (( count >= 7 )) || error "keepalive msg received $count. Expected >= 7"
+
+       echo "keepalive msg received $count"
 }
 run_test 165g "ofd_access_log_reader --keepalive works"