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

VersionGarbageCollector should be able to run incrementally

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.0, 1.8.0
    • Component/s: documentmk
    • Labels:
      None

      Description

      Right now, the documentmk's version garbage collection runs in several phases.

      It first collects the paths of candidate nodes, and only once this has been successfully finished, starts actually deleting nodes.

      This can be a problem when the regularly scheduled garbage collection is interrupted during the path collection phase, maybe due to other maintenance tasks. On the next run, the number of paths to be collected will be even bigger, thus making it even more likely to fail.

      We should think about a change in the logic that would allow the GC to run in chunks; maybe by partitioning the path space by top level directory.

        Attachments

        1. OAK-4780-rdb.diff
          10 kB
          Julian Reschke
        2. OAK-4780-core-5.diff
          73 kB
          Julian Reschke
        3. OAK-4780-core-4.diff
          73 kB
          Julian Reschke
        4. OAK-4780-core-2.diff
          68 kB
          Julian Reschke
        5. OAK-4780-core-1.patch
          61 kB
          Marcel Reutegger
        6. OAK-4780-core.diff
          57 kB
          Julian Reschke
        7. leafnodes-v3.diff
          16 kB
          Stefan Eissing
        8. leafnodes-v2.diff
          12 kB
          Stefan Eissing
        9. leafnodes.diff
          5 kB
          Julian Reschke

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                reschke Julian Reschke
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: