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

Make compaction gain estimate more accurate

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 1.3.1, 1.4
    • segmentmk
    • None

    Description

      Currently the compaction gain estimation process only takes the current head into account when calculating the retained size. We could make it more accurate by also taking in memory references into account. This would prevent compaction from running when many in memory references would later on prevent segments from being cleaned up.

      Also for OAK-2862, we would need a way to include the segments used for the persisted compaction map in the retained size.

      While at it, we could try to improve logging so information on how much space is retained by the current head, in memory references and the persisted compaction map would be logged separately.

      Attachments

        Activity

          People

            mduerig Michael Dürig
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: