From 50fa3281dd465d4f6f5a2bd6fa880fd75d4d632f Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Fri, 13 Apr 2018 06:14:46 +0000 Subject: [PATCH] qa/cephfs: test if evicted client unmounts without hanging Signed-off-by: Rishabh Dave (cherry picked from commit b14302d1fed101beefd81d5457c14c2a88a13e09) --- qa/tasks/cephfs/test_client_recovery.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qa/tasks/cephfs/test_client_recovery.py b/qa/tasks/cephfs/test_client_recovery.py index fd58c1427338e..f00a083551239 100644 --- a/qa/tasks/cephfs/test_client_recovery.py +++ b/qa/tasks/cephfs/test_client_recovery.py @@ -472,3 +472,10 @@ class TestClientRecovery(CephFSTestCase): self.mount_b.mount() self.mount_b.wait_until_mounted() self.mount_b.run_shell(["ls", "subdir/childfile"]) + + def test_unmount_for_evicted_client(self): + """Test if client hangs on unmount after evicting the client.""" + mount_a_client_id = self.mount_a.get_global_id() + self.fs.mds_asok(['session', 'evict', "%s" % mount_a_client_id]) + + self.mount_a.umount_wait(require_clean=True, timeout=30) -- 2.39.5