]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: ignore trimmed cache items for dead cache drop 32919/head
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 15 Jan 2020 01:52:28 +0000 (17:52 -0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 27 Jan 2020 16:54:05 +0000 (17:54 +0100)
Fixes: https://tracker.ceph.com/issues/42986
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 590368e956111a64e717cfff07a7a25e40fe4950)

qa/suites/fs/multiclient/tasks/cephfs_misc_tests.yaml
qa/tasks/cephfs/test_misc.py

index 90ae385897a98b2129dcc2242f64bacbfa6a52d0..564989d6d766429d4f2e5a3b64c4f1c84e9aa0e3 100644 (file)
@@ -9,3 +9,5 @@ overrides:
       - evicting unresponsive client
       - POOL_APP_NOT_ENABLED
       - has not responded to cap revoke by MDS for over
+      - MDS_CLIENT_LATE_RELEASE
+      - responding to mclientcaps
index 82fbd763bbf04dd220b5b8e8271577a001739e0b..2fc9ed53d14f1e0b64474b1112e1ae1fb1d29e7f 100644 (file)
@@ -260,7 +260,12 @@ class TestCacheDrop(CephFSTestCase):
         self.assertEqual(result['flush_journal']['return_code'], 0)
         self.assertGreater(result['duration'], 5)
         self.assertLess(result['duration'], 120)
-        self.assertEqual(0, result['trim_cache']['trimmed'])
+        # Note: result['trim_cache']['trimmed'] may be >0 because dropping the
+        # cache now causes the Locker to drive eviction of stale clients (a
+        # stale session will be autoclosed at mdsmap['session_timeout']). The
+        # particular operation causing this is journal flush which causes the
+        # MDS to wait wait for cap revoke.
+        #self.assertEqual(0, result['trim_cache']['trimmed'])
         self.mount_a.kill_cleanup()
         self.mount_a.mount()
         self.mount_a.wait_until_mounted()
@@ -278,7 +283,11 @@ class TestCacheDrop(CephFSTestCase):
         self.assertEqual(result['flush_journal']['return_code'], 0)
         self.assertGreater(result['duration'], 5)
         self.assertLess(result['duration'], 120)
-        self.assertEqual(0, result['trim_cache']['trimmed'])
+        # Note: result['trim_cache']['trimmed'] may be >0 because dropping the
+        # cache now causes the Locker to drive eviction of stale clients (a
+        # stale session will be autoclosed at mdsmap['session_timeout']). The
+        # particular operation causing this is journal flush which causes the
+        # MDS to wait wait for cap revoke.
         self.mount_a.kill_cleanup()
         self.mount_a.mount()
         self.mount_a.wait_until_mounted()