]> git.apps.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)
committerNathan Cutler <ncutler@suse.com>
Tue, 28 Apr 2020 17:38:01 +0000 (19:38 +0200)
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>
(cherry picked from commit 39df09e52b84b688f99f4e18190683c957d40783)

qa/tasks/cephfs/test_data_scan.py

index 8f51511e95020c2008400a91d93971c28631375f..014dbded72a8cf63be7b33166df889527baee092 100644 (file)
@@ -429,6 +429,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("""