Whamcloud - gitweb
b=19887
authorgrev <grev>
Tue, 28 Jul 2009 16:28:54 +0000 (16:28 +0000)
committergrev <grev>
Tue, 28 Jul 2009 16:28:54 +0000 (16:28 +0000)
i=Nathan
test_26b: increase wait client evicted value

lustre/tests/recovery-small.sh

index 5b09a2e..59fc92f 100755 (executable)
@@ -692,16 +692,19 @@ test_26b() {      # bug 10140 - evict dead exports by pinger
 
        zconf_umount `hostname` $MOUNT2 -f
 
+       # PING_INTERVAL max(obd_timeout / 4, 1U)
+       # PING_EVICT_TIMEOUT (PING_INTERVAL * 6)
+
        # evictor takes PING_EVICT_TIMEOUT + 3 * PING_INTERVAL to evict.  
        # But if there's a race to start the evictor from various obds, 
        # the loser might have to wait for the next ping.
-       # PING_INTERVAL max(obd_timeout / 4, 1U)
-       # sleep (2*PING_INTERVAL) 
-
-        local rc=0
-        wait_client_evicted ost1 $OST_NEXP $((TIMEOUT * 2 + TIMEOUT * 3 / 4)) || \
+       # = 9 * PING_INTERVAL + PING_INTERVAL
+       # = 10 PING_INTERVAL = 10 obd_timeout / 4 = 2.5 obd_timeout
+       # let's wait $((TIMEOUT * 3)) # bug 19887
+       local rc=0
+       wait_client_evicted ost1 $OST_NEXP $((TIMEOUT * 3)) || \
                error "Client was not evicted by ost" rc=1
-       wait_client_evicted $SINGLEMDS $MDS_NEXP $((TIMEOUT * 2 + TIMEOUT * 3 / 4)) || \
+       wait_client_evicted $SINGLEMDS $MDS_NEXP $((TIMEOUT * 3)) || \
                error "Client was not evicted by mds"
 }
 run_test 26b "evict dead exports"