]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/cephfs: Disable dirfrag auto merging and splitting
authorXiubo Li <xiubli@redhat.com>
Mon, 13 Apr 2020 01:41:38 +0000 (21:41 -0400)
committerXiubo Li <xiubli@redhat.com>
Mon, 13 Apr 2020 02:17:48 +0000 (22:17 -0400)
Make sure that the dirfrag auto merging and splitting are disabled
explicitly.

Fixes: https://tracker.ceph.com/issues/44380
Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/tasks/cephfs/test_data_scan.py

index d4733bf32bf4bf5c7f08815ec04fdfbdf37eed7e..a8e5badd4809c38c98766988218b95f0de757dd4 100644 (file)
@@ -431,6 +431,10 @@ class TestDataScan(CephFSTestCase):
         file_count = 100
         file_names = ["%s" % n for n in range(0, file_count)]
 
+        # Make sure and disable dirfrag auto merging and splitting
+        self.fs.set_ceph_conf('mds', 'mds bal merge size', 0)
+        self.fs.set_ceph_conf('mds', 'mds bal split size', 100 * file_count)
+
         # Create a directory of `file_count` files, each named after its
         # decimal number and containing the string of its decimal number
         self.mount_a.run_python(dedent("""