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
common,mds,mgr,mon,osd: store event only if it's added #16312
Conversation
ca19d7a
to
e704073
Compare
This seems right. I'm scared about the number of call sites that have to change, though, and that we'll introduce something subtle. :( |
Hold this PR for mimic? |
http://pulpito.ceph.com/kchai-2017-07-13_18:13:10-rados-wip-kefu-testing-distro-basic-smithi/
|
i am fine either way. this fix mostly addresses the possible crashes after timer is shutdown, and this only happens when the daemon is being brought down. |
@jdurgin what do you think? |
Unless this is causing a bunch of noise in the tests, I'd prefer postponing to mimic |
okay, so far no noises is observed in tests caused by the problem mentioned above. let's hold this PR for mimic! |
f754b9c
to
2449b3a
Compare
otherwise * we will try to cancel it even it's never been added * we will keep a dangling pointer around. which is, well, scaring. * static analyzer will yell at us: Memory - illegal accesses (USE_AFTER_FREE) Signed-off-by: Kefu Chai <kchai@redhat.com>
otherwise
scaring.
Memory - illegal accesses (USE_AFTER_FREE)
Signed-off-by: Kefu Chai kchai@redhat.com