Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-7312

Evaluate the feasibility of running cleanup before compaction

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Done
    • None
    • None
    • segment-tar
    • None

    Description

      Currently cleanup is run only after the compaction phase. Assuming that the system is configured to retain the default value of two generations, it might happen that, during the compaction phase, the system will need space for a third generation, the one being currently compacted.

      In order to provide better guarantees on the amount of used disk space, it should be possible to optimistically perform cleanup before compaction, getting rid of the oldest generation before a new one is constructed.

      This issue tracks the feasibility of this approach, to be validated with a simple proof of concept.

      Attachments

        1. 001.patch
          15 kB
          Francesco Mari

        Activity

          People

            frm Francesco Mari
            frm Francesco Mari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: