From 6e43f469b185e6bcc9acd90c53924d6631761f1c Mon Sep 17 00:00:00 2001 From: shadow Date: Sat, 27 Jun 2009 04:59:44 +0000 Subject: [PATCH] with AT enabled, we can have connect request timeout ~ reconnect timeout and test can't see real disconnect Branch b1_8 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 3e6affc..16ba788 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -2531,8 +2531,13 @@ wait_osc_import_state() { CONN_PROC="osc.${FSNAME}-${ost}.ost_server_uuid" CONN_STATE=$(do_facet $node lctl get_param -n $CONN_PROC | 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 enabled, we can have connect request timeout near of + # 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