Skip to content

Commit

Permalink
crimson/osd: ignore exception when stopping osd
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tchaikov committed Jun 14, 2019
1 parent 0de0832 commit b9fe760
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/crimson/osd/osd.cc
Expand Up @@ -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);
});
}

Expand Down

0 comments on commit b9fe760

Please sign in to comment.