From c8bb9222e64d5031dbe155f2b85a9727ffcfe528 Mon Sep 17 00:00:00 2001 From: shadow Date: Sat, 27 Jun 2009 04:56:03 +0000 Subject: [PATCH] with AT enabled, we can have connect request timeout ~ reconnect timeout and test can't see real disconnect Branch HEAD b=19280 i=rread --- lustre/tests/test-framework.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 10f6f1f..f62ae65 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -2797,8 +2797,13 @@ wait_osc_import_state() { CONN_PROC="osc.${FSNAME}-${ost}.ost_server_uuid" CONN_STATE=$(do_facet $node lctl get_param -n $CONN_PROC 2>/dev/null | cut -f2) while [ "${CONN_STATE}" != "${expected}" ]; do - # for disconn we can check after proc entry is removed - [ "x${CONN_STATE}" == "x" -a "${expected}" == "DISCONN" ] && return 0 + if [ "${expected}" == "DISCONN" ]; then + # for disconn we can check after proc entry is removed + [ "x${CONN_STATE}" == "x" ] && return 0 + # with AT we can have connect request timeout ~ reconnect timeout + # and test can't see real disconnect + [ "${CONN_STATE}" == "CONNECTING" ] && return 0 + fi # disconnect rpc should be wait not more obd_timeout [ $i -ge $(($TIMEOUT * 3 / 2)) ] && \ error "can't put import for ${ost}(${ost_facet}) into ${expected} state" && return 1 -- 1.8.3.1