Skip to content
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

hammer: mon: map_cache can become inaccurate if osd does not receive the osdmaps #5773

Merged
2 commits merged into from Nov 21, 2015

Conversation

tchaikov
Copy link
Contributor

@tchaikov tchaikov commented Sep 2, 2015

@tchaikov tchaikov assigned ghost Sep 2, 2015
@tchaikov tchaikov modified the milestones: firefly, hammer Sep 2, 2015
@tchaikov
Copy link
Contributor Author

tchaikov commented Sep 2, 2015

@dachary turns out we should backport "less" than you did in #5756.

@tchaikov tchaikov assigned tchaikov and unassigned ghost Sep 11, 2015
@tchaikov
Copy link
Contributor Author

needs rebase

@tchaikov tchaikov assigned ghost and unassigned tchaikov Sep 14, 2015
@ghost ghost changed the title mon: map_cache can become inaccurate if osd does not receive the osdmaps DNM: mon: map_cache can become inaccurate if osd does not receive the osdmaps Oct 1, 2015
@tchaikov tchaikov assigned tchaikov and unassigned ghost Oct 14, 2015
* 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>
(cherry picked from commit c05753e)
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>
(cherry picked from commit de43a02)

Conflicts:
	src/mon/OSDMonitor.cc:
		do not assume that the MonSession is always available when
        OSDMonitor::send_incremental() is called. as when the
        connection to the mon client is dropped, the Monitor is
        aware of this, but not the OSDMonitor.
@tchaikov
Copy link
Contributor Author

removed the assertion for the MonSession, will rerun some of the failed test once the build is ready.

@tchaikov
Copy link
Contributor Author

tchaikov commented Nov 3, 2015

@dachary the test passed at http://pulpito.ceph.com/kchai-2015-11-03_00:33:48-rados:thrash-wip-5773-hammer---basic-multi/ could you take a look at this pr again? thanks!

@tchaikov tchaikov changed the title DNM: mon: map_cache can become inaccurate if osd does not receive the osdmaps mon: map_cache can become inaccurate if osd does not receive the osdmaps Nov 3, 2015
@tchaikov tchaikov assigned ghost and unassigned tchaikov Nov 3, 2015
@ghost
Copy link

ghost commented Nov 3, 2015

@tchaikov ok, thanks !

ghost pushed a commit that referenced this pull request Nov 11, 2015
… does not receive the osdmaps

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 13, 2015
… does not receive the osdmaps

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 13, 2015
… does not receive the osdmaps

Reviewed-by:
ghost pushed a commit that referenced this pull request Nov 16, 2015
… does not receive the osdmaps

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 19, 2015
… does not receive the osdmaps

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 19, 2015
… does not receive the osdmaps

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Nov 19, 2015
… does not receive the osdmaps

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@ghost
Copy link

ghost commented Nov 21, 2015

It passed a run of the hammer rados suite ( see http://tracker.ceph.com/issues/13356#note-28 for details ).

ghost pushed a commit that referenced this pull request Nov 21, 2015
mon: map_cache can become inaccurate if osd does not receive the osdmaps

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@ghost ghost merged commit 24d6698 into ceph:hammer Nov 21, 2015
@tchaikov tchaikov deleted the wip-12835-hammer branch January 8, 2016 03:25
@ghost ghost changed the title mon: map_cache can become inaccurate if osd does not receive the osdmaps hammer: mon: map_cache can become inaccurate if osd does not receive the osdmaps Feb 18, 2016
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants