]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: ignore exception when stopping osd 28534/head
authorKefu Chai <kchai@redhat.com>
Fri, 14 Jun 2019 06:57:55 +0000 (14:57 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 14 Jun 2019 08:31:22 +0000 (16:31 +0800)
OSD::stop() is a top-level method in the sense that it will be called
directly when engine stops. so it should not throw any exceptions.
instead, we will print out the error and ignore the exception if any.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/osd.cc

index 11725fb4e73aa7a0c17739dbead959fd9c3fc5e9..a21cabaac1047fd8e182c970893756eed5d42a10 100644 (file)
@@ -315,6 +315,8 @@ seastar::future<> OSD::stop()
     return monc->stop();
   }).then([this] {
     return store->umount();
+  }).handle_exception([](auto ep) {
+    logger().error("error while stopping osd: {}", ep);
   });
 }