Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-12311

Improve compact progress messages regarding the amount done so far

    • 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.

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: