- CURRENT_TS=$(date +%s)
- ELAPSED=$((CURRENT_TS - START_TS))
-
- sleep=$((SERVER_FAILOVER_PERIOD-(CURRENT_TS - it_time_start)))
-
- # keep count the number of itterations when
- # time spend to failover and two client loads check exceeded
- # the value ( SERVER_FAILOVER_PERIOD - MINSLEEP )
- if [ $sleep -lt $MINSLEEP ]; then
- reqfail=$((reqfail +1))
- log "WARNING: failover, client reintegration and check_client_loads time exceeded SERVER_FAILOVER_PERIOD - MINSLEEP !
-Failed to load the filesystem with I/O for a minimum period of $MINSLEEP $reqfail times ( REQFAIL=$REQFAIL ).
+ restart_client_loads $fail_client $ERRORS_OK || exit $?
+
+ # Check that not failed clients loads are still running.
+ # No application failures should occur on clients that were not failed.
+ log "==== Checking the clients loads AFTER failed client reintegrated \
+-- failure NOT OK"
+ if ! ERRORS_OK= check_client_loads \
+ $(exclude_items_from_list $NODES_TO_USE $fail_client); then
+ log "Client load failed. Exiting..."
+ exit 5
+ fi
+
+ current_ts=$(date +%s)
+ ELAPSED=$((current_ts - start_ts))
+ sleep=$((SERVER_FAILOVER_PERIOD - (current_ts - it_time_start)))
+
+ # Keep counting the number of iterations when
+ # time spent to failover and two client loads check exceeded
+ # the value ( SERVER_FAILOVER_PERIOD - MINSLEEP ).
+ if [ $sleep -lt $MINSLEEP ]; then
+ reqfail=$((reqfail + 1))
+ log "WARNING: failover, client reintegration and \
+check_client_loads time exceeded SERVER_FAILOVER_PERIOD - MINSLEEP!
+Failed to load the filesystem with I/O for a minimum period of \
+$MINSLEEP $reqfail times ( REQFAIL=$REQFAIL ).