Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
938a127
)
b=17748 fix sanityn test 34 to support multiple OSS nodes
author
Jian Yu
<Jian.Yu@sun.com>
Sat, 4 Sep 2010 14:29:50 +0000
(18:29 +0400)
committer
Mikhail Pershin
<tappro@sun.com>
Mon, 6 Sep 2010 19:35:45 +0000
(23:35 +0400)
i=vitaly.fertman
i=grev
lustre/tests/sanityn.sh
patch
|
blob
|
history
diff --git
a/lustre/tests/sanityn.sh
b/lustre/tests/sanityn.sh
index
a4cbd2c
..
255d138
100644
(file)
--- a/
lustre/tests/sanityn.sh
+++ b/
lustre/tests/sanityn.sh
@@
-773,13
+773,22
@@
run_test 33a "commit on sharing, cross crete/delete, 2 clients, benchmark"
# End commit on sharing tests
# End commit on sharing tests
+get_ost_lock_timeouts() {
+ local nodes=${1:-$(comma_list $(osts_nodes))}
+
+ local locks=$(do_nodes $nodes \
+ "lctl get_param -n ldlm.namespaces.filter-*.lock_timeouts" | calc_sum)
+
+ echo $locks
+}
+
test_34() { #16129
local OPER
local lock_in
local lock_out
for OPER in notimeout timeout ; do
rm $DIR1/$tfile 2>/dev/null
test_34() { #16129
local OPER
local lock_in
local lock_out
for OPER in notimeout timeout ; do
rm $DIR1/$tfile 2>/dev/null
- lock_in=$(
do_nodes $(osts_nodes) "lctl get_param -n ldlm.namespaces.filter-*.lock_timeouts" | calc_sum
)
+ lock_in=$(
get_ost_lock_timeouts
)
if [ $OPER == "timeout" ] ; then
for j in `seq $OSTCOUNT`; do
#define OBD_FAIL_PTLRPC_HPREQ_TIMEOUT 0x511
if [ $OPER == "timeout" ] ; then
for j in `seq $OSTCOUNT`; do
#define OBD_FAIL_PTLRPC_HPREQ_TIMEOUT 0x511
@@
-800,7
+809,7
@@
test_34() { #16129
dd of=/dev/null if=$DIR2/$tfile > /dev/null 2>&1
# wait for a lock timeout
sleep 4
dd of=/dev/null if=$DIR2/$tfile > /dev/null 2>&1
# wait for a lock timeout
sleep 4
- lock_out=$(
do_nodes $(osts_nodes) "lctl get_param -n ldlm.namespaces.filter-*.lock_timeouts" | calc_sum
)
+ lock_out=$(
get_ost_lock_timeouts
)
if [ $OPER == "timeout" ] ; then
if [ $lock_in == $lock_out ]; then
error "no lock timeout happened"
if [ $OPER == "timeout" ] ; then
if [ $lock_in == $lock_out ]; then
error "no lock timeout happened"