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

SplitPersistence: FileReaper cannot finish cleanup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.44.0
    • None
    • segment-tar
    • None

    Description

      When running revision compaction (aka GC) on a setup with split persistence, it is possible that the "cleanup" phase identifies files from the read-only part of the persistence as redundant and submits them to the FileReaper for deletion.

      However, the delete method of the SplitSegmentArchiveManager is implemented to return "false" when attempting the deletion of a file from the read-only persistence (which I would argue is correct). The FileReaper then re-adds the offending file to its queue in order to retry deleting it. Of course this fails again and so it can never finish and logs warnings for the files it cannot delete.

      It should be possible to prevent deletion of read-only files in the first place. In fact, I think there is no need to mark and sweep them at all.

      cc adulceanu

      Attachments

        Activity

          People

            jsedding Julian Sedding
            jsedding Julian Sedding
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: