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

Fix compact to handle pages in WT_REF_DELETED state

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.3.0, 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: Compaction
    • Labels:
      None
    • Storage Engines
    • 5
    • 2023-12-12 - Heisenbug, 2024-01-09 - I Grew Tired, StorEng - 2024-01-23

      Between two compaction passes, if the number of pages rewritten has not changed, there is no need to try another time. We should quit.

      An example is shown in this comment from SERVER-80124. Compaction waits until the 100th pass before giving up while no progress was made at all since the start while we could have detected this earlier.

        1. stdout-develop.txt
          416 kB
        2. test_compact_random_value.py
          6 kB
        3. test_compact12.py
          5 kB
        4. test_compact12-fixed.decoded.txt
          9.31 MB
        5. test_compact12-no-fix.decoded.txt
          11.59 MB
        6. test_compact12-no-fix.decoded-1.txt
          11.59 MB

            Assignee:
            sean.watt@mongodb.com Sean Watt
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: