]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: osd-pool-create test must kill -9
authorLoic Dachary <loic@dachary.org>
Sun, 2 Feb 2014 09:34:43 +0000 (10:34 +0100)
committerLoic Dachary <loic@dachary.org>
Tue, 4 Feb 2014 07:16:23 +0000 (08:16 +0100)
If a MON is stuck, kill -15 won't be enough and the test will hang
forever.

Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/mon/osd-pool-create.sh

index b67d120554c199086417798d4bc31fae39b46275..29e869d005f5110a8b5b4ea6a8e63e0d75e8e623 100755 (executable)
@@ -43,7 +43,7 @@ function run_mon() {
 function kill_mon() {
     for try in 0 1 1 1 2 3 ; do
         if [ ! -e $DIR/pidfile ] ||
-            ! kill $(cat $DIR/pidfile) ; then
+            ! kill -9 $(cat $DIR/pidfile) ; then
             break
         fi
         sleep $try