Repository navigation
mds: Fix incorrect Importer MDS recovery during EImportStart journal replay #36227
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1788,6 +1788,7 @@ void ESession::replay(MDSRank *mds) | |
| session = mds->sessionmap.get_or_add_session(client_inst); | ||
| mds->sessionmap.set_state(session, Session::STATE_OPEN); | ||
| session->set_client_metadata(client_metadata); | ||
| session->set_client_not_open(false); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no code submits the ESession event
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here It's just clearing the client_not_open flag set during EImportStart replay. Meaning the client had actually opened the connection and so we don't need this flag to be set. So during reconnect if the flag is set and the client failed to reconnect, then we kill the session and if it is not set and client failed to reconnect, then blacklist.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. check Server::handle_client_session(). if session is already being opened by Server::prepare_force_open_sessions. it does not submit ESession event |
||
| dout(10) << " opened session " << session->info.inst << dendl; | ||
| } else { | ||
| session = mds->sessionmap.get_session(client_inst.name); | ||
|
|
@@ -3079,7 +3080,7 @@ void EImportStart::replay(MDSRank *mds) | |
| decode(cm, blp); | ||
| if (!blp.end()) | ||
| decode(cmm, blp); | ||
| mds->sessionmap.replay_open_sessions(cmapv, cm, cmm); | ||
| mds->sessionmap.replay_open_sessions(cmapv, cm, cmm, true); | ||
| } | ||
| update_segment(); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.