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

Revision GC command line tool

    XMLWordPrintableJSON

    Details

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

      Description

      Revision GC can be triggered on a DocumentNodeStore on each node in a cluster. A common setup with Apache Sling on top of Oak has a scheduled task for the leader node in a cluster that triggers the Revision GC once a day.

      For testing, maintenance and operational purpose it would be good to have an alternative that can be triggered from the command line.

      A potential solution is a new run mode in oak-run. It would bootstrap a DocumentStore implementation (MongoDB or RDB) with a read-only DocumentNodeStore and run revision GC. The command should probably support options like:

      • maxRevisionAge as defined in VersionGarbageCollector.gc()
      • maxGCTime that limits the time GC will run until it will be canceled automatically.
      • delay as proposed in OAK-4780

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mreutegg Marcel Reutegger
                Reporter:
                mreutegg Marcel Reutegger
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: