MCPcopy Create free account
hub / github.com/ceph/ceph / test_max_items_per_obj

Method test_max_items_per_obj

qa/tasks/cephfs/test_openfiletable.py:17–45  ·  view source on GitHub ↗

The maximum number of openfiles omap objects keys are now equal to osd_deep_scrub_large_omap_object_key_threshold option.

(self)

Source from the content-addressed store, hash-verified

15 return False
16
17 def test_max_items_per_obj(self):
18 """
19 The maximum number of openfiles omap objects keys are now equal to
20 osd_deep_scrub_large_omap_object_key_threshold option.
21 """
22 self.set_conf("mds", "osd_deep_scrub_large_omap_object_key_threshold", "5")
23
24 self.fs.mds_restart()
25 self.fs.wait_for_daemons()
26
27 # Write some bytes to a file
28 size_mb = 1
29
30 # Hold the file open
31 file_count = 8
32 for i in range(0, file_count):
33 filename = "open_file{}".format(i)
34 self.mount_a.open_background(filename)
35 self.mount_a.write_n_mb(filename, size_mb)
36
37 time.sleep(10)
38
39 """
40 With osd_deep_scrub_large_omap_object_key_threshold value as 5 and
41 opening 8 files we should have a new rados object with name
42 mds0_openfiles.1 to hold the extra keys.
43 """
44
45 self.fs.radosm(["stat", "mds0_openfiles.1"])
46
47 def test_perf_counters(self):
48 """

Callers

nothing calls this directly

Calls 8

set_confMethod · 0.80
mds_restartMethod · 0.80
wait_for_daemonsMethod · 0.80
open_backgroundMethod · 0.80
write_n_mbMethod · 0.80
radosmMethod · 0.80
formatMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected