From db445ce517676ffa10203eab3002d204c308a7d2 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Mon, 2 Oct 2023 16:54:33 -0400 Subject: [PATCH] Fix the debug output of client-unmount-recovery The script really wants to print rid instead of pid. But in case of failure, we can just dump the arrays as well. Signed-off-by: Auke Kok --- tests/tests/client-unmount-recovery.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/tests/client-unmount-recovery.sh b/tests/tests/client-unmount-recovery.sh index 44e6233a..e6efd54e 100644 --- a/tests/tests/client-unmount-recovery.sh +++ b/tests/tests/client-unmount-recovery.sh @@ -28,7 +28,7 @@ while [ "$SECONDS" -lt "$END" ]; do for i in $(t_fs_nrs); do if [ "$i" -ge "$quorum_nr" ]; then t_umount $i & - echo "umount $i pid $pid quo $quorum_nr" \ + echo "umount $i rid $rid quo $quorum_nr" \ >> $T_TMP.log mounted[$i]=0 fi @@ -53,6 +53,9 @@ while [ "$SECONDS" -lt "$END" ]; do for i in "${lock_arr[@]}"; do if [[ ! " ${rid_arr[*]} " =~ " $i " ]]; then + echo -e "RID($i) exists" >> $T_TMP.log + echo -e "rid_arr:\n${rid_arr[@]}" >> $T_TMP.log + echo -e "lock_arr:\n${lock_arr[@]}" >> $T_TMP.log t_fail "RID($i): exists when not mounted" fi done