From: Kefu Chai Date: Fri, 14 Jun 2019 06:57:55 +0000 (+0800) Subject: crimson/osd: ignore exception when stopping osd X-Git-Tag: v15.1.0~2464^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5461047855f7e3623a366a7385cbe8a23b45de11;p=ceph.git crimson/osd: ignore exception when stopping osd 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 --- diff --git a/src/crimson/osd/osd.cc b/src/crimson/osd/osd.cc index 11725fb4e73..a21cabaac10 100644 --- a/src/crimson/osd/osd.cc +++ b/src/crimson/osd/osd.cc @@ -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); }); }