]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: client is evicted when an export subtree task is interrupted 62055/head
authorZhansong Gao <zhsgao@hotmail.com>
Mon, 3 Jul 2023 09:18:14 +0000 (17:18 +0800)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Fri, 21 Nov 2025 12:16:01 +0000 (19:16 +0700)
commited3bec39ed088f97f0cebf16b55feb0a96350476
treeae73cc01045b61b8d16d03403808b705a87dfea7
parentac3670fd6541a9fdd0c75ab5701d5484c06fdd5a
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>
(cherry picked from commit 00b0711188f34ef4ea5c31f39bc70cf1fafbd907)
src/mds/Migrator.cc
src/mds/Server.cc
src/mds/Server.h
src/mds/SessionMap.h