Skip to content

mds: kill session state are open when mds do ms_handle_remote_reset#44638

Merged
vshankar merged 1 commit intoceph:masterfrom
yunfeiguan:wip-53911
Feb 9, 2022
Merged

mds: kill session state are open when mds do ms_handle_remote_reset#44638
vshankar merged 1 commit intoceph:masterfrom
yunfeiguan:wip-53911

Conversation

@yunfeiguan
Copy link

if the mds decide to reuse the old connection it will
do reset_session and should also kill the session
which are open state in MDSDaemon::ms_handle_remote_reset
to prevent the situation client session is stuck in
opening state and never has chance to becaome open.

the root cause is client missed the request_open
reply but the mds session has become open already.
so we should kill the session in mds side and let
mds recreate the session when received the connect
request from client.

Fixes: http://tracker.ceph.com/issues/53911
Signed-off-by: YunfeiGuan yunfeiguan@xtaotech.com

@github-actions github-actions bot added the cephfs Ceph File System label Jan 18, 2022
if the mds decide to reuse the old connection it will
do reset_session and should  also kill the session
which are open state in MDSDaemon::ms_handle_remote_reset
to prevent the situation client session is stuck in
opening state and never has chance to becaome open.

the root cause is client missed the request_open
reply but the mds session has become open already.
so we should kill the session in mds side and let
mds recreate the session when received the connect
request from client.

Fixes: http://tracker.ceph.com/issues/53911
Signed-off-by: YunfeiGuan <yunfeiguan@xtaotech.com>
@vshankar vshankar requested a review from a team January 18, 2022 13:13
@vshankar
Copy link
Contributor

Should the client use a new connection to the MDS after ms_handle_remote_reset call when in STATE_OPENING state? Or does it not matter if the client continues to use the already opened session since the server would create a new session (connection) when the client re-sends REQUEST_OPEN?

@vshankar
Copy link
Contributor

vshankar commented Feb 9, 2022

Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vshankar vshankar merged commit f33030c into ceph:master Feb 9, 2022
@yunfeiguan yunfeiguan deleted the wip-53911 branch February 10, 2022 12:56
@lxbsz
Copy link
Member

lxbsz commented Mar 9, 2022

@yunfeiguan Could check this issue again ? I have reverted it in #45307 since it will introduce a new issues.

Please let me know if you want me to code this. Thanks.

@lxbsz
Copy link
Member

lxbsz commented Mar 9, 2022

@yunfeiguan Could check this issue again ? I have reverted it in #45307 since it will introduce a new issues.

Please let me know if you want me to code this. Thanks.

I will fix this together with #45307.

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

Development

Successfully merging this pull request may close these issues.

3 participants