New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tool: ceph-kvstore-tool doesn't umount BlueStore properly #18083
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise looks good
src/tools/ceph_kvstore_tool.cc
Outdated
|
||
~StoreTool() { | ||
if (bluestore) { | ||
assert(0 == bluestore->umount()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move the call with side effects out of the assert, in case we compile out assert() in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you Sage. done, remove assert here.
Fixes: http://tracker.ceph.com/issues/21625 Signed-off-by: Chang Liu <liuchang0812@gmail.com>
3d6ce93
to
81e4560
Compare
@liuchang0812 do you mind writing a test case that reproduces the original issue? can probably put it in qa/standalone.. maybe a separate dir for tool tests that don't need an actual cluster? |
I will do it. we need a bluestore dir, so standalone seems is better? |
ceph-objectstore-tool --op mkfs might be helpful.
|
Looks good.. is that commit part of another PR? We also need to add a .yaml file in qa/suites/rados/standalone-nomgrs/... somewhere so that it gets run as part of the test suite. |
yeah, PR: #16745 We also need to add a .yaml file in qa/suites/rados/standalone-nomgrs/... somewhere so that it gets run as part of the test suite. I put it in |
Fixes: http://tracker.ceph.com/issues/21625
Signed-off-by: Chang Liu liuchang0812@gmail.com