-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Compaction
-
Storage Engines
-
2
-
StorEng - Defined Pipeline
Since WT-9631, compaction can produce this progress message:
compacting collection-45-12116826515201326078.wt for 35 seconds; reviewed 97544 pages, rewritten 7995 pages (7MB), approx. 100% done
Despite this log and the "100% done", compaction may continue on the collection if there is more work to do. The progress is derived as shown below:
progress = WT_MIN(
(int)(100 * block->compact_pages_rewritten / block->compact_pages_rewritten_expected),
100);
Because compaction may rewrite more than what was estimated, this log may keep appearing with "100% done" while compaction is still working. The goal of this ticket is to improve this message to avoid any confusion.