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

Fix compact to handle pages in WT_REF_DELETED state

    • Storage Engines
    • 5
    • 2023-12-12 - Heisenbug, 2024-01-09 - I Grew Tired, StorEng - 2024-01-23
    • v8.0, v7.0, v6.0

      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. test_compact12-no-fix.decoded-1.txt
          11.59 MB
        2. test_compact12-no-fix.decoded.txt
          11.59 MB
        3. test_compact12-fixed.decoded.txt
          9.31 MB
        4. test_compact12.py
          5 kB
        5. test_compact_random_value.py
          6 kB
        6. stdout-develop.txt
          416 kB

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

              Created:
              Updated:
              Resolved: