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
Clean up lifecycle thread #10480
Clean up lifecycle thread #10480
Conversation
lgtm |
still a lot of failures in http://pulpito.ceph.com/cbodley-2016-07-28_15:39:31-rgw-lifecycle-cleanup---basic-mira/. hard to tell which are actually related testing does show an issue, though -
looks like this part was unfinished: bool RGWLC::going_down()
{
return false;
} |
@@ -3176,6 +3176,12 @@ void RGWRados::finalize() | |||
delete gc; | |||
gc = NULL; | |||
|
|||
if (use_lc_thread) { | |||
lc->stop_processor(); | |||
} |
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.
~RGWLC()
is already calling stop_processor()
, so we shouldn't need this part
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.
This is the same way that GC is, so maybe leave it?
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.
k
@dang i pushed a fix for this to https://github.com/cbodley/ceph/commits/pr/10480, feel free to cherry-pick cbodley@08140f6 |
Make sure that the lifecycle thread is terminated and all memory is cleaned up on shutdown. Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
@cbodley Better fix, I think, taken from GC. |
Signed-off-by: Daniel Gryniewicz dang@redhat.com