Browse files

allowing the error counter to reset when success occurs

  • Loading branch information...
1 parent 1251f67 commit 5a4c535d6d89e19b66059550171f762ad49ebb43 @buzztroll buzztroll committed Jan 23, 2012
View
13 control/bin/ltclient.sh
@@ -60,12 +60,13 @@ do
done=`echo $out | awk -F , '{ print $2 }'`
message=`echo $out | awk -F , '{ print $3 }'`
echo $out
- echo $message
if [ "X$done" == "XTrue" ]; then
if [ $rc -ne 0 ]; then
exit $rc
fi
fi
+ # once it succeds we can reset the error counter
+ ssh_error_cnt=0
fi
fi
@@ -75,8 +76,16 @@ do
exit 2
fi
done
+
+echo "$localpath exists"
if [ "X$done" == "XFalse" ]; then
+ echo "running a blocking query"
+ # if we get here the file exists but we have not yet received word of
+ # suceess from the head node. run a blocking query
ssh -p $port $userhost "$remoteexe" --reattach "$rid"
+ rc=$?
+else
+ echo "already cleared done flag"
+ rc=0
fi
-rc=$?
exit $rc
View
1 service/service/java/tests/suites/basic/home/services/lib-native
View
1 service/service/java/tests/suites/failure/home/services/lib-native
View
1 service/service/java/tests/suites/spotinstances/home/services/lib-native

0 comments on commit 5a4c535

Please sign in to comment.