The maximum number of openfiles omap objects keys are now equal to osd_deep_scrub_large_omap_object_key_threshold option.
(self)
| 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 | """ |
nothing calls this directly
no test coverage detected