From e055c46b875ddb9a2fb1bd8c6161a845a583f935 Mon Sep 17 00:00:00 2001 From: Madhavrao Vemuri Date: Fri, 26 Aug 2022 16:28:39 +0530 Subject: [PATCH] CORTX-32296: Fix ST failure of rpc cancel (#2104) Problem: RPC cancel ST is failing due to m0ham utility is failing to send the HA message to client(m0touch). Solution: Currently wait of 3 seconds is there between start of m0touch with n create operations and m0ham message to do the cancel operation. Reduced it to 1 second so that m0touch will be there when m0ham is started. Reduced sleep time for unlink operation as well. Signed-off-by: Madhavrao Vemuri --- motr/st/utils/motr_rpc_cancel_test.sh | 4 ++-- scripts/m0 | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/motr/st/utils/motr_rpc_cancel_test.sh b/motr/st/utils/motr_rpc_cancel_test.sh index a481b6ab76e..1c06e527c88 100755 --- a/motr/st/utils/motr_rpc_cancel_test.sh +++ b/motr/st/utils/motr_rpc_cancel_test.sh @@ -238,7 +238,7 @@ motr_cancel_during_create() pid=$! echo "Wait for few seconds to generate enough fops " - sleep 3 + sleep 1 echo "Sending cancle fop" motr_cancel_session_fop @@ -297,7 +297,7 @@ motr_cancel_during_unlink() pid=$! echo "Wait for few seconds to generate enough fops " - sleep 15 + sleep 5 echo "Sending cancle fop" motr_cancel_session_fop diff --git a/scripts/m0 b/scripts/m0 index 071dca2dde8..b8ea5a0c36c 100755 --- a/scripts/m0 +++ b/scripts/m0 @@ -44,6 +44,8 @@ M0_SRC_DIR="${M0_SRC_DIR%/*/*}" SUDO="${SUDO-sudo -E}" # the absence of ':' is important +check_and_restart_lnet + # Check which library is used for reed-solomon encode and decode _check_rs_library() { is_isal=`whereis libisal | cut -d ':' -f 1 --complement`