]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: client is evicted when an export subtree task is interrupted 51766/head
authorZhansong Gao <zhsgao@hotmail.com>
Mon, 3 Jul 2023 09:18:14 +0000 (17:18 +0800)
committerZhansong Gao <zhsgao@hotmail.com>
Wed, 13 Nov 2024 09:39:43 +0000 (17:39 +0800)
commit00b0711188f34ef4ea5c31f39bc70cf1fafbd907
tree6a13ceed5a80c7fc7e869ed52dd4565869209673
parentf23bd5d0995e4e52e0ac43c7e8a112cd2faf9f27
mds: client is evicted when an export subtree task is interrupted

The importer will force open some sessions provided by the exporter but the client does not know about
the new sessions until the exporter notifies it, and the notifications cannot be sent if the exporter
is interrupted. The client does not renew the sessions regularly that it does not know about, so the client
will be evicted by the importer after `session_autoclose` seconds (300 seconds by default).

The sessions that are forced opened in the importer need to be closed when the import process is reversed.

Signed-off-by: Zhansong Gao <zhsgao@hotmail.com>
src/mds/Migrator.cc
src/mds/Server.cc
src/mds/Server.h
src/mds/SessionMap.h