Skip to content

Commit

Permalink
CORTX-32296: Fix ST failure of rpc cancel (Seagate#2104)
Browse files Browse the repository at this point in the history
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 <madhav.vemuri@seagate.com>
  • Loading branch information
madhavemuri authored and kiwionly2 committed Aug 30, 2022
1 parent 632262c commit e055c46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions motr/st/utils/motr_rpc_cancel_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions scripts/m0
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit e055c46

Please sign in to comment.