]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
init-ceph: wait longer before resending $signal 27308/head
authorKefu Chai <kchai@redhat.com>
Tue, 2 Apr 2019 06:31:05 +0000 (14:31 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 2 Apr 2019 06:39:01 +0000 (14:39 +0800)
if ceph-osd takes longer than 1 seconds to unmount the objectstore, it
won't get a chance to fully persist all of its stuff to disk before
init-ceph kills it again.

in my case, `MemStore::_save()` fails to write $path/collections before
it gets killed, if it has more than 512 PGs.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/init-ceph.in

index 184371006918861fde999a0618bc37d0f6cdc080..8ea9ef076edbc5ff7e44fe08adbc24e582ba53f5 100755 (executable)
@@ -141,7 +141,7 @@ stop_daemon() {
            cmd=\"kill $signal \$pid\"
            printf \"\$cmd...\"
            \$cmd
-           sleep 1
+           sleep 2
            continue
        done
     fi"