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
mon: remove osd_epoch to avoid out-dated osdmap_cache #5315
Conversation
the test failed due to timeout. will rebase and repush to see if it's a false negative. |
@tchaikov thanks for repushing. I'm a little concerned, this is the second timeout run in 24h. I'll investigate. |
This looks great. I think the thing to watch out for is when we need an older osd map before s->osd_epoch.
What do you think? |
* remove osd_epoch<osd, epoch> from OSDMonitor * add osd_epoch to MonSession to track the latest osdmap epoch OSDMonitor sends to a mon client * do not remove osd_epoch entries if an OSD is down, or max_osd > osd_id Fixes: ceph#10930 Signed-off-by: Kefu Chai <kchai@redhat.com>
previously, we only track the osd_epoch for OSD peers. but other MonClients who receives osdmaps can also benefit from osd_epoch. Signed-off-by: Kefu Chai <kchai@redhat.com>
@liewegas i rethought the earlier-osdmap problem:
we'd better reset i was thinking if we should rename |
* remove the duplicated part of the two implementations of OSDMonitor::send_incremental() Signed-off-by: Kefu Chai <kchai@redhat.com>
Yeah, I think s->osd_epoch is fine. The current patches look right to me... |
thanks for your review, sage. will merge it after the mon:thrash qa run. |
@tchaikov please ignore the bot false negative, it is being fixed by @dillaman at http://tracker.ceph.com/issues/12664 |
running subset=1/3 rados:monthrash at http://pulpito.ceph.com/kchai-2015-08-20_06:26:38-rados:monthrash-wip-kefu-t3sting---basic-multi/. |
@tchaikov this passed my wip-sage-testing run. we can wait for yours to go as well or just merge, up to you! |
@liewegas thanks for testing. the monthrash tests are also green. merging. |
mon: remove osd_epoch to avoid out-dated osdmap_cache Reviewed-by: Sage Weil <sage@redhat.com>
OSDMonitor::osd_epoch
with theMonSession::osd_epoch
OSDMonitor::send_incremental()
due to the refactory, one of the
OSDMonitor::send_incremental()
is not able to mark op events anymore.FIxes: #10930 http://tracker.ceph.com/issues/10930