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

mimic: mds: avoid calling rejoin_gather_finish() two times successively #21952

Merged
merged 2 commits into from May 11, 2018

Conversation

batrick
Copy link
Member

@batrick batrick commented May 11, 2018

If MDCache::rejoin_gather is empty and MDCache::rejoins_pending is true
when MDCache::process_imported_caps() calls maybe_send_pending_rejoins()
Both MDCache::rejoin_send_rejoins() and MDCache::process_imported_caps()
may call rejoin_gather_finish().

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: http://tracker.ceph.com/issues/24047
(cherry picked from commit 0451dae)
Handle two cases:
1. mds receives all cache rejoin messages, then receives mdsmap that
   says mds cluster enters rejoining state.
2. when opening undef inodes/dirfrags, other mds restarts.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 0a38a49)
@batrick batrick added the cephfs Ceph File System label May 11, 2018
@batrick batrick added this to the mimic milestone May 11, 2018
@batrick batrick merged commit 6cf1525 into ceph:mimic May 11, 2018
batrick added a commit that referenced this pull request May 11, 2018
* refs/pull/21952/head:
	mds: tighten conditions of calling rejoin_gather_finish()
	mds: avoid calling rejoin_gather_finish() two times successively
@batrick batrick deleted the pr21883-mimic branch May 11, 2018 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cephfs Ceph File System
Projects
None yet
2 participants