rocksdb/db/compaction
gitbw95 5cbee1f609 Add unit test to verify that the dynamic priority can be passed from compaction to FS (#10088)
Summary:
**Summary:**
Add unit tests to verify that the dynamic priority can be passed from compaction to FS. Compaction reads&writes and other DB reads&writes share the same read&write paths to FSRandomAccessFile or FSWritableFile, so a MockTestFileSystem is added to replace the default filesystem from Env to intercept and verify the io_priority. To prepare the compaction input files, use the default filesystem from Env. To test the io priority of the compaction reads and writes, db_options_.fs is set as MockTestFileSystem.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/10088

Test Plan: Add unit tests.

Reviewed By: anand1976

Differential Revision: D36882528

Pulled By: gitbw95

fbshipit-source-id: 120adc15801966f2b8c9fc45285f590a3fff96d1
2022-06-07 11:57:12 -07:00
..
clipping_iterator.h
clipping_iterator_test.cc
compaction.cc
compaction.h
compaction_iteration_stats.h
compaction_iterator.cc Consolidate manual_compaction_paused_ check (#10070) 2022-06-06 18:32:26 -07:00
compaction_iterator.h Consolidate manual_compaction_paused_ check (#10070) 2022-06-06 18:32:26 -07:00
compaction_iterator_test.cc Consolidate manual_compaction_paused_ check (#10070) 2022-06-06 18:32:26 -07:00
compaction_job.cc Consolidate manual_compaction_paused_ check (#10070) 2022-06-06 18:32:26 -07:00
compaction_job.h Consolidate manual_compaction_paused_ check (#10070) 2022-06-06 18:32:26 -07:00
compaction_job_stats_test.cc
compaction_job_test.cc Add unit test to verify that the dynamic priority can be passed from compaction to FS (#10088) 2022-06-07 11:57:12 -07:00
compaction_picker.cc
compaction_picker.h
compaction_picker_fifo.cc
compaction_picker_fifo.h
compaction_picker_level.cc
compaction_picker_level.h
compaction_picker_test.cc
compaction_picker_universal.cc
compaction_picker_universal.h
compaction_service_test.cc
file_pri.h
sst_partitioner.cc