Revision: bb3c9034f676
Author: Jean Deruelle <[email protected]>
Date: Wed Aug 29 06:20:53 2012
Log: trying to discover why the node doesn't get killed
http://code.google.com/p/sipservlets/source/detail?r=bb3c9034f676
Modified:
/sip-servlets-test-suite/sipp-scenarios/clustering/auto-clustering-failover-test.sh
/sip-servlets-test-suite/sipp-scenarios/clustering/auto-kill-process-tree.sh
=======================================
---
/sip-servlets-test-suite/sipp-scenarios/clustering/auto-clustering-failover-test.sh
Mon Apr 23 09:27:04 2012
+++
/sip-servlets-test-suite/sipp-scenarios/clustering/auto-clustering-failover-test.sh
Wed Aug 29 06:20:53 2012
@@ -3,8 +3,8 @@
export config1="all"
export config2="port-1"
export KILL_PARAMS="-9"
-export FULLSTARTSLEEP=200
-export HALFSTARTSLEEP=200
+export FULLSTARTSLEEP=100
+export HALFSTARTSLEEP=100
export CALLS=5
if [ "x$1" != "x" ]; then
=======================================
---
/sip-servlets-test-suite/sipp-scenarios/clustering/auto-kill-process-tree.sh
Tue Aug 28 14:52:48 2012
+++
/sip-servlets-test-suite/sipp-scenarios/clustering/auto-kill-process-tree.sh
Wed Aug 29 06:20:53 2012
@@ -1,6 +1,9 @@
#!/bin/sh
export pid=$1
-killed="no"
+export killed="no"
+
+echo "Trying Killing script $2 child process with parent pid = $pid"
+
for child in $(ps -o pid,ppid ax | \
awk "{ if ( \$2 == $pid ) { print \$1 }}")
do
@@ -8,7 +11,7 @@
kill $child # clean kill with shutdown instruction
sleep .4 # give some time for the clean shutdown to reach out
kill -9 $child # kill it immediately without wasting more time
- killed="yes"
+ export killed="yes"
done
if [ "yes" = $killed ]; then