Skip to content
Snippets Groups Projects
Commit 05098d4a authored by Eric Mei's avatar Eric Mei
Browse files

branch: HEAD

AT test sleep use current AT service time.
b=16990
o=Brian Behlendorf <behlendorf1@llnl.gov>
r=nathan
r=ericm
parent 327336bc
No related branches found
No related tags found
No related merge requests found
...@@ -1526,8 +1526,13 @@ test_65a() #bug 3055 ...@@ -1526,8 +1526,13 @@ test_65a() #bug 3055
$LCTL dk > /dev/null $LCTL dk > /dev/null
debugsave debugsave
sysctl -w lnet.debug="+other" sysctl -w lnet.debug="+other"
# slow down a request # Slow down a request to the current service time, this is critical
do_facet mds sysctl -w lustre.fail_val=30000 # because previous tests may have caused this value to increase.
REQ_DELAY=`lctl get_param -n mdc.${FSNAME}-MDT0000-mdc-*.timeouts |
awk '/portal 12/ {print $5}'`
REQ_DELAY=$((${REQ_DELAY} + 5))
do_facet mds lctl set_param fail_val=$((${REQ_DELAY} * 1000))
#define OBD_FAIL_PTLRPC_PAUSE_REQ 0x50a #define OBD_FAIL_PTLRPC_PAUSE_REQ 0x50a
do_facet mds sysctl -w lustre.fail_loc=0x8000050a do_facet mds sysctl -w lustre.fail_loc=0x8000050a
createmany -o $DIR/$tfile 10 > /dev/null createmany -o $DIR/$tfile 10 > /dev/null
...@@ -1535,7 +1540,7 @@ test_65a() #bug 3055 ...@@ -1535,7 +1540,7 @@ test_65a() #bug 3055
# check for log message # check for log message
$LCTL dk | grep "Early reply #" || error "No early reply" $LCTL dk | grep "Early reply #" || error "No early reply"
debugrestore debugrestore
# client should show 30s estimates # client should show REQ_DELAY estimates
lctl get_param -n mdc.${FSNAME}-MDT0000-mdc-*.timeouts | grep portal lctl get_param -n mdc.${FSNAME}-MDT0000-mdc-*.timeouts | grep portal
sleep 9 sleep 9
lctl get_param -n mdc.${FSNAME}-MDT0000-mdc-*.timeouts | grep portal lctl get_param -n mdc.${FSNAME}-MDT0000-mdc-*.timeouts | grep portal
...@@ -1549,8 +1554,13 @@ test_65b() #bug 3055 ...@@ -1549,8 +1554,13 @@ test_65b() #bug 3055
debugsave debugsave
sysctl -w lnet.debug="other trace" sysctl -w lnet.debug="other trace"
$LCTL dk > /dev/null $LCTL dk > /dev/null
# slow down bulk i/o # Slow down a request to the current service time, this is critical
do_facet ost1 sysctl -w lustre.fail_val=30 # because previous tests may have caused this value to increase.
REQ_DELAY=`lctl get_param -n osc.${FSNAME}-OST0000-osc-*.timeouts |
awk '/portal 6/ {print $5}'`
REQ_DELAY=$((${REQ_DELAY} + 5))
do_facet ost1 lctl set_param fail_val=${REQ_DELAY}
#define OBD_FAIL_OST_BRW_PAUSE_PACK 0x224 #define OBD_FAIL_OST_BRW_PAUSE_PACK 0x224
do_facet ost1 sysctl -w lustre.fail_loc=0x224 do_facet ost1 sysctl -w lustre.fail_loc=0x224
...@@ -1563,7 +1573,7 @@ test_65b() #bug 3055 ...@@ -1563,7 +1573,7 @@ test_65b() #bug 3055
# check for log message # check for log message
$LCTL dk | grep "Early reply #" || error "No early reply" $LCTL dk | grep "Early reply #" || error "No early reply"
debugrestore debugrestore
# client should show 30s estimates # client should show REQ_DELAY estimates
lctl get_param -n osc.${FSNAME}-OST0000-osc-*.timeouts | grep portal lctl get_param -n osc.${FSNAME}-OST0000-osc-*.timeouts | grep portal
} }
run_test 65b "AT: verify early replies on packed reply / bulk" run_test 65b "AT: verify early replies on packed reply / bulk"
......
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