test_suite: print symlinks in case of COMPARE BAD

This commit is contained in:
Frank Liepold 2014-03-04 08:34:13 +01:00 committed by Thomas Schoebel-Theuer
parent 835749b3bd
commit b509b26845

View File

@ -20,10 +20,28 @@ function marsview_get
fi fi
[ "${result_line[*]}" = "${check_line[*]}" ] && break [ "${result_line[*]}" = "${check_line[*]}" ] && break
lib_vmsg " check_line : ${check_line[*]}" >&2 lib_vmsg " check_line : ${check_line[*]}" >&2
grep -q "SPLIT BRAIN" $tmp_err && break lib_remote_idfile $host "marsadm view-1and1 all; marsadm view-the-msg all; marsadm view-the-global-msg; true"
[[ "${check_line[*]}" =~ "PrimaryUnreachable" ]] && break if grep -q "SPLIT BRAIN" $tmp_err; then
lib_vmsg " COMPARE IGNORED"
break
fi
if [[ "${check_line[*]}" =~ "PrimaryUnreachable" ]]; then
lib_vmsg " COMPARE UNREACHABLE"
break
fi
sleep 2 sleep 2
if (( max_rounds-- <= 0 )); then if (( max_rounds-- <= 0 )); then
lib_vmsg " EXCEEDED $(date)" >&2
lib_linktree_print_linktree $host >&2
lib_vmsg " SLEEPING $(date)" >&2
sleep 60
lib_remote_idfile $host "marsadm view-1and1 all; marsadm view-the-msg all; marsadm view-the-global-msg; true" >&2
if [[ "${result_line[*]}" =~ "Outdated" \
&& "${check_line[*]}" =~ "Uptodate" ]]
then
lib_vmsg " COMPARE BUG" >&2
break
fi
lib_vmsg " COMPARE BAD" >&2 lib_vmsg " COMPARE BAD" >&2
break break
fi fi