Add some delays in check_max_mod_rpcs_in_flight() routine
to ensure background commands are launched before continuing
test execution.
Signed-off-by: Gregoire Pichon <gregoire.pichon@bull.net>
Change-Id: Ia1c943b7b58ecfe4f3fd80d6470a8ee2650789e7
Reviewed-on: http://review.whamcloud.com/16215
Tested-by: Jenkins
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
for i in $(seq $((mmr - 1))); do
chmod 0600 $dir/file-$i &
done
for i in $(seq $((mmr - 1))); do
chmod 0600 $dir/file-$i &
done
# send one additional modify RPC
do_facet $facet "$LCTL set_param fail_loc=0"
# send one additional modify RPC
do_facet $facet "$LCTL set_param fail_loc=0"
for i in $(seq $mmr); do
chmod 0666 $dir/file-$i &
done
for i in $(seq $mmr); do
chmod 0666 $dir/file-$i &
done
# send one additional modify RPC
do_facet $facet "$LCTL set_param fail_loc=0"
# send one additional modify RPC
do_facet $facet "$LCTL set_param fail_loc=0"
# check this additional modify RPC blocked getting a modify RPC slot
checkstat -vp 0644 $dir/file-$((mmr + 1)) ||
# check this additional modify RPC blocked getting a modify RPC slot
checkstat -vp 0644 $dir/file-$((mmr + 1)) ||
- error "Unexpectedly send $mmr modify RPCs in parallel"
+ error "Unexpectedly send $(($mmr + 1)) modify RPCs in parallel"