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

Use head GC generation number to trigger cleanup on standby instance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Segment Tar 0.0.16
    • 1.5.13, 1.6.0
    • segment-tar
    • None
    • Patch

    Description

      With oak-segment-tar, the trigger for running cleanup on the standby instance could be determined by the GC generation number of the head which is bound to increase every time a cleanup is ran.

      fileStore.getHead().getRecordId().getSegment().getGcGeneration();
      

      The current trigger mechanism consists of detecting a 25% size increase over a client cycle (typ. 5 sec).
      This would be dropped in favor of the new detection mechanism.
      The auto-compaction mode would remain configurable.

      Attachments

        1. OAK-5029.patch
          3 kB
          Timothee Maret

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: