Skip to content
Snippets Groups Projects
Commit 4a2d3037 authored by Vitaly Fertman's avatar Vitaly Fertman
Browse files

Branch HEAD

b=17748
i=grev
i=adilger

the sanityN test issue is fixed
parent f16855c5
No related branches found
No related tags found
No related merge requests found
...@@ -780,12 +780,12 @@ run_test 33a "commit on sharing, cross crete/delete, 2 clients, benchmark" ...@@ -780,12 +780,12 @@ run_test 33a "commit on sharing, cross crete/delete, 2 clients, benchmark"
# End commit on sharing tests # End commit on sharing tests
test_34() { #16129 test_34() { #16129
local OPER
local lock_in
local lock_out
for OPER in notimeout timeout ; do for OPER in notimeout timeout ; do
rm $DIR1/$tfile 2>/dev/null rm $DIR1/$tfile 2>/dev/null
lock_in=0; lock_in=$(do_nodes $(osts_nodes) "lctl get_param -n ldlm.namespaces.filter-*.lock_timeouts" | calc_sum)
for f in `lctl get_param -n ldlm/namespaces/*/lock_timeouts`; do
lock_in=$(($lock_in + $f))
done
if [ $OPER == "timeout" ] ; then if [ $OPER == "timeout" ] ; then
for j in `seq $OSTCOUNT`; do for j in `seq $OSTCOUNT`; do
#define OBD_FAIL_PTLRPC_HPREQ_TIMEOUT 0x511 #define OBD_FAIL_PTLRPC_HPREQ_TIMEOUT 0x511
...@@ -808,10 +808,7 @@ test_34() { #16129 ...@@ -808,10 +808,7 @@ test_34() { #16129
dd of=/dev/null if=$DIR2/$tfile > /dev/null 2>&1 dd of=/dev/null if=$DIR2/$tfile > /dev/null 2>&1
# wait for a lock timeout # wait for a lock timeout
sleep 4 sleep 4
lock_out=0 lock_out=$(do_nodes $(osts_nodes) "lctl get_param -n ldlm.namespaces.filter-*.lock_timeouts" | calc_sum)
for f in `lctl get_param -n ldlm/namespaces/*/lock_timeouts`; do
lock_out=$(($lock_out + $f))
done
if [ $OPER == "timeout" ] ; then if [ $OPER == "timeout" ] ; then
if [ $lock_in == $lock_out ]; then if [ $lock_in == $lock_out ]; then
error "no lock timeout happened" error "no lock timeout happened"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment