]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: config recall settings to test cache drop 27342/head
authorPatrick Donnelly <pdonnell@redhat.com>
Sat, 16 Feb 2019 03:44:47 +0000 (19:44 -0800)
committerVenky Shankar <vshankar@redhat.com>
Thu, 4 Apr 2019 07:12:17 +0000 (03:12 -0400)
If we use the defaults, the MDS/client will recall/release everything quickly.
We want it to take time to see things like the timeout get hit.

Fixes: https://tracker.ceph.com/issues/38445
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit b28dcd9d75909ed04c52bd87b036a8f9c73e050e)

 Conflicts:
qa/tasks/cephfs/test_misc.py

qa/tasks/cephfs/test_misc.py

index ce06fb055d9e39cedd801f2784445eb7f337f0af..a53d174278235a4768ffbdaa5a36913d7b07afbd 100644 (file)
@@ -236,10 +236,14 @@ class TestCacheDrop(CephFSTestCase):
                 result = self.fs.mds_asok(["cache", "drop", str(timeout)])
         return result
 
-    def _setup(self):
+    def _setup(self, max_caps=20, threshold=400):
         # create some files
         self.mount_a.create_n_files("dc-dir/dc-file", 1000, sync=True)
 
+        # Reduce this so the MDS doesn't rkcall the maximum for simple tests
+        self.fs.rank_asok(['config', 'set', 'mds_recall_max_caps', str(max_caps)])
+        self.fs.rank_asok(['config', 'set', 'mds_recall_max_decay_threshold', str(threshold)])
+
     def test_drop_cache_command_asok(self):
         """
         Basic test for checking drop cache command.