]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: client is evicted when an export subtree task is interrupted 61514/head
authorZhansong Gao <zhsgao@hotmail.com>
Mon, 3 Jul 2023 09:18:14 +0000 (17:18 +0800)
committerMilind Changire <mchangir@redhat.com>
Sat, 25 Jan 2025 02:05:11 +0000 (07:35 +0530)
commite9d3225babc19aece406c1c72438572f1a51a5ed
treead9ba0bf1996453a8add37d7f545f5cd04cd7a73
parenta25e87292d11612633c9e5fa9066a1a773db6c6e
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