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

Commits on May 11, 2018

  1. mds: avoid calling rejoin_gather_finish() two times successively

    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)
    ukernel authored and batrick committed May 11, 2018
    Configuration menu
    Copy the full SHA
    5305903 View commit details
    Browse the repository at this point in the history
  2. mds: tighten conditions of calling rejoin_gather_finish()

    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)
    ukernel authored and batrick committed May 11, 2018
    Configuration menu
    Copy the full SHA
    6cf1525 View commit details
    Browse the repository at this point in the history