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

The segment info record allows empty segments to be leaked

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Segment Tar 0.0.8
    • segment-tar
    • None

    Description

      The flush thread writes to disk dirty segment buffers every 5 seconds. A segment buffer is defined to be dirty if the amount of record bytes it contains is greater than zero. Since we always write an info record in every segment at the moment they are created, no segment buffer is ever empty. This means that the flush thread writes to disk almost empty segments every 5 seconds, that waste an additional amount of space because of the padding required by the TAR format.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: