From 9eac2fc052f342be941ef4cc37a3ae41557a7180 Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Sun, 12 Apr 2020 21:41:38 -0400 Subject: [PATCH] tools/cephfs: Disable dirfrag auto merging and splitting Make sure that the dirfrag auto merging and splitting are disabled explicitly. Fixes: https://tracker.ceph.com/issues/44380 Signed-off-by: Xiubo Li (cherry picked from commit 39df09e52b84b688f99f4e18190683c957d40783) --- qa/tasks/cephfs/test_data_scan.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qa/tasks/cephfs/test_data_scan.py b/qa/tasks/cephfs/test_data_scan.py index 8f51511e95020..014dbded72a8c 100644 --- a/qa/tasks/cephfs/test_data_scan.py +++ b/qa/tasks/cephfs/test_data_scan.py @@ -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(""" -- 2.39.5