Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Description
Now the system has overall control over the number of source files of cross-space compaction task. Before the compaction starts, it will apply to the system for the number of files that need to be used, and the number of occupied files should be released normally after the compaction is completed. This pr fixes the number of files that were not released after the compaction. As a result, after several times of cross-space compaction tasks, the subsequent cross-space compaction can no longer normally apply for the number of files, resulting in the cross compaction being stuck.
Now the system has an upper limit of 5000 for the total number of source files of cross-space compaction. With the execution of the cross-space compaction, when the cumulative number of source files is close to 5000, the subsequent cross-space compaction will not be able to apply for the number of files and get stuck.