Whamcloud - gitweb
with AT enabled, we can have connect request timeout ~ reconnect
authorshadow <shadow>
Sat, 27 Jun 2009 04:56:03 +0000 (04:56 +0000)
committershadow <shadow>
Sat, 27 Jun 2009 04:56:03 +0000 (04:56 +0000)
timeout and test can't see real disconnect

Branch HEAD
b=19280
i=rread

lustre/tests/test-framework.sh

index 10f6f1f..f62ae65 100644 (file)
@@ -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